Skip to content

Instantly share code, notes, and snippets.

@bse666
Created October 24, 2022 12:38
Show Gist options
  • Save bse666/b043cbfcdf848e9e54872af92b9afe6f to your computer and use it in GitHub Desktop.
Save bse666/b043cbfcdf848e9e54872af92b9afe6f to your computer and use it in GitHub Desktop.
How to merge movies with ffmpeg fast.

ffmpeg File merging:

##Create File List

echo file file1.mp4 >  mylist.txt 
echo file file2.mp4 >> mylist.txt
echo file file3.mp4 >> mylist.txt

Concatenate Files

ffmpeg -f concat -i mylist.txt -c copy output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment