Skip to content

Instantly share code, notes, and snippets.

@det-peralta
Forked from josby/concat_mp4.sh
Last active September 5, 2019 10:22
Show Gist options
  • Save det-peralta/88af0a38dbc430f4211a53e34bebe5ae to your computer and use it in GitHub Desktop.
Save det-peralta/88af0a38dbc430f4211a53e34bebe5ae to your computer and use it in GitHub Desktop.
Concat GoPro Videos with ffmpeg
ffmpeg -f concat -safe 0 -i <(for f in ./*.MP4; do echo "file '$PWD/$f'"; done) -c copy output.MP4
ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -c:v libx264 -an output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment