September 27

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


Copyright 2021. All rights reserved.

Posted September 27, 2011 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B