Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secondary subtitles problem: only accepts native language as primary #96

Open
spirited1086 opened this issue May 3, 2023 · 3 comments

Comments

@spirited1086
Copy link

I can enable secondary subtitles for my target language, but not for my native language, i.e., when setting the secondary_sub_lang to en, eng, then I cannot see any secondary subtitles on the top of the screen. However, if I set the secondary_sub_lang to es (my target language), then the bottom subtitles are forced to English and the secondary subtitles are Spanish.

MPV is able to recongize both the English and Spanish subtitles, named in the following format:
EPISODENAME.en.srt (Englsih subtitles)
EPSIODENAME.es.srt (Spanish subtitles)

I can fix the problem by simply changing the file names so that Spanish subtitles are the .en.srt and the English are the .es.srt.

Environment

**1) OS name [e.g. Parabola, Debian]
Windows
2) OS version
11
3) mpv version
Latest release, mpv-x86_64-v3-20230423

Also cloned latest github repo for mpvacious and reinstalled it.

Although, the issue was found with an earlier version so I updated to see if that would fix the issue.

@tatsumoto-ren
Copy link
Member

Maybe you have the slang property set to en,eng in mpv.conf. If so, change it to something else.

You can always select different subtitle tracks after a video loads by pressing J,K and ctrl+J, ctrl+K.

@spirited1086
Copy link
Author

Thanks for the response Tatsumoto,

I can manually set the secondary subtitle tracks with ctrl+J. That works.

I changed slang to prioritize es (Spanish) subtitles and see what happens. For some reason English subs still load first, and block the Spanish subtitles from automatically loading (whereas before when the slang property prioritized English, this was the only combination that would automatically load for automatic secondary subtitles).

@nairyosangha
Copy link
Member

Shot in the dark, but is the show you're watching also in Spanish? @tatsumoto-ren pointed out on matrix today that mpv does not automatically load subtitles if they're in the same language as the audio. So, if your audio is Spanish, it's possible that mpv refuses to load the spanish subtitle.

You can get around that by adding subs-with-matching-audio=yes in your mpv.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants