Wednesday, September 7, 2022

ffmpeg concat

I’m not a huge Video guy. I mean I have a lot of videos but I’m not really a
“Video expert” If that makes any sense. I’m an expert “Watching” videos :)

Although I do know a thing or two about it. “How to get to watch them” I use
ffmpeg a lot because I like to do stuff from the command line.
ffmpeg fits the bill

I use it for converting / combining / etcetra….

Small script below that I use for combining videos.

timc@sc2:~$ cat

$ECHO " ========================================================="
$FFMPEG -f concat -safe 0 -i ./concat.txt -c copy output.mp4
$ECHO "========================================================="

Where concat.txt is as follows. These are the two files I want to combine

timc@sc2:~$ cat concat.txt 
#file './Moby.Dick.Part.1.1998.480p.AMZN.WEB-DL.DDP2.0.H.264-playWEB.mkv'
#file './Moby.Dick.Part.2.1998.480p.AMZN.WEB-DL.DDP2.0.H.264-playWEB.mkv'
file './Les.Vampires.1915.Part.1.mkv'
file './Les.Vampires.1915.Part.2.mkv'

and the file output.mp4 is a combination of the two files above. It works it’s way
through the files giving me any issues it sees and if audio is off and by how much
as well as stream issues.

Really cool free program. These guys rock. I’m planning to donate to them at some
point, but haven’t yet. Highly recommend that program for working with video from
the command line