[FFmpeg-devel] [PATCH v4 00/16] Add a Vulkan compute based FFv1 hwaccel

Jerome Martinez jerome at mediaarea.net
Tue Apr 8 19:44:01 EEST 2025


Le 13/03/2025 à 18:03, Lynne a écrit :
> This series of commits adds a fully compliant version 3 and 4 hardware
> accelerator code for FFv1 written in Vulkan.

Thank you for this hard work!
I tested today's master branch with lot of different pix_fmts and FFV1 
encoder settings on both Linux and Windows, I found buggy decoding for 
theses use cases:

wget https://mediaarea.net/temp/2K1.5K16-bit.dpx
./ffmpeg -y -i 2K1.5K16-bit.dpx -c:v ffv1 -context 1 -g 1 -level 3 
2K1.5K16-bit.mkv
./ffmpeg -y -hwaccel vulkan -i 2K1.5K16-bit.mkv 2K1.5K16-bit.png
(wrong output)

wget https://mediaarea.net/temp/600x402x8-bit.dpx
./ffmpeg -y -i 600x402x8-bit.dpx -c:v ffv1 -coder 0 -context 1 -g 1 
-level 3 600x402x8-bit.mkv
./ffmpeg -y -hwaccel vulkan -i 600x402x8-bit.mkv 600x402x8-bit.png
(stall)
./ffmpeg -y -i 600x402x8-bit.dpx -c:v ffv1 -coder 1 -context 1 -g 1 
-level 3 600x402x8-bit.mkv
./ffmpeg -y -hwaccel vulkan -i 600x402x8-bit.mkv 600x402x8-bit.png
(wrong output)

Note that replacing " -context 1" by " -context 0" during encoding makes 
the HW decoding fine.


More information about the ffmpeg-devel mailing list