Join Multiple AVI files

First convert all video files to AVI’s.

It’s easiest with ffmpeg eg:

ffmpeg -i original_file.mpeg outputfile.avi

if you get errors like:

[mp2 @ 0x7fbf93b1fa00]Sampling rate 7875 is not allowed in mp2
Error while opening codec for output stream #0.1 - maybe incorrect parameters
such as bit_rate, rate, width or height

then try this:

ffmpeg -i original_file.mpeg -ar 44100 outputfile.avi

 

Now join all the AVI files together:

cat file1.avi file2.avi file3.avi > video_draft.avi

after appending the data together using cat above, you need to re-index the draft movie like this:

mencoder video_draft.avi -o video_final.avi -forceidx -ovc copy -oac copy

Now you’re video_final.avi file will be right to go.

 

 

Leave a Reply

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