Skip to content

Instantly share code, notes, and snippets.

@jheerman
Created December 23, 2021 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jheerman/3cfe198e539ccfcb289b00f951500b7f to your computer and use it in GitHub Desktop.
Save jheerman/3cfe198e539ccfcb289b00f951500b7f to your computer and use it in GitHub Desktop.
#!/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