Den 11.08.2024 23:30, skrev Andrea paz:
I could never get decoding to work with vulkan (h264), problems with
the "device."

I also get

   [h264 @ 0x560566feda40] Device does not support the
   VK_KHR_video_decode_queue extension!
   [h264 @ 0x560566feda40] Failed setup for format vulkan: hwaccel
   initialisation returned error.

when I test Vulkan decoding with my system ffmpeg-7 according to
https://trac.ffmpeg.org/wiki/HWAccelIntro#Vulkan

ffmpeg -hide_banner -init_hw_device "vulkan=vk:0" -hwaccel vulkan -hwaccel_output_format vulkan -i h264_10bit_yuv422p10le.mp4 -f null - -benchmark

   Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'h264_10bit_yuv422p10le.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
   compatible_brands: isomiso2avc1mp41
        encoder         : Lavf61.1.100
      Duration: 00:01:11.20, start: 0.000000, bitrate: 9366 kb/s
      Stream #0:0[0x1](und): Video: h264 (High 4:2:2) (avc1 /
   0x31637661), yuv422p10le(pc, smpte170m/unknown/unknown, top first),
   1920x1080 [SAR 1:1 DAR 16:9], 9364 kb/s, 25 fps, 25 tbr, 12800 tbn
   (default)
          Metadata:
   handler_name    : VideoHandler
   vendor_id       : [0][0][0][0]
   Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
   Press [q] to stop, [?] for help
   [h264 @ 0x560566feda40] Device does not support the
   VK_KHR_video_decode_queue extension!
   [h264 @ 0x560566feda40] Failed setup for format vulkan: hwaccel
   initialisation returned error.
   Output #0, null, to 'pipe:':
      Metadata:
        major_brand     : isom
        minor_version   : 512
   compatible_brands: isomiso2avc1mp41
        encoder         : Lavf61.1.100
      Stream #0:0(und): Video: wrapped_avframe, yuv422p10le(pc,
   smpte170m/unknown/unknown, top coded first (swapped)), 1920x1080
   [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn (default)
          Metadata:
   handler_name    : VideoHandler
   vendor_id       : [0][0][0][0]
   encoder         : Lavc61.3.100 wrapped_avframe
   [out#0/null @ 0x560566f981c0] video:765KiB audio:0KiB subtitle:0KiB
   other streams:0KiB global headers:0KiB muxing overhead: unknown
   frame= 1780 fps=771 q=-0.0 Lsize=N/A time=00:01:11.20 bitrate=N/A
   speed=30.9x
   bench: utime=21.156s stime=0.154s rtime=2.307s
   bench: maxrss=327376KiB


Testing with a h265 input file I get

   [hevc @ 0x5570ad2efb80] Device does not support the
   VK_KHR_video_decode_queue extension!
   [hevc @ 0x5570ad2efb80] Failed setup for format vulkan: hwaccel
   initialisation returned error.
   [hevc @ 0x5570ad2efb80] Unsupported film grain parameters. Ignoring
   film grain.
   ........
   frame= 1779 fps=756 q=-0.0 Lsize=N/A time=00:01:11.16 bitrate=N/A
   speed=30.2x
   bench: utime=15.973s stime=0.172s rtime=2.353s
   bench: maxrss=347452KiB

This is ffmpeg-7 v. 7.0-1699.5.0.6.pm.1 from Packman on openSUSE Tw-Slowroll, which is a bit behind this Tumbleweed built version
https://opensuse.pkgs.org/tumbleweed/packman-x86_64/ffmpeg-7-7.0-1699.6.pm.3.x86_64.rpm.html

Graphics and drivers;

   lspci | grep VGA
   03:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A750]
   (rev 08)

   inxi -G
   Graphics:
      Device-1: Intel DG2 [Arc A750] driver: i915 v: kernel
      Device-2: Microdia Camera driver: snd-usb-audio,uvcvideo type: USB
      Display: x11 server: X.org v: 1.21.1.12 with: Xwayland v: 24.1.1
   driver:
        X: loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915
        resolution: 2560x1440~60Hz
      API: OpenGL v: 4.6 vendor: intel mesa v: 24.1.2 renderer: Mesa
   Intel Arc
        A750 Graphics (DG2)
      API: EGL Message: EGL data requires eglinfo. Check --recommends.





-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to