Created
May 21, 2017 22:45
-
-
Save diegorocha/d025b3b6d4f4da0f7e4c3564a7590620 to your computer and use it in GitHub Desktop.
Ffmpeg Dual Audio
This file contains 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
#!/bin/bash | |
# input = Vídeo com um audio | |
# audio.aac = Audio extra | |
# subtitile1 = Arquivo .srt com uma legenda | |
# subtitile2 = Arquivo .srt com outra legenda | |
# por = portuguese | |
# eng = english | |
ffmpeg -i input.mkv -i audio.aac -i subtitile1.srt -i subtitle2.srt -map 0:v -map 0:a -map 1:a -c copy -map 2 -c copy -map 3 -c copy -metadata title="{{title}}" -metadata:s:a:0 language={{audio1-language}} -metadata:s:a:1 language={{audio2-language}} -metadata:s:3 language={{subtitle1-language}} -metadata:s:4 language={{subtitle2-language}} output.mkv |
This file contains 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
#!/bin/bash | |
# input = Vídeo com um audio | |
# audio.aac = Arquivo de saida apenas com audio extra | |
ffmpeg -i input.mp4 -vn -acodec copy audio.aac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment