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

First subtitle track (PGS or SUB) is not working #12118

Closed
FCrane opened this issue Aug 9, 2023 · 7 comments
Closed

First subtitle track (PGS or SUB) is not working #12118

FCrane opened this issue Aug 9, 2023 · 7 comments

Comments

@FCrane
Copy link

FCrane commented Aug 9, 2023

The latest 2 (at least) nightlies introduced a subtitle problem with mkv files: if the mkv contains subtitles in PGS or SUB format, the first subtitle stream is not displayed (even when explicitly selected). 2nd, 3rd, etc. subtitle streams are shown correctly, just first one is invisible.

Provide following Information:

Reproduction steps

play an mkv with subtitle streams (PGS or SUB format) -> selecting the first subtitle stream does not display it. The others seem to work. Only seems to affect PGS and SUB, SRT works fine.

Expected behavior

Show the selected subtitle stream (as it always used to work)

Actual behavior

First (if PGS or SUB) is not shown

@FCrane FCrane added the os:win label Aug 9, 2023
@Traneptora
Copy link
Member

Traneptora commented Aug 9, 2023

Can you please provide a log file? And perhaps a sample too, if possible.

(Launch mpv with --no-config --log-file=mpv-sucks.log as options and see if the issue still occurs, and if so, provide the log file generated.)

@FCrane
Copy link
Author

FCrane commented Aug 9, 2023

It's libmpv used by a custom front-end, so I don't really know how to start it with --no-config.

I've also already deleted the new version because it was unusable, so it's hard to test.

Sample is not really needed, because it occurs with all mpv files containing PGS or SUB subtitles. Old version plays all files correctly.

@Dudemanguy
Copy link
Member

I would greatly appreciate a sample file since I can't reproduce it on the one file I have.

@FCrane
Copy link
Author

FCrane commented Aug 10, 2023

Unfortunately, this is not reproducible reliably with small clips - sometimes it works, sometimes it doesn't. Sometimes it works after stopping the video and restarting it. Sometimes not. With the small (25MB) limit here, it's not possible to generate a clip long enough to show the effect reliably.

It's similar to a problem with the audio tracks, that has always existed in all versions of libmpv: when switching audio tracks, sometimes (very rarely) they are silent and I need to skip forward or back to make them audible again. But this doesn't happen very often.

But the subtitle problem happens almost everytime for every mkv. If I use a libmpv that's a few months old, the subtitles always work perfectly. So there is definitely a problem in the newer versions, because nothing else has changed on my system.

@guahirah
Copy link

The last build forces the default subtitle track to English, whereas in the MKV file default track is set to another language.

@llyyr
Copy link
Contributor

llyyr commented Aug 11, 2023

That's unrelated to this issue but it should be fixed by #12100

@FCrane
Copy link
Author

FCrane commented Sep 6, 2023

The problem seems to be gone with the latest nightly build! Thank goodness ;-)

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

No branches or pull requests

6 participants