-
Notifications
You must be signed in to change notification settings - Fork 3k
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
mpv doesn't accept ASS scripts without a [Script Info] line #2846
Comments
Affects the ffmpeg ass demuxer. |
Oops, didn't see there is already #2821. Now it does seem like a bug... |
See also #2506 |
Needs a sample file. |
OK. In this particular case, the beginning of the script (before
Removing the |
I think we'd prefer a complete script, so we can determine what could be used for autodetection. |
Can the ASS demuxer be forced when handing over |
As the title suggests, mpv won't load the ASS subtitle if it doesn't contain a
[Script Info]
line, not even when the user manually drag the file into the mpv window.I recently came across some ASS scripts like that, in which the first few lines in the file - including the first line that says
[Script Info]
- are commented out by semicolons. Manually delete the semicolon in the first line solves the issue.I know this is unlikely to be a bug on mpv's (or libass's) side, as one could argue that commenting out the first section-defining line makes the file an invalid ASS script after all. But I still decided to post this as an issue here because while these ASS subtitles have been on the web for quite a while and downloaded by thousands of people already, I haven't seen anyone complaining about this problem, so I assume those video players used by most people (like MPC-HC, PotPlayer, VLC etc.) can play those subtitles just fine. Maybe mpv should also tolerate those kind of ASS scripts just for compatibility's sake? What do you think?
(The info in those files say the script is generated by Aegisub, but I'm not sure whether Aegisub is the culprit here. It could well be that the files were edited in other text editors afterwards and the first line got accidentally commented out, and nobody noticed/thought this will actually be an issue...)
The text was updated successfully, but these errors were encountered: