Skip to content

Instantly share code, notes, and snippets.

@david-wm-sanders
Created March 24, 2017 04:16
Show Gist options
  • Save david-wm-sanders/5ebdd6cdb750879b9b324b318aeee937 to your computer and use it in GitHub Desktop.
Save david-wm-sanders/5ebdd6cdb750879b9b324b318aeee937 to your computer and use it in GitHub Desktop.
ffmpeg: merge the first(0) video stream from first(0) input and the first(0) audio stream from the second(1) input to create the output
ffmpeg -i videoin -i audioin -map 0:v:0 -map 1:a:0 output
# Select an encoder (when used before an output file) or a decoder (when used before an input file) for one or more streams.
ffmpeg -i videoin -i audioin -c:v copy -c:a aac -strict experimental -map 0:v:0 -map 1:a:0 output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment