automatic track selection in addition to alang and slang #5133
Labels
core:audio
core:option-param-conf
config, parameters, properties, options, shortcuts
core:subtitle
core:video
meta:feature-request
I think this feature is particularly important when watching some videos with multiple audio tracks that have the same language code. For instance,
a.mkv
has a 2chn 16bit jpn track, correspondinga.mka
has a 6chn 24bit jpn track and a 2chn 24bit jpn track. They only differ in the number of channels and bit-depth. If only--alang
option is going to auto-select the track, it is unlikely that one can get the track desired. Ones who have decent stereo systems may prefer the 2chn 24bit track, who have 5.1 systems may prefer the 6ch track and the others may want the default 2chn 16bit track.When it comes to the subtitle, the problems can be more complicated. One problem is that sometimes the authors of external ass subtitles miss the language code in the file, then mpv recognizes them as
unknown
. In this case, the language code or related information helping selecting the track might be in the filename (--sub-auto=fuzzy
). Even for built-in PGS subtitles, slang alone can also have troubles. For example, Simplified Chinese and Traditional Chinese share the codechi
.In MPC-BE or Potplayer, this feature is pretty much implemented. I can specify 'stereo' to let the player prefer 2chn tracks (though I could not really pick up the 2chn 24bit track when the 2chn 16bit track is the default). Also, if the mkv file contains additional information describing what the languages really are, for example, I can use 'Mandarin' to match the Mandarin subtitle among a few 'chi' subtitles.
I hope this can also be implemented in mpv, so that users will have more freedom to customize the automatic track selection.
The text was updated successfully, but these errors were encountered: