How to losslessly combine multiple AVI files into a single file?
Solution 1
I use Avidemux for tasks like this.
Process with Avidemux is as follows:
- Choose File->Open and select the first file
Choose File->Append and select the next file. Repeat this step until all the files you want to append to the first file have been appended.
Choose Save and select location and filename
Solution 2
Try mencoder
or ffmpeg
, both free, both good.
Mencoder
mencoder -oac copy -ovc copy -o output.avi input1.avi input2.avi
FFmpeg
From the FFmpeg Wiki article on how to concatenate (join, merge) media files:
Create a file "mylist.txt" with all the files you want to have concatenated in the following form ( Lines starting with a dash are ignored ) :
# this is a comment file '/path/to/file1' file '/path/to/file2' file '/path/to/file3'
Note that these can be either relative or absolute paths. Then you can encode your files with:
ffmpeg -f concat -i mylist.txt -c copy output
Solution 3
Easy Video Joiner can join multiple AVI, MPEG (MPG), RM (Real Media) or WMV/ASF (Window Media) files into one large movie file. You can add an unlimited number of video files as you like to the list and easily rearrange their order if needed. With just a few mouse clicks, you can enjoy your movie clips without interruption.
Easy Video Joiner is freeware.
Related videos on Youtube
Lopper
Updated on September 17, 2022Comments
-
Lopper almost 2 years
I would like to combine multiple movie clips with .mov and .avi extension into a single file. Is there any free software in the market that is good and able to perform that?
Preferably that should work without any loss in quality.
-
quack quixote over 14 yearsare you looking for simple concatenation (joining end-to-end), or are you looking for something more complicated (non-linear editing)?
-
Lopper over 14 yearsSomething simple and easy to use for joining end-to-end.
-
-
Lopper over 14 yearsWill there be any loss of quality by using Mencoder or FFmpeg?
-
Lopper over 14 yearsWill there be any quality loss?
-
quack quixote over 14 yearsif you're joining multiple files of different codecs, yes, loss of quality is likely -- the tool will need to re-encode the streams so the final stream uses the same codec/bitrate throughout.
-
quack quixote over 14 years@lopper: if you're joining multiple files of different codecs, yes, loss of quality is likely -- the tool will need to re-encode the streams so the final stream uses the same codec/bitrate throughout.
-
Lopper over 14 yearsWould appreciate if you can provide the procedure for performing such operations in avidemux.
-
0xC0000022L over 11 yearsBest answer, too few upvotes and not accepted. Shame ... +1 from me.
-
Sk8erPeter about 11 yearsThe FFmpeg tutorial was very useful, thank you, +1 for your answer! I used
concat
with the file list input as shown in the example, and it worked flawlessly. One of the easiest methods I've seen so far for concatenating videos (which are in similar formats). -
slhck about 11 years@Sk8erPeter The tutorial is (relatively) new and didn't exist at the time blahdiblah wrote the original answer, as the concat demuxers, the concat protocol and filters hadn't been developed back then.
-
Sk8erPeter about 11 years@slhck: OK, but I found this method via the linked FAQ yesterday (I edited the original answer to update the link to the new one, which already contained concat; and after that, you updated the answer again pasting the mentioned method and linking the very page which describes the method in detail, which was even a better idea :) ). So this was a great help anyway. :) It would be good to know whether there's a fine GUI built on top of that method with FFmpeg.
-
w4etwetewtwet almost 11 years@Lopper Provide the -sameq option to ffmpeg to ensure lossless encoding.
-
Jürgen Steinblock over 9 years@handuel
-sameq
has been removed ffmpeg.org/… -
Elder Geek over 8 years@Lopper Instructions added
-
Gruber almost 6 yearsYou may need to add
safe 0
in the command: stackoverflow.com/questions/38996925/…