Skip to content

Instantly share code, notes, and snippets.

@waruqi
Created August 20, 2020 14:27
Show Gist options
  • Save waruqi/aeb4df8ae1a382f886f6d70e28d733fb to your computer and use it in GitHub Desktop.
Save waruqi/aeb4df8ae1a382f886f6d70e28d733fb to your computer and use it in GitHub Desktop.
Extract and merge audio/video
# extract audio
ffmpeg -i input.mov -f mp3 audio.mp3
# merge audio
ffmpeg -i input.mov -i audio2.mp3 -c:v copy -c:a aac -strict experimental -map 0:v:0 -map 1:a:0 output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment