Skip to content

Instantly share code, notes, and snippets.

@vjk2005
Created July 23, 2017 09:36
Show Gist options
  • Save vjk2005/9247fea45bd63b02bb723e02393a7093 to your computer and use it in GitHub Desktop.
Save vjk2005/9247fea45bd63b02bb723e02393a7093 to your computer and use it in GitHub Desktop.
How to upload Japanese audio instead of English from a dual-audio video to YouTube (BONUS: convert to MP4 format as well in the same step)
ffmpeg -i <input.mkv> -map 0:0 -map 0:2 -c copy <output.mp4>
# 0:0 is the video stream to be copied as -map syntax is <input no>:<stream no>
# 0:1 is the English audio stream, skip this and map 0:2, the Japanese audio stream, to the output.
# You can see the stream info with their id by running ffmpeg -i <input.mkv>
# BONUS: convert MKV to MP4 right here with this single command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment