Skip to content

Instantly share code, notes, and snippets.

@klanjabrik
Last active May 14, 2019 09:25
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 klanjabrik/900d9261397ae9989a23e7b7bd84815f to your computer and use it in GitHub Desktop.
Save klanjabrik/900d9261397ae9989a23e7b7bd84815f to your computer and use it in GitHub Desktop.
Merge multi webm (audio) with FFMPEG
ffmpeg \
-i input1.webm \
-i https://somewhere.com/input2.webm \
-filter_complex "[0:a][1:a]concat=n=2:v=0:a=1[aout]" -map "[aout]" \
-c:a libvorbis -strict experimental \
output.webm
# Notes: [0:a][1:a] and concat=n=2 is depending on number of inputs (-i)
# you can use libvorbis or libopus as codec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment