[FFmpeg-user] Failed setup for format vulkan: hwaccel initialisation returned error for Arc A750
Andrew Randrianasulu
randrianasulu at gmail.com
Tue Aug 13 19:49:17 EEST 2024
вт, 13 авг. 2024 г., 19:46 Terje J. Hanssen <terjejhanssen at gmail.com>:
> Hi,
>
> I try to test Vulkan h264 or h265 decoding according to test command at
> https://trac.ffmpeg.org/wiki/HWAccelIntro#Vulkan
> ffmpeg -init_hw_device "vulkan=vk:0" -hwaccel vulkan
> -hwaccel_output_format vulkan -i INPUT -f null - -benchmark
>
> but get the following output error:
> [h264 @ 0x55952760cf40] Failed setup for format vulkan: hwaccel
> initialisation returned error.
> or
> [hevc @ 0x5580e96e8c80] Failed setup for format vulkan: hwaccel
> initialisation returned error.
>
> Any suggestion how to solve it?
>
Honestly, no idea .. try ffmpeg matrix/irc channel or ffmpeg-user?
>
> ------------------------------
>
> vulkaninfo | grep GPU
> GPU id = 0 (Intel(R) Arc(tm) A750 Graphics (DG2))
> GPU id = 1 (llvmpipe (LLVM 18.1.8, 256 bits))
> GPU id = 0 (Intel(R) Arc(tm) A750 Graphics (DG2))
> GPU id = 1 (llvmpipe (LLVM 18.1.8, 256 bits))
> GPU id = 0 (Intel(R) Arc(tm) A750 Graphics (DG2))
> GPU id = 1 (llvmpipe (LLVM 18.1.8, 256 bits))
> GPU id : 0 (Intel(R) Arc(tm) A750 Graphics (DG2)):
> GPU id : 1 (llvmpipe (LLVM 18.1.8, 256 bits)):
> GPU0:
> deviceType = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
> GPU1:
>
>
> export ANV_VIDEO_DECODE=1
>
> vulkaninfo | grep VK_KHR_video
> VK_KHR_video_decode_h264 : extension revision 9
> VK_KHR_video_decode_h265 : extension revision 8
> VK_KHR_video_decode_queue : extension revision 8
> VK_KHR_video_queue : extension revision 8
>
>
> MESA_VK_DEVICE_SELECT=list vulkaninfo
> selectable devices:
> GPU 0: 8086:56a1 "Intel(R) Arc(tm) A750 Graphics (DG2)" discrete GPU
> 0000:03:00.0
> GPU 1: 10005:0 "llvmpipe (LLVM 18.1.8, 256 bits)" CPU 0000:00:00.0
>
> This is on openSUSE Tumbleweed-Slowroll with ffmpeg-7.0, Intel, Vulkan,
> Mesa drivers etc.
>
> Full ffmpeg sample output as follows:
>
> 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 @ 0x55952760cf40] 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 @ 0x5595275c8f40] video:765KiB audio:0KiB subtitle:0KiB
> other streams:0KiB global headers:0KiB muxing overhead: unknown
> frame= 1780 fps=767 q=-0.0 Lsize=N/A time=00:01:11.20 bitrate=N/A
> speed=30.7x
> bench: utime=20.985s stime=0.185s rtime=2.319s
> bench: maxrss=391544KiB
>
>
>
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-user
mailing list