Sunday, February 20, 2011

How to truncate video using command line

Here are two method, using ffmpeg and mencoder. Choose which one you want:

$ ffmpeg -vcodec copy -acodec copy -i [inputfile] -ss [start] -t [duration] [outputfile]

or

$ mencoder -ss [start] -endpos [duration] -oac copy -ovc copy [inputfile] -o [outputfile]

No comments:

Post a Comment