Sunday, October 28, 2012

How to merge avi files from: Ubuntu How To's

HOW TO merge avi files



This is a simple howto explaining how to merge two (or more) avi into one. First get the necessary software. Open terminal (alt+f2 then type gnome-terminal) and type:

sudo apt-get install mencoder

Next navigate to the folder where your video is located (for simplicity keep all of the files you want to merge in the same folder) and type:

mencoder -ovc copy -oac copy video1.avi video2.avi -o completevideos.avi

Replace video1.avi video2.avi with original videos you want to merge and replace completevideos.avi with whatever you want your merged video to be called.

Here's a little explanation of what mencoder do:

-ovc copy - tells the mencoder to keep the original type of video, no encoding
-oac copy - tells the mencoder to keep the original type of audio, no encoding
-o - specifies the output file name (and location if writen as /location/of/the/merged/video/merged.avi)

Note. All credit to Ubuntu How To's website.Content coppied from Ubuntu How To's site here:
http://ubuntuhowtos.com/howtos/merge_avi_files_with_mencoder