-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
Subtitle srt file colour problem #18917
Comments
Please share a subtitle sample |
|
Seems your hex-code is wrong. I changed the one line to:
Check for the correct code here: https://www.color-hex.com/ |
Hi! :-) Many thanks for the interest. The hex code (not mine, by the way) is in the form #rrggbbaa, where "aa" is the alpha, or transparency. Hence, not actually wrong, and I do know that Kodi renders #rrggbb codes correctly, but apparently not with the alpha portion. |
Seems the alpha channel for subtitles is a feature request: https://forum.kodi.tv/showthread.php?tid=332432 So I'll close this one as it's not an issue if it's unsupported. I did a few tests and the alpha-channel-section seems not to be supported currently. |
Interesting, thanks. Android defines it as #AARRGGBB : Where W3 has is as #RRGGBBAA : Thanks for the info anyway. At least we know that this is coming through in some .srt files now. |
Subtitles will (fingers crossed) have a lot of improvements for v20 where the old GUI based component will hopefully be removed in favour of libass as the engine, which will.overcome a lot of style limitations we have right now. |
After some internal discussion we were not able to find any source that mentions that rgba colours are supported in srt subs. If you want to have a custom implementation where this is supported you can try the above patch. However, it will not make it into the source code. |
Thanks again. Just for info this is still a current issue, as I am regularly receiving srt files with that colour format.
|
Many thanks. |
Bug report
Describe the bug
Here is a clear and concise description of what the problem is:
Some RGBA font colours are not displayed correctly.
In an srt file the
<font color="#00ff00ff">Text</font>
should be rendered as green, but is actually black.Expected Behavior
Here is a clear and concise description of what was expected to happen:
Should be green text.
Actual Behavior
Subtitle text appears coloured black.
Possible Fix
Alpha transparency does not appear to be understood properly?
To Reproduce
Steps to reproduce the behavior:
Debuglog
The debuglog can be found here:
Screenshots
Here are some links or screenshots to help explain the problem:
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
Your Environment
Used Operating system:
Android
iOS
tvOS
Linux
OSX
Windows
Windows UWP
Operating system version/name:
Kodi version:
Leia 18
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.
The text was updated successfully, but these errors were encountered: