“ A woman has got to love a bad man once or twice in her life to be thankful for a good one. ” details here

Merge, join two or more avi files

Ever wanted to merge (join) two or more avi files seemlessly? There are numerous pieces of software to do this in Windows, but in Linux, all you need is a package called transcode, and you are ready to go with a simple command.

Prerequisites

For all this to work you need the transcode package. So install (or make sure that it is there)


yum install transcode

Instructions

  1. Open up a terminal
  2. Go to the directory where the files are (this is just to make things simpler)
  3. Assuming that the file you want the result to be is named foo.avi, and you have two smaller files you want to merge (in order) named foo1.avi and foo2.avi, enter the following command:

avimerge -o foo.avi -i foo1.avi foo2.avi

Explanation

foo can be what ever your files are actually called. -o signifies the name of the outpul file, while -i signifies the names of the input files. You must put the file names in order.

Conclusion

That's it. As easy as can be, assuming no fear of the terminal. Keep in mind, that there is no reason to have to do any of this as root.

Contributors

irc://freenode/fedora

visitor comments

Merge, join two or more avi files

Lardy
12th Feb 2008, 18:02
Thanks for the tip.
hm
14th Mar 2008, 14:27
man avimerge: -c Drop video frames in case audio is missing [off] Only when merging multiple AVI files. Some AVI files run a little bit (usually for one or two video frames) short on audio. This means avimerge ca
hm
14th Mar 2008, 14:29
cannot keep up sync when concatinating them. The files play fine when played individually but not when merged because audio from the new file gets played back with video from the old file. avimerge will print a message like No audiodata left for track 0
hm
14th Mar 2008, 14:30
track 0->0 (59950.25=59950.25) continuing .. When you turn on the -c option, the video which is too much will be dropped.
/Me
23rd Dec 2007, 08:42
Kthx, works like a charm!
A.P.
26th Jan 2007, 10:13
Thank you very much ! Just what I needed!
Srinivas Tangella
28th Apr 2008, 12:33
Thank you for sharing this tip !
moonpappy
28th Jan 2007, 17:46
Thanks! I'm learning to love linux more every day!
aKausaL
28th Sep 2007, 09:06
Great! For all Debian-Users go to (www.debian-multimedia.org) to get full transcode package first. Thx.
 
Whatever you do, do not click on or browse to this link.