Extract part of a video with a one-line command

From Pabut
Jump to: navigation, search

Original Posting on ask Ubuntu

Saving here for posterity and easy access:

mencoder -ss 00:30:00 -endpos 00:00:05 -oac copy -ovc copy originalfile -o newfile

This says: Start at 30 seconds in and for a length of 5 seconds create newfile from originalfile in the same format as originalfile