[Libav-user] Batch trimming commands

Simon Daniels simondaniels23 at gmail.com
Wed Jan 4 01:09:57 CET 2012


I currently use ffmpeg.exe to trim videos from point A to point B.
Something like this: ffmpeg -i "original.avi" -ss 0:10:00 -t 0:00:30

Oftentimes I need to trim several clips out of the same video.
Unfortunately this means ffmpeg.exe must scan over the same sections
of video over and over again to get to the clip's starting point. A
more efficient way to handle this would be to batch trimming commands.
Maybe something like: ffmpeg -i "original.avi" -ss1 0:10:00 -t1
0:00:30 "output1.avi" -ss2 0:15:00 -t2 0:00:30 "output2.avi". Is there
any way to do this with the static binary?



More information about the Libav-user mailing list