Go to ...


A Better Technical Repository

RSS Feed

Linux: Joining .avi or .mpg files together using mencoder

Program installation:
sudo apt-get install mencoder mplayer

You may want to rename your video files to make life easier.

If you are use to using ” you can go the following:
cat video1.mpg video2.mpg video3.mpeg > video.avi

After they are put together use mencoder to sync the video with the audio:
mencoder -forceidx -oac copy -ovc copy video.mpg -o finalvideo.mpg

An easier method is:

mencoder -oac copy -ovc copy video1.mpg video2.mpg video3.mpeg -o finalvideo.mpg