Last active
October 31, 2022 15:43
-
-
Save Roninkoi/d51c989682938a5cdf3ad51280c69efc to your computer and use it in GitHub Desktop.
Change default audio and subtitle track in mkv files
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
| #!/bin/sh | |
| # set audio and subtitle track 2 as default in mkv files (typically japanese with english subtitles) | |
| for file in *.mkv ; do | |
| mkvpropedit "$file" --edit track:a1 --set flag-default=0 --set flag-forced=0 \ | |
| --edit track:a2 --set flag-default=1 --set flag-forced=0 \ | |
| --edit track:s1 --set flag-default=0 --set flag-forced=0 \ | |
| --edit track:s2 --set flag-default=1 --set flag-forced=0 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment