Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Video Concatenate or Join

20200924 Two mp4 video files can be joined using ffmpeg with the concat filter. This filter expects the argument to -i to name a text file which will list the files to be concatenated, like concat.txt

file 'input1.mp4'
file 'input2.mp4'

$ ffmpeg -f concat -safe 0 -i concat.txt -c copy joined.mp4

Other options include using mencoder.

$ mencoder -ovc copy -oac copy video1.avi video2.avi -o video.avi

To join multiple avi files into one big avi file we can utilise avimerge:

$ avimerge -i a1.avi a2.avi a3.avi -o a.avi

I have found this latter approach to get the audio of the second file out of sync!


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.