Skip to content

Instantly share code, notes, and snippets.

@mcandre
Last active July 11, 2025 22:00
Show Gist options
  • Save mcandre/076a71f9cf0c8d655281e667332c66d3 to your computer and use it in GitHub Desktop.
Save mcandre/076a71f9cf0c8d655281e667332c66d3 to your computer and use it in GitHub Desktop.
ffmpeg merge streams

ffmpeg merge streams

  1. Write an ffmpeg input configuration file list.txt of the form:
file '<input-1>'
file '<input-2>'
file '<input-3>'
...
  1. Run ffmpeg -f concat -safe 0 -i list.txt -c copy <output>

ffmpeg has a quirk in which it rejects perfectly ordinary input paths by default, requiring the boilerplate -safe 0 option to work with real world file paths.

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