Looking for some advice on how to combine options relating to screen grabbing with ddagrab using ffmpeg, encoding using nvenc and scaling down in the process.
I can successfully capture desktop to file without scaling using nvenc, and I can also decode a file, scale it it and re-encode using nvenc. However putting the two together is giving me an error.
The command I am using is :
ffmpeg -hwaccel_output_format cuda -f lavfi -i ddagrab -vf scale_cuda=w=960:h=540 -c:v h264_nvenc -cq:v 21 c:\temp\test.mp4
And the error I get is:
Impossible to convert between the formats supported by the filter 'graph 0 input from stream: 0:0' and the filter 'auto_scale_0'
I see other reports of this error on google which suggest lots of additional options, but no clear examples of how to do a desktop capture, scale and encode before it leaves the gpu and comes back to the cpu.
I am using ffmeg 6.1.1 x64 binaries compiled with enable-cuda-llvm on Win11.