[FFmpeg-user] create a 2 minute sample from mp4 file?

Lou lou at lrcd.com
Wed Dec 23 08:56:00 CET 2015


On Tue, Dec 22, 2015, at 04:18 PM, Leonard Bogard wrote:
> Yes, have a look at the -t and -ss parameters in the ffmpeg
> documentation.

Also "-c copy":
https://ffmpeg.org/ffmpeg.html#Stream-copy

And "-map" if you don't like the default stream selection behavior:
https://ffmpeg.org/ffmpeg.html#Advanced-options
https://ffmpeg.org/ffmpeg.html#Stream-selection

Example to skip first 30 seconds and make 120 second stream copied
output:
ffmpeg -i input -map 0 -c copy -ss 30 -t 120 output


More information about the ffmpeg-user mailing list