I'm trying to crop videos using the crop parameter mentioned in the nvidia docs.
ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda –crop 16x16x32x32 -i input.avi -c:a copy -c:v h264_nvenc -b:v 5M output.mp4
This command never works for me. It throws the warning:
Codec AVOption crop (Crop (top)x(bottom)x(left)x(right)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream.
I have also installed ffmpeg with the --enable-cuvid flag but it never seems to work. How to make the -crop parameter work?