-
Notifications
You must be signed in to change notification settings - Fork 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
Stuttering during playback with wayland and 23.976Hz or 24Hz refresh rates. #15597
Comments
I had the same issues when I had KDE on my second computer. I think it's an issue with Plasma, since on Hyprland the playback is smooth as butter. I tried so hard to make MPV on Hyprland stutter, and I can't; even dragging windows around and messing with other stuff while playing does not make MPV stutter. P.S.: I always use video-sync=display-resample with hardware decoding set to auto-safe and vo=gpu, also with interpolation turned on. |
Thank you for the response. Video-sync helps with smoothing the video but not with the large stutters; the video literally jumps. - - gpu-context=x11egl helps a lot but unfortunately does not fix the issue. When I manage to start X11 (this amd 7840u computer doesn’t like starting in X11), videos play fine at 23.976 and 24Hz. So, my conclusion is that it's related to Wayland. I guess I can try hyperland but that's not the objective because I only like kde. |
Recently, I have a very similar issue on
I am also on an amd gpu (780M), and run sway ( |
Disable adaptive_sync in your sway config |
I have just booted kernel 6.11.10 instead of 6.12.10 and the issue seems gone. @adolfotregosa given that you use 6.13.0 and are also using amd graphics, could you try a kernel <=6.11 and see if that fixes your issue? If yes this issue should probably be moved to https://gitlab.freedesktop.org/drm/amd/-/issues |
mpv Information
Other Information
At 23.976Hz or 24Hz refresh rates, videos stutter randomly.
However, at 120Hz, they don't. On X11, it'sfine as far as I can tellperfect. Using my other computer on the same TV, which has an Nvidia card, I don't see this issue on either X11 or Wayland, so I'm leaning towards it being something related to the AMD (i)GPU + wayland. I’ve tried all the combinations I could think of with --hwdec, --gpu-api, --vo, --video-sync and --gpu-context without any success. The issue is only present in wayland.Any suggestions ??
EDIT: At 120Hz using a 24Hz sample file so it's a multiple, stutters are there, just not as pronounced.
Now I'm really out of ideas lol.
EDIT2:
mpv FPS_test_1080p24_L4.1.mkv --hwdec=auto --vo=gpu-next --video-sync=display-resample --gpu-context=x11egl
At least at 120Hz, this combination helps tremendously, at 24Hz , still stutters.
EDIT3:
I've tested so far CachyOS, Manjaro and Nobara 41 both kde and gnome flavors. I also tested FFmpeg and MPV github master code. The video jumps always happen when TV refresh rate is set to match videos like 23.976Hz or 24Hz under wayland but not X11.
EDIT4:
I tried the Debian-based Siduction KDE, and X11 works perfectly, with videos running 100% smoothly at 23.976 and 24Hz, no - - video-sync option whatsoever. In my opinion, the issue is Wayland-related, but I’m not sure whether the fault lies with AMD or Wayland.
Reproduction Steps
The computer must be connected to a TV or monitor capable of switching the refresh rate to 23.976Hz or 24Hz and running wayland. I use the well-known mpv-kscreen-doctor.lua script to achieve this automatically. https://gitlab.com/smaniottonicola/mpv-kscreen-doctor
Play the sample file I attached and simply watch the moving bars. At some point they stutter/jump badly.
Expected Behavior
No stutters
Actual Behavior
stutters
Log File
output.txt
Sample Files
FPS_test_1080p23.976_L4.zip
FPS_test_1080p24_L4.zip
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.The text was updated successfully, but these errors were encountered: