Skip to content

Instantly share code, notes, and snippets.

@JonBons
Created February 15, 2015 04:37
Show Gist options
  • Save JonBons/8a9f799fa56a120e6342 to your computer and use it in GitHub Desktop.
Save JonBons/8a9f799fa56a120e6342 to your computer and use it in GitHub Desktop.
How do I replace the audio in an MP4 file without re-encoding? (https://superuser.com/questions/602662/how-do-i-replace-the-audio-in-an-mp4-file-without-re-encoding)
ffmpeg.exe -i input_video.mp4 -i replacement_audio.m4a -vcodec copy -acodec copy -map 0:0 -map 1:0 output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment