-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
ASS subtitle blinks at the beginning for 1ms #109
Comments
I can confirm this, I'll maybe look into this someday, so I'm leaving this as open. |
I've taken a look at it and it happens both on chromium and Firefox. What's strange is that the color is set in the same function that makes the element visible, so it should be yellow instantly. I need to investigate... |
Can you link to the file where the color is set and where the text is rendered the first time on the screen? I could then also guess about the problem. |
This is where the styles are applied and the element is added to the document: SpessaSynth/src/website/js/utils/ass_manager/dialogue_event.js Lines 400 to 459 in d450c2e
|
Thank you. We can see the a hint of the bug in line 406. A hacky solution would be to change the color to the expected color, before. Now, the blink still appears, but we can't see it anymore (like it happens for white color). I think, a better solution would be to remove the blink. For me, it seems like the first element is rendered two times, but not sure. Another guess is that the short blink at the beginning is the first wait time. With karaoke tags, we would have wait times at the beginning for like half a second. Then, for half a second the text is white. Here, the wait time is 0 ms. But maybe it is rounded to 1 ms or so which makes it appear. |
This issue is only about the color, the subtitle otherwise works as expected.
In the following, the main color is gold, and no karaoke tags are used.
We can see, that always when a new line is rendered, it is rendered in white color (at least very short).
Immediately after this, the color is changed to the expected color.
Because of this, we can see a short "blink" for 1ms, which is a bit annoying.
Of course, this can only be seen when the main color is not white.
Here is a test file:
colorbug.zip
Probably, it also appears with karaoke tags, but I always start with white color there, so I can't see it there.
Tested on the webapp.
Of course, this bug is low priority, if there is no easy fix, feel free to close it.
The text was updated successfully, but these errors were encountered: