Created
December 23, 2021 21:53
-
-
Save jheerman/3cfe198e539ccfcb289b00f951500b7f to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
if [ $# -ne 2 ]; | |
then echo -e "\nUsage: '$0 <path to mp4 clips> <name of finalized video>'\n" | |
exit 1 | |
fi | |
cd $1 | |
readlink -f *.MP4 > files.txt | |
sed -i -e 's/^/file /' files.txt | |
ffmpeg -safe 0 -f concat -i $1/files.txt -c copy $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment