Cropping video files in FFmpeg

The syntax for FFMPEG video cropping is like:

ffmpeg -i input.avi -vf crop=439:455:73:15 -c:v mjpeg -qscale 1 output.avi

The assumptions made above were that you wanted Motion JPEG video output of:

width height left top
439 455 73 15

Obviously, change these pixel parameters to suit your particular video.

FFMPEG compression options

-qscale 1 makes low compression (best possible MJPEG quality). qscale can go from 1 to 31.



Leave a Comment