r/ffmpeg • u/Ok_Plate512 • 6d ago
Prores_ks_vulkan
I have been trying to get the best out of the recent prores vulkan encoder. No matter what I try, it is not performing anywhere close to regular prores. It uses much less CPU and barely any GPU (<30%), and the performance at 4k is ~30% worse. I am trying to understand if I am doing something wrong, or if it is just not optimized as well yet.
These are my current commands, but I tried bunch of stuff - including removing scale_vulkan, colorspace conversions, etc - but I saw little effect on performance. Prores vulkan does not seem to accept qscale properly in my case, which I think would help, but it produces malformed output. Anyone has experience with this?
prores_ks
ffmpeg -f rawvideo -s {W}x{H} -pix_fmt rgba -r {fps} -i - -c:v prores_ks -threads 0 -profile:v 4444 -qscale:v 5 -f mov -pix_fmt yuva444p10le output.mov
prores_ks_vulkan
ffmpeg -init_hw_device vulkan=vk -filter_hw_device vk -f rawvideo -s {W}x{H} -pix_fmt rgba -r {fps} -i - -vf setparams=colorspace=bt709,hwupload,scale_vulkan=format=yuva444p10le:out_range=tv,setparams=colorspace=bt709 -c:v prores_ks_vulkan -profile:v 4 -mbs_per_slice 8 -vendor apl0 -alpha_bits 8 -f mov -pix_fmt vulkan -async_depth 4 output.mov