<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 12 авг. 2024 г., 03:48 Terje J. Hanssen via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<br>
<br>
<div>Den 11.08.2024 23:30, skrev Andrea paz:<br>
</div>
<blockquote type="cite">
<pre>I could never get decoding to work with vulkan (h264), problems with
the "device." </pre>
</blockquote>
<br>
I also get <br>
<blockquote>[h264 @ 0x560566feda40] Device does not support the
VK_KHR_video_decode_queue extension!<br>
[h264 @ 0x560566feda40] Failed setup for format vulkan: hwaccel
initialisation returned error.<br></blockquote></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I think you need vulkaninfo to see if you have this extension exposed ?</div><div dir="auto"><br></div><div dir="auto">driver for Intel called "anv" in mesa so may be check for this ext. name in mesa's git?</div><div dir="auto"><br></div><div dir="auto">for AMD it will be "radv"</div><div dir="auto"><br></div><div dir="auto">not sure how they packaged on your distros ....</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><blockquote>
</blockquote>
when I test Vulkan decoding with my system ffmpeg-7 according to<br>
<a href="https://trac.ffmpeg.org/wiki/HWAccelIntro#Vulkan" target="_blank" rel="noreferrer">https://trac.ffmpeg.org/wiki/HWAccelIntro#Vulkan</a><br>
<br>
<font face="Courier New, Courier, monospace">ffmpeg -hide_banner
-init_hw_device "vulkan=vk:0" -hwaccel vulkan
-hwaccel_output_format vulkan -i h264_10bit_yuv422p10le.mp4 -f
null - -benchmark<br>
</font>
<blockquote><font face="Courier New, Courier, monospace">Input #0,
mov,mp4,m4a,3gp,3g2,mj2, from 'h264_10bit_yuv422p10le.mp4':</font><br>
<font face="Courier New, Courier, monospace"> Metadata:</font><br>
<font face="Courier New, Courier, monospace"> major_brand :
isom</font><br>
<font face="Courier New, Courier, monospace"> minor_version :
512</font><br>
<font face="Courier New, Courier, monospace">
compatible_brands: isomiso2avc1mp41</font><br>
<font face="Courier New, Courier, monospace"> encoder :
Lavf61.1.100</font><br>
<font face="Courier New, Courier, monospace"> Duration:
00:01:11.20, start: 0.000000, bitrate: 9366 kb/s</font><br>
<font face="Courier New, Courier, monospace"> 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)</font><br>
<font face="Courier New, Courier, monospace"> Metadata:</font><br>
<font face="Courier New, Courier, monospace">
handler_name : VideoHandler</font><br>
<font face="Courier New, Courier, monospace">
vendor_id : [0][0][0][0]</font><br>
<font face="Courier New, Courier, monospace">Stream mapping:</font><br>
<font face="Courier New, Courier, monospace"> Stream #0:0 ->
#0:0 (h264 (native) -> wrapped_avframe (native))</font><br>
<font face="Courier New, Courier, monospace">Press [q] to stop,
[?] for help</font><br>
<font face="Courier New, Courier, monospace">[h264 @
0x560566feda40] Device does not support the
VK_KHR_video_decode_queue extension!</font><br>
<font face="Courier New, Courier, monospace">[h264 @
0x560566feda40] Failed setup for format vulkan: hwaccel
initialisation returned error.</font><br>
<font face="Courier New, Courier, monospace">Output #0, null, to
'pipe:':</font><br>
<font face="Courier New, Courier, monospace"> Metadata:</font><br>
<font face="Courier New, Courier, monospace"> major_brand :
isom</font><br>
<font face="Courier New, Courier, monospace"> minor_version :
512</font><br>
<font face="Courier New, Courier, monospace">
compatible_brands: isomiso2avc1mp41</font><br>
<font face="Courier New, Courier, monospace"> encoder :
Lavf61.1.100</font><br>
<font face="Courier New, Courier, monospace"> 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)</font><br>
<font face="Courier New, Courier, monospace"> Metadata:</font><br>
<font face="Courier New, Courier, monospace">
handler_name : VideoHandler</font><br>
<font face="Courier New, Courier, monospace">
vendor_id : [0][0][0][0]</font><br>
<font face="Courier New, Courier, monospace">
encoder : Lavc61.3.100 wrapped_avframe</font><br>
<font face="Courier New, Courier, monospace">[out#0/null @
0x560566f981c0] video:765KiB audio:0KiB subtitle:0KiB other
streams:0KiB global headers:0KiB muxing overhead: unknown</font><br>
<font face="Courier New, Courier, monospace">frame= 1780 fps=771
q=-0.0 Lsize=N/A time=00:01:11.20 bitrate=N/A speed=30.9x </font><br>
<font face="Courier New, Courier, monospace">bench: utime=21.156s
stime=0.154s rtime=2.307s</font><br>
<font face="Courier New, Courier, monospace">bench:
maxrss=327376KiB</font><br>
</blockquote>
<br>
Testing with a h265 input file I get<br>
<blockquote><font face="Courier New, Courier, monospace">[hevc @
0x5570ad2efb80] Device does not support the
VK_KHR_video_decode_queue extension!</font><br>
<font face="Courier New, Courier, monospace">[hevc @
0x5570ad2efb80] Failed setup for format vulkan: hwaccel
initialisation returned error.</font><br>
<font face="Courier New, Courier, monospace">[hevc @
0x5570ad2efb80] Unsupported film grain parameters. Ignoring film
grain.</font><br>
<font face="Courier New, Courier, monospace">........</font><br>
<font face="Courier New, Courier, monospace">frame= 1779 fps=756
q=-0.0 Lsize=N/A time=00:01:11.16 bitrate=N/A speed=30.2x </font><br>
<font face="Courier New, Courier, monospace">bench: utime=15.973s
stime=0.172s rtime=2.353s</font><br>
<font face="Courier New, Courier, monospace">bench:
maxrss=347452KiB</font><br>
<br>
</blockquote>
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<br>
<a href="https://opensuse.pkgs.org/tumbleweed/packman-x86_64/ffmpeg-7-7.0-1699.6.pm.3.x86_64.rpm.html" target="_blank" rel="noreferrer">https://opensuse.pkgs.org/tumbleweed/packman-x86_64/ffmpeg-7-7.0-1699.6.pm.3.x86_64.rpm.html</a><br>
<br>
Graphics and drivers;<br>
<blockquote><font face="Courier New, Courier, monospace">lspci |
grep VGA</font><br>
<font face="Courier New, Courier, monospace">03:00.0 VGA
compatible controller: Intel Corporation DG2 [Arc A750] (rev 08)</font><br>
<br>
<font face="Courier New, Courier, monospace">inxi -G</font><br>
<font face="Courier New, Courier, monospace">Graphics:</font><br>
<font face="Courier New, Courier, monospace"> Device-1: Intel DG2
[Arc A750] driver: i915 v: kernel</font><br>
<font face="Courier New, Courier, monospace"> Device-2: Microdia
Camera driver: snd-usb-audio,uvcvideo type: USB</font><br>
<font face="Courier New, Courier, monospace"> Display: x11
server: X.org v: 1.21.1.12 with: Xwayland v: 24.1.1 driver:</font><br>
<font face="Courier New, Courier, monospace"> X: loaded:
modesetting unloaded: fbdev,vesa dri: iris gpu: i915</font><br>
<font face="Courier New, Courier, monospace"> resolution:
2560x1440~60Hz</font><br>
<font face="Courier New, Courier, monospace"> API: OpenGL v: 4.6
vendor: intel mesa v: 24.1.2 renderer: Mesa Intel Arc</font><br>
<font face="Courier New, Courier, monospace"> A750 Graphics
(DG2)</font><br>
<font face="Courier New, Courier, monospace"> API: EGL Message:
EGL data requires eglinfo. Check --recommends.<br>
<br>
<br>
</font></blockquote>
<br>
<br>
<br>
<br>
</div>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank" rel="noreferrer">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div></div></div>