Small script that automatically sets the correct subtitle via flags.
Subtitle Track Selection analyzes whether there are subtitles for the file (internal or external) and sets the most correct one via flag priority:
- forced + default
- forced
- default
- external (subtitles external to the file)
In the case of multiple subtitles with the same priority (flag), the first one present will be set according to the order of the subtitles.
If there are only subtitles without flags, not only will they not be set, but they will also be deselected (in case mpv selects one automatically).
There is the possibility to enable or disable external subtitle control via script-message
to the toggleExternal
function (for manual use via console or to bind it to a key).
Place the Subtitle_Track_Selection.lua
file into mpv scripts
folder.