👋 Errors, improvements or other cool stuff? Let me know! 😀
MKVToolNix – Matroska tools for Linux/Unix and Windows
mkvinfo <filename.mkv>
The track identifier is not the track number but (a|s) and its index starting from 1.
mkvpropedit <filename.mkv> \
--edit track:a1 --set flag-default=0 \ # Disable first audio track (a1).
--edit track:a2 --set flag-default=1 \ # Enable second audio track (a2).
--edit track:s1 --set flag-default=0 # Disable first subtitles (s1).
Use mkvinfo
to retrieve track_number
(use the value specified for mkvextract).
mkvextract tracks <filename.mkv> <track_number>:<subtitles.srt>