You are not logged in.

#1 2025-04-11 20:34:24

almindor
Member
Registered: 2015-10-10
Posts: 45

mpv stutters in fullscreen

Playing a video in mpv works fine as long as it's in a window, if I switch fullscreen it "stutters" as if jumping a bunch of frames back all the time.

Used to work with older mesa/kernel. vlc is fine though, so are browser videos.

Using AMDGPU/radeon vulkan with wayland/swaywm.

Linux SAPHIRE 6.14.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 07 Apr 2025 19:59:13 +0000 x86_64 GNU/Linux
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 32 [Radeon RX 7700 XT / 7800 XT] (rev c8)
mesa 1:25.0.3-1
vulkan-radeon 1:25.0.3-1
mpv 1:0.40.0-2

Last edited by almindor (2025-04-11 22:46:30)

Offline

#2 2025-04-12 06:13:13

Xephon
Member
Registered: 2024-12-22
Posts: 63

Re: mpv stutters in fullscreen

If vlc works fine then vaapi is enabled, I guess
But just in case provide output of

vainfo

Hardware decoding is not enabled in mpv by default. Have you set up mpv.conf in accordance with
https://wiki.archlinux.org/title/Mpv#Ha … celeration ?

If you have post it's contents here.

Offline

#3 2025-04-12 18:20:42

almindor
Member
Registered: 2015-10-10
Posts: 45

Re: mpv stutters in fullscreen

Xephon wrote:

If vlc works fine then vaapi is enabled, I guess
But just in case provide output of

vainfo

Hardware decoding is not enabled in mpv by default. Have you set up mpv.conf in accordance with
https://wiki.archlinux.org/title/Mpv#Ha … celeration ?

If you have post it's contents here.

Trying display: wayland
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Mesa Gallium driver 25.0.3-arch1.1 for AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.2-arch1-1)
vainfo: Supported profile and entrypoints
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

I didn't have mpv configured in any way, no config file. Adding `hwdec=auto` to `~/.config/mpv/mpv.conf` did not produce any change in behavior.

Offline

#4 2025-04-12 19:27:49

Xephon
Member
Registered: 2024-12-22
Posts: 63

Re: mpv stutters in fullscreen

Try to add

gpu-api=opengl

option to mpv.conf. If that doesn't help try

gpu-context=drm

Last edited by Xephon (2025-04-12 19:33:51)

Offline

#5 2025-04-12 20:13:26

seth
Member
Registered: 2012-09-03
Posts: 62,758

Re: mpv stutters in fullscreen

For clarification, this is *only* when setting the window fullscreen, not when playing the video at the same size but eg. in a maximized window?
Do you get the same w/ eg. weston/hyprland or openbox/icewm (ie. X11)?

Offline

#6 2025-04-13 02:19:48

almindor
Member
Registered: 2015-10-10
Posts: 45

Re: mpv stutters in fullscreen

Xephon wrote:

Try to add

gpu-api=opengl

This "fixes it". Note that this was working without any config file before.

Offline

#7 2025-04-13 07:01:03

seth
Member
Registered: 2012-09-03
Posts: 62,758

Re: mpv stutters in fullscreen

Does vkcube behave the same?

Offline

#8 2025-04-13 08:56:11

Xephon
Member
Registered: 2024-12-22
Posts: 63

Re: mpv stutters in fullscreen

This "fixes it". Note that this was working without any config file before.

That's because mpv 0.40 changed default settings from --gpu-api=opengl to --gpu-api=vulkan. And it causes issues on some systems.
New versions -> new features -> new bugs. It's not a fix, it's a workaround until upstream fixes it.

Offline

#9 2025-04-13 16:05:26

almindor
Member
Registered: 2015-10-10
Posts: 45

Re: mpv stutters in fullscreen

Xephon wrote:

This "fixes it". Note that this was working without any config file before.

That's because mpv 0.40 changed default settings from --gpu-api=opengl to --gpu-api=vulkan. And it causes issues on some systems.
New versions -> new features -> new bugs. It's not a fix, it's a workaround until upstream fixes it.

I think this is more of an accidental symptom. From what I can say mesa 1:25+ and radeon-vulkan same has broken a LOT of things. It seems latest fixed some of those but not all issues with vulkan/amdgpu.

Offline

#10 2025-04-13 16:06:06

almindor
Member
Registered: 2015-10-10
Posts: 45

Re: mpv stutters in fullscreen

seth wrote:

Does vkcube behave the same?

No, vkcube seems fine windowed or fullscreen.

Offline

#11 2025-04-15 14:43:37

almindor
Member
Registered: 2015-10-10
Posts: 45

Re: mpv stutters in fullscreen

I'm pretty sure it's caused by this bug in mesa.

Last edited by almindor (2025-04-15 22:46:33)

Offline

#12 2025-04-15 19:37:33

seth
Member
Registered: 2012-09-03
Posts: 62,758

Re: mpv stutters in fullscreen

I'm pretty sure that's not a valid link tongue

Offline

#13 2025-04-15 22:47:00

almindor
Member
Registered: 2015-10-10
Posts: 45

Re: mpv stutters in fullscreen

seth wrote:

I'm pretty sure that's not a valid link tongue

Hah, damn antiquated codes, why can't we all just markdown. Link fixed smile

Offline

Board footer

Powered by FluxBB