View Single Post
Old 29-Nov-2007, 03:35 AM   #2 (permalink)
Anilrgowda
Administrator
 
Anilrgowda's Avatar

Posts: 18,715
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Re: Command line simple video editing under linux

You can do this with mencoder, using the ss and endpos parameters.
For example, to keep only from 1:25 to 2:45 of video.avi, you'd use the following command :

mencoder -ss 1:25 -endpos 1:20 -oac copy -ovc copy video.avi -o part1.avi

Then, to join the segments :

mencoder -oac copy -ovc copy -o output.avi part*.avi

Or you can encode them directly, for example in xvid with default encoding options :

mencoder -oac copy -ovc xvid -o output.avi part*.avi


------------------


Anilrgowda is offline   Reply With Quote