Skip to content

Instantly share code, notes, and snippets.

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 bwv988/af03a5a261a435f232fcd1a8f2e41a74 to your computer and use it in GitHub Desktop.
Save bwv988/af03a5a261a435f232fcd1a8f2e41a74 to your computer and use it in GitHub Desktop.
Converting and merging GoPro videos on Linux

Converting and merging GoPro videos on Linux

RS20230507

  1. Copy all raw videos into a folder.
  2. Install / Use Handbrake to batch-convert (queue) all videos into an output directory using an appropriate Preset, for example Fast1030p30.
  3. Once completed, use ffmpeg to concatenate all videos in the output directory into a single .mp4 file:
$ find *.mp4 -printf "file '%p'\n" | tee mp4_list.txt
$ ffmpeg -f concat -i mp4_list.txt -c copy ../gopro_merged/merged.mp4

That's it!

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