Last active
January 9, 2019 09:22
-
-
Save s4y/d2b4e1e8008bd09ab878ebbad0632c8e to your computer and use it in GitHub Desktop.
Convert mkv to mp4, downmix audio to stereo, keep original audio as second track
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
for f in *.mkv; do ffmpeg -hide_banner -y -i "$f" -c copy -c:s mov_text -map 0:v -map 0:a -map 0:a -map s -ac:a:0 2 -c:a:0 aac -disposition:a:0 none -disposition:a:1 default -movflags +faststart "${f%.mkv}.mp4" || break; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment