[FFmpeg-trac] #9280(ffplay:new): meson-vdec: poor playback of h264

FFmpeg trac at avcodec.org
Mon Jun 7 14:40:36 EEST 2021


#9280: meson-vdec: poor playback of h264
-------------------------------------+-------------------------------------
             Reporter:  danboid      |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  ffplay
              Version:  unspecified  |               Resolution:
             Keywords:  meson-vdec   |               Blocked By:
  v4l2m2m                            |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by danboid:

Old description:

> Summary of the bug:
>
> I am experiencing very jerky playback using ffplay under Manjaro ARM
> unstable to play a UHD h264 mp4 on a X96 Air Q1000 TV box which is based
> on the Amlogic S905X3 SoC w/ meson-vdec VPU. I get 100's of dropped
> frames in under 30 seconds.
>
> How to reproduce:
>
> I am trying to play this video:
>
> https://drive.google.com/file/d/14z1Gd8zXbJ2XWvULvmWXeqLVRcgUHo2p/view?usp=sharing
>
> Using this command under Wayland GNOME:
>
> {{{
> $ ffplay -vcodec h264_v4l2m2m VID_20210512_180639.mp4
> ffplay version n4.4 Copyright (c) 2003-2021 the FFmpeg developers
>   built with gcc 10.2.0 (GCC)
>   configuration: --prefix=/usr --disable-debug --disable-static
> --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm
> --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-
> ladspa --enable-libass --enable-libbluray --enable-libdav1d --enable-
> libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-
> libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame
> --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-
> libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-
> libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-
> libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis
> --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
> --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg
> --enable-shared --enable-version3 --host-cflags='"-fPIC"'
>   libavutil      56. 70.100 / 56. 70.100
>   libavcodec     58.134.100 / 58.134.100
>   libavformat    58. 76.100 / 58. 76.100
>   libavdevice    58. 13.100 / 58. 13.100
>   libavfilter     7.110.100 /  7.110.100
>   libswscale      5.  9.100 /  5.  9.100
>   libswresample   3.  9.100 /  3.  9.100
>   libpostproc    55.  9.100 / 55.  9.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20210512_180639.mp4':
>   Metadata:
>     major_brand     : mp42
>     minor_version   : 0
>     compatible_brands: isommp42
>     creation_time   : 2021-05-12T17:07:00.000000Z
>     com.android.version: 10
>   Duration: 00:00:20.03, start: 0.000000, bitrate: 43964 kb/s
>   Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
> unknown/bt470bg/unknown), 3840x2160, 43449 kb/s, SAR 1:1 DAR 16:9, 30
> fps, 30 tbr, 90k tbn, 180k tbc (default)
>     Metadata:
>       creation_time   : 2021-05-12T17:07:00.000000Z
>       handler_name    : VideoHandle
>       vendor_id       : [0][0][0][0]
>   Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
> stereo, fltp, 192 kb/s (default)
>     Metadata:
>       creation_time   : 2021-05-12T17:07:00.000000Z
>       handler_name    : SoundHandle
>       vendor_id       : [0][0][0][0]
> [h264_v4l2m2m @ 0xffff5c0fc000] Using device /dev/video0
> [h264_v4l2m2m @ 0xffff5c0fc000] driver 'meson-vdec' on card 'Amlogic
> Video Decoder' in mplane mode
> [h264_v4l2m2m @ 0xffff5c0fc000] requesting formats: output=H264
> capture=NM12
>  176.91 A-V: 71.125 fd= 501 aq=    0KB vq=    0KB sq=    0B f=0/0
> }}}
>
> I can upload a video of the playback if required but it plays pretty much
> exactly the same as it does under mpv as shown here:
>
> https://github.com/mpv-player/mpv/issues/8884#

New description:

 Summary of the bug:

 I am experiencing very jerky playback using ffplay under Manjaro ARM
 unstable to play a UHD h264 mp4 on a X96 Air Q1000 TV box which is based
 on the Amlogic S905X3 SoC w/ meson-vdec VPU. I get 100's of dropped frames
 in under 30 seconds.

 How to reproduce:

 I am trying to play this video:

 https://drive.google.com/file/d/14z1Gd8zXbJ2XWvULvmWXeqLVRcgUHo2p/view?usp=sharing

 Using this command under Wayland GNOME:

 {{{
 $ ffplay -vcodec h264_v4l2m2m VID_20210512_180639.mp4
 ffplay version n4.4 Copyright (c) 2003-2021 the FFmpeg developers
   built with gcc 10.2.0 (GCC)
   configuration: --prefix=/usr --disable-debug --disable-static --disable-
 stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-
 fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa
 --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm
 --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-
 libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame
 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
 --enable-libopus --enable-libpulse --enable-librsvg --enable-libsoxr
 --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora
 --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb
 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-shared
 --enable-version3 --host-cflags='"-fPIC"'
   libavutil      56. 70.100 / 56. 70.100
   libavcodec     58.134.100 / 58.134.100
   libavformat    58. 76.100 / 58. 76.100
   libavdevice    58. 13.100 / 58. 13.100
   libavfilter     7.110.100 /  7.110.100
   libswscale      5.  9.100 /  5.  9.100
   libswresample   3.  9.100 /  3.  9.100
   libpostproc    55.  9.100 / 55.  9.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20210512_180639.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     creation_time   : 2021-05-12T17:07:00.000000Z
     com.android.version: 10
   Duration: 00:00:20.03, start: 0.000000, bitrate: 43964 kb/s
   Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
 unknown/bt470bg/unknown), 3840x2160, 43449 kb/s, SAR 1:1 DAR 16:9, 30 fps,
 30 tbr, 90k tbn, 180k tbc (default)
     Metadata:
       creation_time   : 2021-05-12T17:07:00.000000Z
       handler_name    : VideoHandle
       vendor_id       : [0][0][0][0]
   Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp, 192 kb/s (default)
     Metadata:
       creation_time   : 2021-05-12T17:07:00.000000Z
       handler_name    : SoundHandle
       vendor_id       : [0][0][0][0]
 [h264_v4l2m2m @ 0xffff5c0fc000] Using device /dev/video0
 [h264_v4l2m2m @ 0xffff5c0fc000] driver 'meson-vdec' on card 'Amlogic Video
 Decoder' in mplane mode
 [h264_v4l2m2m @ 0xffff5c0fc000] requesting formats: output=H264
 capture=NM12
  176.91 A-V: 71.125 fd= 501 aq=    0KB vq=    0KB sq=    0B f=0/0
 }}}

 I can upload a video of the playback if required but it plays pretty much
 exactly the same as it does under mpv as shown here:

 https://github.com/mpv-player/mpv/issues/8884#

 I'm a running Linux kernel 5.12.1-1-MANJARO-ARM

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9280#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list