[FFmpeg-user] Splicing/Trimming video

Andrey Utkin andrey.krieger.utkin at gmail.com
Fri Feb 10 14:08:11 CET 2012

2012/2/9 Joshua Grauman <jnfo-c at grauman.com>:
> Hello all,
> I have used the following command to take video straight from my Canon
> camcorder and to cut off the front and back end of it and scale it down to
> my desired resolution. This command works great. However, now I'd like to
> 'edit' the video by cutting out several portions from the *middle* of the
> video. In other words, I'd like to remove a few seconds here or there from
> the video by specifying the start and end times (or durations) I want to cut
> out. There will probably be several little sections cut out from the video.
> Any ideas on how to do this from the command-line? I'd prefer to cut the
> sections out of the Final.mp4 file with a -new- ffmpeg command, but if I
> need to go back and change my initial command that could work too. Thanks!
> cat 00012.MTS 00013.MTS 00014.MTS | /usr/local/ffmpeg/ffmpeg -threads 4 -i -
> -ss 50 -t 2405 -vf scale=853:480,crop=640:480 -aspect 4:3 -r 30 -b 1200k -ab
> 256k Final.mp4
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

You can think your desire to cut off some intervals as equivalent
desire to _save_ certain intervals, and then join them.
For cutting, there's ready functionality in ffmpeg
For joining, it can be problematic, you can use my tiny tool which can
merge flv files.

Andrey Utkin

More information about the ffmpeg-user mailing list