Skip to content

Instantly share code, notes, and snippets.

@meeuw
Created August 2, 2021 19:04
Show Gist options
  • Save meeuw/0c72380a3bad4f85d53e29d10900263b to your computer and use it in GitHub Desktop.
Save meeuw/0c72380a3bad4f85d53e29d10900263b to your computer and use it in GitHub Desktop.
concatenate mp4 files
ls "$1/"*|sed "s%^%file $PWD/%" > /tmp/dmlist
ffmpeg -f concat -protocol_whitelist file,pipe -safe 0 -i /tmp/dmlist -c copy "$1.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment