On Wed, Mar 18, 2015 at 12:19 PM, JP Edwards < [email protected]> 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" _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
