TL;DR: Looking for best ffmpeg options to encode webms using Nvidia GPU
Generally when I am encoding a webm I use settings similar to the following:
ffmpeg -i ${INFILE} -c:v libvpx-vp9 -c:a libvorbis -crf ${CRF} -vf scale=-1:${VHEIGHT} -b:v ${BITRATE} -threads 0 ${OUTFILE}
and I usually mess around with the variables until I have something small enough. However my CPU is a bit slow doing this and sometimes the encoding speed is around 1x. I have a 3070, though, so I should be able to encode video relatively quickly. I tried to add -hwaccel cuda -hwaccel_output_format cuda
before the input file (as the docs say to do) but I just get errors about not being able to convert between formats. I do have a version built with nonfree-licensed libraries (as you would need with Nvidia GPU) so I don't think that is the issue.