-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
How to Achieve a Smooth Rotation on a Stream #1167
Comments
Hi Jill, |
Okay, thanks! |
Update: We tested with 60 FPS and it didn't solve. We are streaming from a headless chrome page using Chrome version 113.0.5672.126. It looks like WebGL is not supported very well in headless Chrome. See this thread. We tried changing to Google Chrome 95.0.4638.69 and it also did not work. When we use 113.0.5672.126 it rotates but not very smoothly - we're not using any WebGL flags. When we use an older version of Chrome (95.0.4638.69) and try using the WebGL flags we get this error. Does anyone have any insights on this or where to go for help? |
I can confirm that headless WebGL support can be problematic, and it's caused issues with CI in the past (and it why I haven't moved CI away from Travis CI yet). For the older version of Chrome, you can check the developer console to see if it says anything helpful, although I doubt you'll see anything particularly informative. I don't know how you're using FFmpeg with Chrome, but, regardless, I've never tried to record a screen capture and don't have much advice to offer on the matter, unfortunately. Due to the poor performance, I suspect your headless Chrome is running without hardware acceleration; if you can get that working, you'll probably see significantly improved performance. Otherwise, I can only suggest workarounds. If you can step through frame by frame—essentially manually animating it—and record still images, that obviously avoids dropped frames. Using an HDMI capture dongle would also avoid the issue, as you said it works when you're not trying to record it. I know neither of those suggestions are ideal. There's also apparently some sort of experimental Chrome feature for making timing deterministic for this sort of thing, but I have no experience using it. |
Hi there,
We are using this code to rotate an image on a web browser. The image rotates for 10 seconds and then stops.
It looks good on our computers but on our FFmpeg stream it is not smooth. The FFmpeg settings are as follows:
Bitrate : 6000k
FPS: 30
PIX_FMT: Yuv420
Encoding : h264_nvenc
Any thoughts on how to solve this?
The text was updated successfully, but these errors were encountered: