Created
June 10, 2017 15:10
-
-
Save mperlet/563055c0b7df5f2af8968568d685ab21 to your computer and use it in GitHub Desktop.
Merge mp4 files with ffmpeg in one bash line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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