mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[Issue]: ASS Subtitles embedded in MKV make the stream crash #3441
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oxixes on GitHub (Dec 12, 2021).
Update: I found what is the cause of this bug. The stream crashes when the ASS subtitles use a font that is not installed in the client's system. In the logs I provided this was the case for Lato Bold. After I installed that font the video played without any issues.
Please describe your bug
Whenever I try to play any of my MKV files which have ASS subtitles embedded the stream starts and then crashes. Jellyfin makes a few attempts to play the video (which actually plays fine for a second) but it finally gives up. This happens when the "Embed subtitles" option in the user settings is set to "auto", if I change it to "burn complex formats (SSA, ASS, VOBSUB...)" it plays any video fine, but then it will always require transcoding.
Note: I don't know if it's related, but the MKV files also contain fonts for the subtitles, which may be the source of the problem, I haven't tested any with subtitles but without fonts.
Jellyfin Version
Other
if other:
10.8.0 (also happened in 10.7.7)
Environment
Jellyfin logs
FFmpeg logs
Please attach any browser or client logs here
No response
Please attach any screenshots here
(This appears after Jellyfin tries to play the video a few times. The video plays fine, but it crashes a second later)
Code of Conduct
@Ge082 commented on GitHub (Dec 13, 2021):
I confirm this, ASS subtitles crash the stream
@oxixes commented on GitHub (Mar 26, 2022):
Sorry for not looking at this earlier. This was fixed by jellyfin/jellyfin-web#3302
@oxixes commented on GitHub (Sep 18, 2022):
This issue seems to keep happening now, and I can confirm fonts in the mkv file are not the issue, as it happens both with and without them (jellyfin 10.8.4).
@oxixes commented on GitHub (Oct 3, 2022):
Update: I found what is the cause of this bug. The stream crashes when the ASS subtitles use a font that is not installed in the client's system. In the logs I provided this was the case for Lato Bold. After I installed that font the video played without any issues.
@Slug-Cat commented on GitHub (Nov 13, 2022):
I also encounter this issue on 1.8.7. Fallback fonts do not seem to work.
@jellyfin-bot commented on GitHub (Apr 29, 2023):
This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.
@oxixes commented on GitHub (May 3, 2023):
This issue is still present, I am forced to change the fonts specified in the ASS subtitle files to similar ones present in the users' system, and then I have to add them to the fallback fonts (or else they aren't used).
@TheBinaryLoop commented on GitHub (May 30, 2023):
I also have this issue. The font required by the ass file is Arial so I doubt that the font is the problem. Does anybody have a solution yet?
@jellyfin-bot commented on GitHub (Sep 30, 2023):
This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.
@felix920506 commented on GitHub (Oct 6, 2023):
I have encountered the same issue in 10.8.9
How I broke it:
How I worked around it:
Expected behavior:
JF should have just sucked it up and render with fallback fonts instead
Related to jellyfin/jellyfin-web#5036 (Bad / unhelpful error messages)
@Obamium69 commented on GitHub (Oct 22, 2023):
I am experiencing this issue on version 10.9.0 as well. I am using rffmpeg and jellyfin-ffmpeg6 (ffmpeg version 6.0-Jellyfin).
The current workaround I've found is to change the setting to "burn complex formats (SSA, ASS, VOBSUB)." With this setting, Jellyfin plays all videos without any issues.
@jellyfin-bot commented on GitHub (Mar 31, 2024):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@jellyfin-bot commented on GitHub (Apr 21, 2024):
This issue was closed due to inactivity.