[FFmpeg-user] Faster way of cropping video?

Dennis mediastream at gmail.com
Wed Mar 18 19:39:42 CET 2015

On Wed, Mar 18, 2015 at 12:19 PM, JP Edwards <
jpedwardspost-at-yahoo.co.uk at ffmpeg.org> wrote:

> Hi,
> I've been cropping a number of mp4 videos with ffmpeg but I was just
> wondering whether there is a way of doing it that doesn't involve
> re-encoding.
> I've been using a command like:
> ffmpeg -i "Gopro1.mp4"  -filter:v crop=iw-300-20:ih-0-180:300:0
> "Gopro1_crop.mp4"
> Which works by cropping a 1920 x 1080 video to 1600 x 900
The re-encoding can be sped up by using other codecs, but will create a
bigger file. Added qscale to preserve original quality. Depending on audio
track format you might just copy it (-c:a copy).

ffmpeg -i "Gopro1.mp4"  -filter:v crop=iw-300-20:ih-0-180:300:0 -c:v mpeg4
-qscale:v 2 "Gopro1_crop.mp4"
ffmpeg -i "Gopro1.mp4"  -filter:v crop=iw-300-20:ih-0-180:300:0 -c:v
mpeg2video -qscale:v 2 "Gopro1_crop.ts"

More information about the ffmpeg-user mailing list