-
Notifications
You must be signed in to change notification settings - Fork 273
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
Bug: Animation Stuttering with WebM Playback in HTML #1583
Comments
OBS users are reporting similar issues with CEF after updating obs from version 30.2.3 to 31.0. OBS believes the issue lies in an upstream CEF https://github.com/chromium/chromium/blob/main/media/capture/content/video_capture_oracle.cc#L190. See related OBS issues: obsproject/obs-browser#468 and obsproject/obs-browser#470. Similarly, we've encountered issues with CEF after updating CasparCG to version 2.4, which uses CEF 117. CEF functioned flawlessly in the previous versions of OBS v30.2.3 with CEF 103.0.5060. This suggests a potential regression in CEF versions 104 or higher. it's unclear for me that from which branch this specific line in Chrome was introduced. However, given that OBS experienced no issues with CEF 103.0.5060, testing CasparCG with this specific CEF version as a temporary workaround might be beneficial. This could potentially mitigate the issues we're observing in CasparCG 2.4+ while we await a resolution to the upstream CEF bug. |
Hi @Julusian, I'm writing to respectfully request consideration for including a resolution for this issue in the upcoming 2.5 release. This issue is currently blocking my progress and I believe a fix would be greatly appreciated by other users as well. |
I'm not really sure what to do about this. So if this does need to be fixed on the CEF/Chromium side, I don't know what can be done other than to wait or for someone to try and submit a fix there (building CEF is not a nice task) I am wondering, does this still happen on the latest 2.5 beta? |
Thanks for the reply! I understand that downgrading CEF is not feasible. I've tested the latest 2.5 beta builds and the issue persists. I also tried removing the angle-backend, but unfortunately, the problem remains. As you can see in the videos below: test.2.5.mp4test.frames.mp4The second video provides a clearer view of the issue. By playing this link, You can see that the video freezes at frames 337, 586, 698, and 947, and so on. This freezing behavior appears to be consistent across all CEF versions after version 103. Let me know if there's anything else I can do to help troubleshoot or gather more information. Thanks, |
@Julusian do you know what's lacking in CEF103 compared to 117? |
No. Any discussion I had prior to #1499 will have been on a slack/Jira that I no longer have access to. I'm subscribed to the various issues in obs/chromium linked here, so will keep an eye on those and once one of them figure out what to do, I shall try and do the same |
@Julusian if I wanted to make a 2.4 version with CEF103 for my own use, would it be a lot of work to revert? We do very basic templates and for me smooth playback is much more important than a few missing features. |
Many people have been using 2.4 with its CEF117 with varying complexity of templates without issue. So you may well not have an issue.
Depends on if you need the shared-texture flow (only valid for windows). I have no idea if that would work well or smoothly, so make sure to test it well. |
Thank you @Julusian for keeping an eye on this! Much appreciated. @dimitry-ishenko, if you are planning to build server for Windows, would you be willing to share it with me for testing purposes? |
Sure thing. |
Reito from OBS initially reported this problem on the Chromium issue tracker (https://issues.chromium.org/issues/391118566). They then developed a solution and submitted it for review (https://chromium-review.googlesource.com/c/chromium/src/+/6232721/4#message-e2de52940a83270a1c64f22b7a776901da0efe00). This fix has been approved and merged. |
Wanted to drop by and say this as well, yes - the fix has also been backported to OBS's CEF fork which is still on 127 |
Observed Behavior
I'm experiencing an issue where text animations stutter or freeze while playing a WebM video in the background. This occurs specifically when using the HTML template with the following code:
CasparCG Configuration:
WebM info:
I've tried disabling GPU acceleration in casparcg which slightly improve performance, but the issue persists.
Additional Observation:
When running the HTML template in CasparCG and enabling Frame Rendering Stats (shows frame per second FPS meter) in Chrome's remote debugging tools, the text animation plays smoothly. However, disabling Frame Rendering Stats causes the animation to stutter again. This observation might provide a clue to the underlying issue.
Expected behaviour
The text animation should play smoothly without any stuttering or freezing.
The same HTML file plays smoothly in OBS v30.2.3 and Chrome browser. OBS is using Webgl verified by https://webglreport.com.
Steps to reproduce
Environment
The text was updated successfully, but these errors were encountered: