2024-03-27, 02:56 AM
For anyone encountering this thread in the future, and are running this in Ubuntu/Debian, you can run this shell script to change the default tracks for anything in your working directory:
Make sure you install mkvtoolnix first.
track:a1, track:a2 etc. refer to audio tracks and obviously you can toggle the default flags with 0 or 1. You should make sure that the default flag is set to 0 for any preexisting default tracks.
track:s1 refers to the subtitle tracks. All of this is explained in the manpage for mkvpropedit.
Code:
#!/bin/bash
for f in ./*.mkv; do
mkvpropedit "$f" \
-e track:a1 -s flag-default=0 \
-e track:a2 -s flag-default=1 \
-e track:s1 -s flag-default=0
done
Make sure you install mkvtoolnix first.
track:a1, track:a2 etc. refer to audio tracks and obviously you can toggle the default flags with 0 or 1. You should make sure that the default flag is set to 0 for any preexisting default tracks.
track:s1 refers to the subtitle tracks. All of this is explained in the manpage for mkvpropedit.