-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
gpu-next: flicker with display-resample and interpolation #12316
Comments
Maybe related to #11465 as well? |
This only happens with |
Interesting observation and I can confirm that skipsilence.lua doesn't cause any problems with the current defaults anymore. There is still the occasional weird flicker similar to the edge flicker in the video above with videos that have mistimed frames on vulkan, which I assume is related. It still happens with |
Playing that video with those script settings causes a gazillion dropped frames for me. Is my computer just bad or something? Without |
Are you on a 100Hz+ display? Because when But I have also noticed dropped frames on speed changes. |
Nah just normal 60Hz. And yeah of course the |
I also get that one, so it's not just you. 🤷 |
Did a bit more testing and I think the root cause of this flicker is when you drop a bunch of frames in a short burst. The script with these settings happen to cause this on the video. If you watch the dropped frame counter, anytime there's a big jump in the values, it lines up with a flicker. On the other hand if you load up on comically heavy rendering settings that cause regular frame drops, the flickering artifact doesn't occur since there aren't any sudden bursts. So I don't believe this particular issue is related to anything else. vo_gpu is more robust against this for whatever reason. I suspect vo_gpu_next could use some extra sanity checking somewhere to avoid weird edge cases like this. |
Fixed by #12865. |
And not actually fixed anymore. Previous commit "fixed" this by accident. |
Fixed by #12890 |
Important Information
Provide following Information:
I noticed that problem months ago with a file that had a frame with incorrect pts every few seconds, but didn't look into it any further because it usually doesn't cause any problems (also the video wasn't freely available, so providing a sample might have been problematic).
It came up again when testing #12028.
The whole image flackers occasionally (random intervals) when using opengl, while it only flickers around the border when using vulkan.
Doesn't happen with vo=gpu.
Might be related to #11519
Reproduction steps
mpv --no-config --script=skipsilence.lua --script-opts=skipsilence-enabled=yes,skipsilence-ramp_constant=4 --vo=gpu-next --video-sync=display-resample --interpolation --gpu-api=opengl "https://www.youtube.com/watch?v=jpKrrchVRGE"
Expected behavior
Normal playback without flickering
Actual behavior
Opengl
flicker_full.mp4
Vulkan
flicker_edge.mp4
Log file
opengl log
vulkan log
Sample files
The video from the linked issue
The text was updated successfully, but these errors were encountered: