[FFmpeg-trac] #10594(undetermined:new): AMD VAAPI Driver does not support some wanted Ubuntu 22.04 LTS

FFmpeg trac at avcodec.org
Wed Sep 27 02:24:20 EEST 2023


#10594: AMD VAAPI Driver does not support some wanted Ubuntu 22.04 LTS
-------------------------------------+-------------------------------------
             Reporter:  Mateo        |                     Type:  defect
  Bohoquez                           |
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  5.1.3
  undetermined                       |
             Keywords:  VAAPI, No    |               Blocked By:
  global header, packed sequence     |
  headers                            |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 **Summary of the bug:**

 I get this **warn/error** but i can encode my video, however in hevc_vaapi
 i get visual gliches while play the video, and some smartphones cant
 reproduce the video.
 {{{
 [h264_vaapi @ 0x56248c107500] Driver does not support some wanted packed
 headers (wanted 0xd, found 0).
 [h264_vaapi @ 0x56248c107500] Driver does not support packed sequence
 headers, but a global header is requested.
 [h264_vaapi @ 0x56248c107500] No global header will be written: this may
 result in a stream which is not usable for some purposes (e.g. not muxable
 to some containers).
 }}}


 How to reproduce (with my GPU AMD RX6750 XT):

 {{{
 LIBVA_DRIVER_NAME=radeonsi # for AMD
 allow_rgb10_configs=false # Video decoding corruption or distortion with
 AMDGPU driver
 ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD129 -i
 "/media/noe/WinterOS:
 Rev09/Users/NoeXVanitasXJunk/LinuxCaches/Davinci/Renders/14.mov" -vf
 'format=nv12,hwupload'  -c:v h264_vaapi -b:v 2.7M "/media/noe/WinterOS:
 Rev09/Users/NoeXVanitasXJunk/LinuxCaches/Davinci/Renders/14_h264Otri.mp4"
 -y
 }}}



 Complete output
 {{{
 ffmpeg version N-112184-g8fa83ad70f Copyright (c) 2000-2023 the FFmpeg
 developers
   built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
   configuration: --prefix=/home/noe/ffmpeg_build --pkg-config-
 flags=--static --extra-cflags=-I/home/noe/ffmpeg_build/include --extra-
 ldflags=-L/home/noe/ffmpeg_build/lib --extra-libs='-lpthread -lm' --ld=g++
 --bindir=/home/noe/bin --enable-gpl --enable-gnutls --enable-libaom
 --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopus
 --enable-libdav1d --enable-libvorbis --enable-libvpx --enable-libx264
 --enable-libx265 --enable-vaapi --enable-amf --target-os=linux --enable-
 opengl --enable-opencl --enable-nonfree --enable-libwebp --enable-
 libopenjpeg --enable-libpulse --enable-frei0r --enable-libbs2b --enable-
 libcdio --enable-librubberband --enable-libspeex --enable-libtheora
 --enable-libfontconfig --enable-libfribidi --enable-libxml2 --enable-
 libxvid --enable-libsmbclient --enable-version3 --enable-libv4l2 --enable-
 libvidstab --enable-libcaca --enable-libopenmpt --enable-libmodplug
 --enable-libgme --enable-libopencore-amrwb --enable-libsnappy --enable-
 libmysofa --enable-libshine --enable-libopencore-amrnb --enable-libtwolame
 --enable-libvo-amrwbenc --enable-libflite --enable-libsoxr --enable-ladspa
   libavutil      58. 25.100 / 58. 25.100
   libavcodec     60. 27.100 / 60. 27.100
   libavformat    60. 13.100 / 60. 13.100
   libavdevice    60.  2.101 / 60.  2.101
   libavfilter     9. 11.100 /  9. 11.100
   libswscale      7.  3.100 /  7.  3.100
   libswresample   4. 11.100 /  4. 11.100
   libpostproc    57.  2.100 / 57.  2.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/noe/WinterOS:
 Rev09/Users/NoeXVanitasXJunk/LinuxCaches/Davinci/Renders/14.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 512
     compatible_brands: qt
     creation_time   : 2023-09-26T17:35:40.000000Z
     encoder         : Blackmagic Design DaVinci Resolve Studio
   Duration: 00:45:34.63, start: 0.000000, bitrate: 21029 kb/s
   Stream #0:0[0x1]: Video: dnxhd (DNXHR LB) (AVdh / 0x68645641),
 yuv422p(tv, bt709), 720x1280, 19604 kb/s, SAR 1:1 DAR 9:16, 30 fps, 30
 tbr, 15360 tbn (default)
     Metadata:
       creation_time   : 2023-09-26T17:35:40.000000Z
       handler_name    : VideoHandler
       vendor_id       :
       encoder         : DNxHR LB
       timecode        : 01:00:00:00
   Stream #0:1[0x2]: Audio: pcm_s16le (lpcm / 0x6D63706C), 44100 Hz,
 stereo, s16, 1411 kb/s (default)
     Metadata:
       creation_time   : 2023-09-26T17:35:40.000000Z
       handler_name    : SoundHandler
       vendor_id       : [0][0][0][0]
   Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) (default)
     Metadata:
       creation_time   : 2023-09-26T17:35:40.000000Z
       handler_name    : TimeCodeHandler
       timecode        : 01:00:00:00
 Stream mapping:
   Stream #0:0 -> #0:0 (dnxhd (native) -> h264 (h264_vaapi))
   Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
 Press [q] to stop, [?] for help
 [h264_vaapi @ 0x56248c107500] Driver does not support some wanted packed
 headers (wanted 0xd, found 0).
 [h264_vaapi @ 0x56248c107500] Driver does not support packed sequence
 headers, but a global header is requested.
 [h264_vaapi @ 0x56248c107500] No global header will be written: this may
 result in a stream which is not usable for some purposes (e.g. not muxable
 to some containers).
 Output #0, mp4, to '/media/noe/WinterOS:
 Rev09/Users/NoeXVanitasXJunk/LinuxCaches/Davinci/Renders/14_h264Otri.mp4':
   Metadata:
     major_brand     : qt
     minor_version   : 512
     compatible_brands: qt
     encoder         : Lavf60.13.100
   Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), vaapi(tv, bt709,
 progressive), 720x1280 [SAR 1:1 DAR 9:16], q=2-31, 2700 kb/s, 30 fps,
 15360 tbn (default)
     Metadata:
       creation_time   : 2023-09-26T17:35:40.000000Z
       handler_name    : VideoHandler
       vendor_id       :
       timecode        : 01:00:00:00
       encoder         : Lavc60.27.100 h264_vaapi
   Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo,
 fltp, 128 kb/s (default)
     Metadata:
       creation_time   : 2023-09-26T17:35:40.000000Z
       handler_name    : SoundHandler
       vendor_id       : [0][0][0][0]
       encoder         : Lavc60.27.100 aac
 frame=    0 fps=0.0 q=-0.0 size=       0kB time=00:00:00.20 bitrate=
 0.0kbits/frame=  118 fps=0.0 q=-0.0 size=    1280kB time=00:00:03.93
 bitrate=2666.0kbits/frame=  241 fps=227 q=-0.0 size=    2816kB
 time=00:00:08.03 bitrate=2871.7kbits/frame=  359 fps=229 q=-0.0 size=
 4096kB time=00:00:11.96 bitrate=2804.0kbits/frame=  472 fps=229 q=-0.0
 size=    5376kB time=00:00:15.83 bitrate=2781.0kbits/[out#0/mp4 @
 0x56248c1025c0] video:6310kB audio:290kB subtitle:0kB other streams:0kB
 global headers:0kB muxing overhead: 0.258935%
 frame=  552 fps=225 q=-0.0 Lsize=    6616kB time=00:00:18.48
 bitrate=2932.5kbits/s speed=7.55x
 }}}

 Vainfo:
 {{{

 noe at mate-allseries:~$ vainfo
 Trying display: wayland
 Trying display: x11
 libva info: VA-API version 1.14.0
 libva info: User environment variable requested driver 'radeonsi'
 libva info: Trying to open /usr/lib/x86_64-linux-
 gnu/dri/radeonsi_drv_video.so
 libva info: Found init function __vaDriverInit_1_14
 libva info: va_openDriver() returns 0
 vainfo: VA-API version: 1.14 (libva 2.19.0)
 vainfo: Driver version: Mesa Gallium driver 23.2.0-devel for AMD Radeon RX
 6750 XT (navi22, LLVM 16.0.6, DRM 3.49, 6.2.0-33-generic)
 vainfo: Supported profile and entrypoints
       VAProfileMPEG2Simple            : VAEntrypointVLD
       VAProfileMPEG2Main              : VAEntrypointVLD
       VAProfileVC1Simple              : VAEntrypointVLD
       VAProfileVC1Main                : VAEntrypointVLD
       VAProfileVC1Advanced            : VAEntrypointVLD
       VAProfileH264ConstrainedBaseline: VAEntrypointVLD
       VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
       VAProfileH264Main               : VAEntrypointVLD
       VAProfileH264Main               : VAEntrypointEncSlice
       VAProfileH264High               : VAEntrypointVLD
       VAProfileH264High               : VAEntrypointEncSlice
       VAProfileHEVCMain               : VAEntrypointVLD
       VAProfileHEVCMain               : VAEntrypointEncSlice
       VAProfileHEVCMain10             : VAEntrypointVLD
       VAProfileHEVCMain10             : VAEntrypointEncSlice
       VAProfileJPEGBaseline           : VAEntrypointVLD
       VAProfileVP9Profile0            : VAEntrypointVLD
       VAProfileVP9Profile2            : VAEntrypointVLD
       VAProfileAV1Profile0            : VAEntrypointVLD
       VAProfileNone                   : VAEntrypointVideoProc

 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10594>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list