Ajatt-Tools / mpvacious

🍜 Adds mpv keybindings to create Anki cards from movies and TV shows.
https://tatsumoto-ren.github.io/blog/mining-from-movies-and-tv-shows.html
GNU General Public License v3.0
599 stars 51 forks source link

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

Open spirited1086 opened 1 year ago

spirited1086 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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