can not play videos with QT multimedia widgets, Buffers are dropped and the video lags Platform EGLFS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can not play videos with QT multimedia widgets, Buffers are dropped and the video lags Platform EGLFS

6,264 Views
sriramanravi
Contributor I

Hi All ,
I have built yocto image with

DISTRO_FEATURE_remove = " x11 wayland"

gstreamer1.0 support for QT5.5 for imx6q board from freescale.

Kernel version built is 3.10.17

Platform EGLFS

I tried to run the example applications from QT5.5 such as QMLvideo from multimedia and it plays video smoothly without any delays.

but when i try to play video with videowidget from multimediawidgets example then i get a Warning: "A lot of buffers are being dropped."

This occurs only when i try to play mp4 video 1280x720, 1080x720 any video with higher pixel size.

and when i play video with lesser video image size it plays ok for example video with 360x240.

Note: videosink used above is qgstvideorenderersink.

Also, i would like to point out that the same video with 1280x720 plays well when i play it with gstreamer 1.0 with the following command

gst-launch-1.0 playbin uri=file:///home/root/mini.mp4

Any help or pointers related to this issue will be helpful!

Thanks & Regards
Sriraman Ravi

P.S the video sample is also attached.

0 Kudos
Reply
5 Replies

3,711 Views
madhureddy
Contributor I

Hello All,

I am trying to play a video through qt using gstreamer-1.0, it's not playing. showing message

No m_videoSink available.

Its showing same message when i tried with example applications from QT5.5, qmlvideo from multimedia.

Please find the log.

We have stucked here,please help on this it's very urgent.

root@nitrogen6x:~# ./HMI_IVI_APP_2.2/HMI_IVI_APP/HMI_IVI_APP --platform eglfs &

[1] 318

root@nitrogen6x:~# QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.

If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1

Unable to query physical screen size, defaulting to 100 dpi.

To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

qml: disabling the mouse area

qml: @ normal screen

qml: From JS file To 1

qml: Current index =  1

qml: @ normal screen

qml: enabling the mouse area

qml: @ normal screen

qml: enabling the mouse area

qml: @ normal screen

qml: enabling the mouse area

qml: @ normal screen

qml: enabling the mouse area

qml: @ normal screen

qml: enabling the mouse area

qml: @ normal screen

qml: enabling the mouse area

qml: @ File browser

qml: [file:///home/root/HMI_IVI_APP_2.2/HMI_IVI_APP/C++ Qt 40 - QMap.mp4]

qml: @ Before loading Global.filename  file:///home/root/HMI_IVI_APP_2.2/HMI_IVI_APP/C++ Qt 40 - QMap.mp4

No m_videoSink available!

libpng warning: iCCP: known incorrect sRGB profile

Could not resolve property : Polkadots-largewhite

qml: @ full screen

====== AIUR: 4.0.3 build on Jan 20 2016 23:33:57. ======

    Core: MPEG4PARSER_06.09.00  build on Apr 16 2014 02:20:23

file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2

[1]+  Done(1)                 ./HMI_IVI_APP_2.2/HMI_IVI_APP/HMI_IVI_APP --platform eglfs

0 Kudos
Reply

3,711 Views
sriramanravi
Contributor I

Try to build Yocto Image with fido branch. Thw QML multimedia example from QT works.

Regards

Sriraman Ravi

0 Kudos
Reply

3,711 Views
Yuri
NXP Employee
NXP Employee

Hello,

   I am afraid, there is no HW acceleration support in QT multimedia widgets,

only software rendering.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

3,711 Views
sriramanravi
Contributor I

Hi Yuri,

Thanks for your reply!

Do you have any suggestions how i can resolve this issue ?

I would like to play video in QT in imx6q board using eglfs platform.

Best Regards

Sriraman Ravi

0 Kudos
Reply

3,711 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Looks like only software optimizations may help, perhaps recent FSL BSP (L3.14.38) will be useful,
or QT provider can take some advices.

Regards,

Yuri.

0 Kudos
Reply