Skip to content

Instantly share code, notes, and snippets.

@rileyjshaw
Created May 30, 2020 01:19
Show Gist options
  • Save rileyjshaw/c7051445b428d4b35b6042ee3cc12a59 to your computer and use it in GitHub Desktop.
Save rileyjshaw/c7051445b428d4b35b6042ee3cc12a59 to your computer and use it in GitHub Desktop.
Quick one-liner to merge audio narration with a video
ffmpeg -i narration.mp3 -i original.mp4 -filter_complex "[0:a][1:a]amerge,pan=stereo|c0<c0+c2|c1<c1+c3[a]" -map 1:v -map "[a]" -c:v copy -c:a aac -shortest output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment