Dengar's Blog Logo

Dengar's blog...
We will see what I post, probably will be some random tutorials

Saturday, 14 November 2009

Video splitting with MEncoder

So now the question is how can you use MPlayer's Mencoder to split a video file into chunks, or how can you just cut a scene out?

I haven't really found an option to just cut it out in one go, but MEncoder is so fast, it's easy to just cut twice, first the beginning:

mencoder -ss 00:13:11 -oac copy -ovc copy original.avi -o new.avi

Simply exchange the time (HH:MM:SS) with the 'begin' point of the new video. That copies all the rest of the file into a new one.
Now you need to trim the file to get the new end:

mencoder -endpos 00:01:11 -ovc copy -oac copy in.avi -o out.avi

This makes the file exactly 1 minute 11 seconds long.

With this method you can split any video in any number of smaller chunks.
Happy video sharing!

PS: I think I already showed how you can combine to videos, in case you wanna reverse the process, if not, I will post this soon.

No comments: