Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-141744

Video playback does not work on imx8m plus evk

XMLWordPrintable

    • Linux/Yocto

      First of all, this problem has only been confirmed on imx8m plus evk. I also tried imx8 quad max and didn't see similar issue.

      Also, I am not sure if it is problem of using cloud device (https://hw-cloud.qt.io/), but I do not have imx8m plus evk myself, so I have to use that. And that is also the reason I can only test 6.8.5. Anyway, build and deploy the attached sample to imx8m plus evk. What I can see is:

      1. With EGLFS, no video is playing. It is just white screen in VideoOutput. Nevertheless, app itself still runs and MediaPlayer seems to work. By this kind of log:

      qml: MediaPlayer mediaStatus: 1
      
      ====== AIUR: 4.9.2 build on Oct 17 2024 06:05:58. ======
      	Core: MPEG4PARSER_06.22.07  build on Sep 27 2024 03:29:31
       file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2
      ------------------------
          Track 00 [video_0] Enabled
      	Duration: 0:00:19.100000000
      	Language: eng
          Mime:
      	video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)640, height=(int)480, framerate=(fraction)30/1, interlace-mode=(string)progressive, codec_data=(buffer)0164001effe100196764001eacd940a03db0110000030001000003003c0f162d9601000668ebe3cb22c0fdf8f800 
      ------------------------
      
      ====== V4L2DEC: 1.24.7 build on Jul  1 2025 08:50:15. ======
      QVncServer created on port 5900
      qml: MediaPlayer mediaStatus: 2
      qml: MediaPlayer mediaStatus: 4
      
      ====== AIUR: 4.9.2 build on Oct 17 2024 06:05:58. ======
      	Core: MPEG4PARSER_06.22.07  build on Sep 27 2024 03:29:31
       file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2
      ------------------------
          Track 00 [video_0] Enabled
      	Duration: 0:00:19.100000000
      	Language: eng
          Mime:
      	video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)640, height=(int)480, framerate=(fraction)30/1, interlace-mode=(string)progressive, codec_data=(buffer)0164001effe100196764001eacd940a03db0110000030001000003003c0f162d9601000668ebe3cb22c0fdf8f800 
      ------------------------
      
      ====== V4L2DEC: 1.24.7 build on Jul  1 2025 08:50:15. ======
      qml: MediaPlayer mediaStatus: 5
      

      MediaPlayer can buffer the video (status 5).

      2. With Wayland (weston by -platform wayland), I can't actually see what's going on (no VNC on Wayland) so I can't say if video plays or not. But MediaPlayer still can reach status 5 at the end.

      However, the original reporter of this issue reports a much server situation that playing video causes kernel panic. "kernel_panic.log" was from Weston session and "kernel_panic_minimal-qml.log" from Qt Wayland Compoistor session. And it happens regardless of QPA, i.e. either it is EGLFS or Wayland (either Weston or Qt Wayland Compositor, e.g. Minimal QML). I myself cannot reproduce such issue. What I can confirm by my own eyes is video not showing up on EGLFS. It may need someone who has physical device to take a further look.

      BTW, the original reporter always does "systemctl stop demolauncher" before launching the app. It does not do anything different I think (nothing different as far as I can tell).

        1. kernel_panic_eglfs.log
          5 kB
        2. kernel_panic_minimal-qml.log
          2 kB
        3. kernel_panic.log
          5 kB
        4. mediaplayerexample.zip
          710 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtmultimediateam Qt Multimedia Team
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes