Skip to content

Instantly share code, notes, and snippets.

@lazywinadmin
Created January 19, 2022 05:09
Show Gist options
  • Save lazywinadmin/dd09e8d43ff2439fa3498bcad0752abf to your computer and use it in GitHub Desktop.
Save lazywinadmin/dd09e8d43ff2439fa3498bcad0752abf to your computer and use it in GitHub Desktop.
Concat GoPro mp4 files
# Make sure you get the right files
for f in `ls -tr *.MP4`; do echo "file '$PWD/$f'";done
# Merge the files
fmpeg -f concat -safe 0 -i <(for f in ./*.MP4; do echo "file '$PWD/$f'"; done) -c copy output.MP4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment