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

QtMediaplayer Qt-5.12.4 loop play&stop avi media error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.12.4
    • Multimedia
    • None
    • i.MX6solo, eglfs
    • Linux/Other display system

    Description

      Yocto version: 4.14.78

      Kernel version: 4.14.78

      Qt version: 5.12.4

      Gstreamer version: 1.14

      Use the official release Qt-5.12.4 source code with this patch:

      https://codereview.qt-project.org/c/qt/qtmultimedia/+/273602

      Test application is: qmlvideo

      Loop play & stop avi media, there are some errors:

      1, Physical memory leak

      [ 505.775362] cma: cma_alloc: alloc failed, req-size: 148 pages, ret: -12
      [ 505.782035] mxc_vpu 2040000.vpu_fsl: Physical memory allocation error!
      [ 505.790221] mxc_vpu 2040000.vpu_fsl: Physical memory allocation error!
      [ 506.271940] cma: cma_alloc: alloc failed, req-size: 148 pages, ret: -12
      [ 506.279280] mxc_vpu 2040000.vpu_fsl: Physical memory allocation error!
      [ 506.286704] mxc_vpu 2040000.vpu_fsl: Physical memory allocation error!
      [ 506.321782] cma: cma_alloc: alloc failed, req-size: 148 pages, ret: -12
      [ 506.337159] mxc_vpu 2040000.vpu_fsl: Physical memory allocation error!
      [ 506.344568] mxc_vpu 2040000.vpu_fsl: Physical memory allocation error!

      2, some application's error

      MediaPlayer error: 2 Cannot play stream of type: <unknown>
      Warning: "No decoder available for type 'video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)byte-stream, width=(int)640, height=(int)480, framerate=(fraction)2182/91, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, profile=(string)constrained-baseline, level=(string)3'."

       

      And, I have tested avi media with gstreamer pipeline, the shell script is:

      #! /bin/bash
      for ((i=0; i<9999999; ++i))
      do
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      gst-launch-1.0 playbin uri=file:///vfat/media/1080P.avi
      done

      And there is no fault, no physical memory leak or gstreamer pipeline error.

       

      Can anyone help this ?

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              valentyn.doroshchuk Valentyn Doroshchuk
              liqunwei Wei LiQun
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes