mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.32k stars 2.9k forks source link

Select multiple track types when certain external files are loaded #12166

Open natural-harmonia-gropius opened 1 year ago

natural-harmonia-gropius commented 1 year ago

Important Information

Reproduction steps

example.mkv no embedded or external subtitles example.mka with embedded subtitles

audio-file-auto=fuzzy in mpv.conf

Play example.mkv, external audio tracks successfully loaded.

Expected behavior

If currently no subtitle has been selected, try to re-select a subtitle following --subs.

Actual behavior

Subtitles won't be selected.

Log file

Sample files

Dudemanguy commented 1 year ago

Sorry, I don't understand what you're trying to describe. Are you saying that that using --audio-file-auto changes subtitle selection?

natural-harmonia-gropius commented 1 year ago

Are you saying that that using --audio-file-auto changes subtitle selection?

No.

This is a mka file, contains audio and subtitles. --audio-file-auto=fuzzy will load this file, both audio and subtitle tracks apeended. but sub selection will not select subtitle tracks in this mka file. image image

Highlight one is "disabled", If I remux two file into one mkv, subtitle selection works well.

Dudemanguy commented 1 year ago

Oh I see what you mean now. The external files mechanism only assumes the file is one particular type of stream (audio, subtitle, or video). In this case because you passed --audio-file-auto, it assumed it was only an audio file and only selected that track. Checking if the file actually has other kinds of tracks during that step isn't done so it doesn't select the subs. Not sure what the best way of implementing this kind of behavior would be, but marking as a feature request for now.