Could not play media via Qmediaplayer.
-
Hi Community,
I developed an QT application to play my video on my QT weston wayland OS system which I build it from freescale released Yocto Project 2.0.
I designed my QT application with QMediaplayer to complete it.Below is how I execute my Application.
./e_frame-platfrom eglfs
Also I did try below command too.
./e_frame-platform wayland
Both commands remained different results and that's what my problem come across.
Below is two different conditions after I execute eglfs and wayland.For -platform eglfs
My video can play just for 2 seconds then it will stuck(time is not stable sometimes 3 seconds or 4 seconds).
Below is my log when it stuck.root@imx6qsabresd:/home# ./e_frame -platform eglfs QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable d ouble buffering and vsync. If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_M ULTI_BUFFER=1 [ 76.959377] forenex victor ldb diabled LVDS backlight get = 0 [ 77.163442] ldb_disable(687) forenex victor LVDS ldb->ctrl=[693] [ 77.163452] ldb_disable(688) forenex victor LVDS ldb->spl_mode=[1] [ 77.163461] ldb_disable(689) forenex victor LVDS ldb->dual_mode=[0] [ 77.163470] ldb_disable(690) forenex victor LVDS ldb->ctrl_reg=[8] [ 77.163478] ldb_disable(703) forenex victor LVDS ldb->ctrl=[688] [ 77.343359] /home/forenex/L4.1.15/build-wayland-q/tmp/work-shared/imx6qsabres d/kernel-source/drivers/video/fbdev/mxc/ldb.c_ldb_enable(623) forenex victor LV DS tmp_ctrl=[2b0] [ 77.343373] /home/forenex/L4.1.15/build-wayland-q/tmp/work-shared/imx6qsabres d/kernel-source/drivers/video/fbdev/mxc/ldb.c_ldb_enable(658) forenex victor LV DS ldb->ctrl=[2b5] Unable to query physical screen size, defaulting to 100 dpi. To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (i n millimeters). [ 82.129201] random: nonblocking pool is initialized sh: sudo: command not found videolabel 0 ====== AIUR: 4.0.9 build on Oct 23 2018 17:01:00. ====== Core: MPEG4PARSER_06.09.22 build on Jan 12 2016 05:26:25 file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2 ------------------------ Track 00 [video_0] Enabled Duration: 0:00:14.958333000 Language: und Mime: video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format= (string)avc, width=(int)856, height=(int)480, framerate=(fraction)24/1, codec_da ta=(buffer)01640015ffe1001d67640015acb406c1ef2fff80f000f088000003000800000301847 8b17501000568cf32c8b0fdf8f800 ------------------------ ------------------------ Track 01 [audio_0] Enabled Duration: 0:00:15.091666000 Language: und Mime: audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100, bitrat e=(int)125336, stream-format=(string)raw, codec_data=(buffer)1210 ------------------------ [INFO] Product Info: i.MX6Q/D/S [INFO] Product Info: i.MX6Q/D/S ====== VPUDEC: 4.0.9 build on Oct 23 2018 17:01:27. ====== wrapper: 1.0.65 (VPUWRAPPER_ARM_LINUX Build on Oct 23 2018 17:00:04) vpulib: 5.4.33 firmware: 3.1.1.46072 ====== BEEP: 4.0.9 build on Oct 23 2018 17:01:08. ====== Core: AAC decoder Wrapper build on Apr 22 2014 09:43:50 file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3 CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Jun 19 2014 18:30: 32. [INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
Decoding process seems perfect but video stucks and even the system image will stuck too.
But console still work.
Question
Why did video stuck? How can I fix it?For -platform wayland
This condition is special, It plays video well but there is afterimage while I move my windows.
When this circumstance appear, it occurs with no error log.
In this case, I could not know how to debug and fix this error.
Question
Why did -platform wayland occur this problem?
Compared with -platform eglfs, it did not show afterimage when moving windows.
How can I fix this problem?For additional question, What is the difference between eglfs and wayland?
I'm appreciate for everyone's reply.
Thanks in Advanced!