Using ffmpeg to join videos
For a project, I had to join videos. Is there a tool that can help me? Yes. ffmpeg.
How to join videos with ffmpeg?
ffmpeg has a concat command you can use. There are 2 modes demux and concat.
demux
is newer and better while concat
is older and is support in older
ffmpeg versions.
For joining same codec and similar dimensions
Step 1: Create list of videos you want to join in a txt file.
file 'meow.mp4'
file 'woof.mp4'
file 'pewpew.mp4'
Step 2: Execute the following command
ffmpeg -f concat -safe 0 -i vidlist.txt -c copy output.mp4
Step 3: Enjoy the longer video.