[FFmpeg-user] croping a video while keeping the rest of the data in the container

Kieran O Leary kieran.o.leary at gmail.com
Tue Oct 13 23:04:53 CEST 2015

On Tuesday, 13 October 2015, Jim Worrall <coniophora at gmail.com> wrote:

> > On 2015 Oct 13, at 11:20 AM, daggs <daggs at gmx.com <javascript:;>> wrote:
> >
> > I want to the following, take a mkv file (with multiple audio and
> subtitles included for example) and crop the video so in the end I have
> same file like the original but with the video stream cropped.
> >
> > how I can do that?
> https://ffmpeg.org/ffmpeg-filters.html#crop
> http://www.renevolution.com/understanding-ffmpeg-part-iii-cropping/
Just to add, include '-map 0' in your command line if you have multiple
audio/subtitle streams,otherwise ffmpeg will only output one stream of each.
Using '-c:a copy' should bring your audio over intact.

More information about the ffmpeg-user mailing list