Created
July 23, 2017 09:36
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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