Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Merge mp4 files with ffmpeg in one bash line
# input current mp4 files, output: merged.mp4
ls *mp4 | sed "s#^#file '#g" | sed "s#\$#'#g" > tm.txt && ffmpeg -f concat -safe 0 -i tm.txt -c copy merged.mp4 && rm tm.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.