How to concatenate multiple video file together on Linux

I have multiple video files, say video1.avi, video2.avi and video3.avi. How to concatenate these multiple video file to a single file together on Linux?

You can use mencoder to concatenate multiple video files to one file. For installing mencoder on Fedora, please check: http://www.systutorials.com/1493/mplayer-on-fedora/

For the question, the command is:

 mencoder -oac copy -ovc copy -idx -o output.avi video1.avi video2.avi video3.avi

output.avi will be the concatenated video file.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

One comment:

  1. Thanks by your suggestion, Eric. It works very good. I had about one hour fighting with ffmpeg, without success. With mencoder, it took only a couple of minutes.

Leave a Reply

Your email address will not be published. Required fields are marked *