An Easy Way to Trim Media Files
15 Dec 2011
While working on extracting entertaining video clips from a feature-length home movie I compiled a couple of years back, I learned of a way to trim media files given timestamps from the command line. ffmpeg is a large library for working with media files, and I have also been using it in my mp3-Suite. The -ss option specifies the starting timestamp of the trim and the -t option specifies the desired duration.
ffmpeg -ss 00:00:15.00 -i input-file.mpg -t 30 -acodec copy -vcodec copy output-file.mpg