[FFmpeg-user] ffv1_vulkan issues

Leo Izen leo.izen at gmail.com
Mon Dec 30 18:45:51 EET 2024


On 12/28/24 2:40 AM, BuyMyMojo wrote:
> I have been trying to get ffv1_vulkan to encode since it was first added.
> 
> 
> My machine is running Arch Linux, a 7800XT using Mesa drivers and at 
> time of testing/writing "ffmpeg version N-118193-g5f38c82536"
> 
> 
> Currently when running a basic encode I get a hand full of errors:
> 
> `ffmpeg -hwaccel vulkan -hwaccel_output_format vulkan -i x264-video.mp4 
> -c:v ffv1_vulkan test.avi`
> 
> I get this output:
> 
> ```
> 
> [ffv1_vulkan @ 0x5c6e5c559a80] format nv12 not supported

It looks like you're getting an issue with pixel format. ffv1 doesn't 
support nv12, which is essentially yuv420p, but packed instead of 
planar. Your device is decoding the H.264 video to nv12, and since this 
is all done in hardware, there's no automatic scale filter inserted.

I recommend decoding in software and encoding in hardware to solve this 
for H.264 - may as well just run something like this:

ffmpeg -i input.mp4 -init_hw_device vulkan -c:v ffv1_vulkan output.mkv

(I also would not recommend putting ffv1 inside AVI, or using AVI at all 
nowadays if you have a choice.)

- Leo Izen (Traneptora)



More information about the ffmpeg-user mailing list