Skip to content

Instantly share code, notes, and snippets.

@chris-erickson
Created January 3, 2017 02:48
Show Gist options
  • Save chris-erickson/3aa166ffdc12baeed52ceaa87c8df501 to your computer and use it in GitHub Desktop.
Save chris-erickson/3aa166ffdc12baeed52ceaa87c8df501 to your computer and use it in GitHub Desktop.
Merge (concatenate) multiple media files that share the same codecs
# Update the extensions to match whatever you are starting with
# It isn't critical, but makes things work properly
for f in *.mp4; do echo "file '$f'" >> mylist.txt; done
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