Skip to content

Instantly share code, notes, and snippets.

@kevinkirkup
Created September 8, 2012 12:07
Show Gist options
  • Save kevinkirkup/3674259 to your computer and use it in GitHub Desktop.
Save kevinkirkup/3674259 to your computer and use it in GitHub Desktop.
FFMPEgx - Re-encode the audio and video of specific tracks from the input video file, copy the second audio track
ffmpeg -i <input> -map 0:v -vcodec copy -map 0:1 -c:a:0 libfaac -b:a 384k -map 0:1 -c:a:1 copy <output>
@kevinkirkup
Copy link
Author

Copy the video without encoding it. Take the first audio track and map it to the first audio track encoding it with libfaac. Take the first audio track and copy to the second audio track of the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment