Skip to content

Instantly share code, notes, and snippets.

@josby
Created May 12, 2017 18:38
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save josby/3643defc43c484315439f31a0c6ecddd to your computer and use it in GitHub Desktop.
Save josby/3643defc43c484315439f31a0c6ecddd 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
@leonardAlbert
Copy link

It is necessary to use this command?
... copy -bsf:a aac_adtstoasc output.MP4

@cristiean
Copy link

great gist 👏

make sure to run for f in ./*.MP4; do echo "file '$PWD/$f'"; done to make sure your videos will be concatenated in the correct order

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment