You are not logged in.

#51 2026-02-11 16:11:40

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,969

Re: Many dropped frames playing 4k h264 video with mpv

MESA-INTEL: warning: Haswell Vulkan support is incomplete

If it's not the linear downscaler and since upscaling isn't relevant:
dither=no
correct-downscaling=no
hdr-compute-peak=no

Offline

#52 2026-02-11 16:17:44

Strangiato
Member
Registered: 2020-01-10
Posts: 499

Re: Many dropped frames playing 4k h264 video with mpv

Nothing changes using your parameters.

Offline

#53 2026-02-11 18:08:38

xerxes_
Member
Registered: 2018-04-29
Posts: 1,007

Re: Many dropped frames playing 4k h264 video with mpv

You can try:
--vo=sdl --profile=fast
--vo=gpu --hwdec=vaapi --profile=fast

Offline

#54 2026-02-11 18:19:41

Strangiato
Member
Registered: 2020-01-10
Posts: 499

Re: Many dropped frames playing 4k h264 video with mpv

"--vo=sdl --profile=fast" results in ~40 frames dropped per second.
"--vo=gpu --hwdec=vaapi --profile=fast" is much better, but hw acceleration does not work.

Offline

#55 2026-02-11 18:29:56

xerxes_
Member
Registered: 2018-04-29
Posts: 1,007

Re: Many dropped frames playing 4k h264 video with mpv

How much "--vo=gpu --hwdec=vaapi --profile=fast" is better, how much frames dropped and how do you know that hw acceleration does not work?

You can also try "--vo=gpu --hwdec=drm --profile=fast".

Last edited by xerxes_ (2026-02-11 18:38:21)

Offline

#56 2026-02-11 19:23:26

Strangiato
Member
Registered: 2020-01-10
Posts: 499

Re: Many dropped frames playing 4k h264 video with mpv

"--vo=gpu --hwdec=vaapi --profile=fast" drops ~10 frames per second. Info provided by shift+i indicates that hw is not activated.

A few moments ago my new 120hz monitor was delivered, I'm using it right now. And mpv does not drop any frame with these settings:

                                                   
#hwdec=auto-safe
vo=gpu-next
gpu-api=opengl
save-position-on-quit
profile=fast

If vaapi-copy hw acceleration is activated (by pressing ctrl+h), mpv drops ~5 frames per second.

mpv with "--vo=gpu --hwdec=drm --profile=fast" drops ~3 frames randomly.

Offline

#57 2026-02-11 20:04:38

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,969

Re: Many dropped frames playing 4k h264 video with mpv

that hw is not activated

Since you explicitly selected vaapi there would have to be some error and statement that it's falling back to software - also how is dropping 10fps "much better" than just --profile-fast

20hz monitor … mpv does not drop any frame with these settings

so at least in part the issue stems from vsync and barely rendering above 60fps max

mpv --hwdec=help | grep drm

is probably not a valid decoder tbw, please don't flail around.

Nothing changes using your parameters.

the fast profile does nothing but setting

 scale=bilinear
 dscale=bilinear
 dither=no
 correct-downscaling=no
 linear-downscaling=no
 sigmoid-upscaling=no
 hdr-compute-peak=no
 allow-delayed-peak-detect=yes

if setting (all of) those does not produce the same results as "--profile=fast" you're not setting them at all

Offline

#58 2026-02-11 20:12:26

Strangiato
Member
Registered: 2020-01-10
Posts: 499

Re: Many dropped frames playing 4k h264 video with mpv

Well, 10 dropped frames is much better than 40. smile

"mpv --hwdec=help | grep drm" produces no output.

The parameters below results in ~30 frames dropped per second if hw acceleration is activated.
And no frame is dropped if hw acceleration is deactivated.

 scale=bilinear
 dscale=bilinear
 dither=no
 correct-downscaling=no
 linear-downscaling=no
 sigmoid-upscaling=no
 hdr-compute-peak=no
 allow-delayed-peak-detect=yes

Last edited by Strangiato (2026-02-11 20:15:21)

Offline

#59 2026-02-11 20:20:11

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,969

Re: Many dropped frames playing 4k h264 video with mpv

"mpv --hwdec=help | grep drm" produces no output.

I know, the point was to to illustrate that  this is a completely bogus parameter.

How and where do you apply the fast profile settings and how do you en/disable hw acceleration?
Things rather don't add up here at all, you should post the mpv -v output for every test you run so we see what actually gets applied.

Offline

#60 2026-02-11 20:47:53

Strangiato
Member
Registered: 2020-01-10
Posts: 499

Re: Many dropped frames playing 4k h264 video with mpv

I have added "profile=fast" to /etc/mpv/mpv.conf file.

I also have "hwdec=auto-safe" (hw ac activated) in the mpv config file. I press ctrl+h while mpv plays the video to deactivate/re-activate hw ac.

The current situation is: I have "profile=fast" in the config file; mpv drops a few frames when hw ac is active, and drops no frame if hw ac is deactivate.

If I remove "profile=fast" from the config file, mpv drops many frames regardless the hw ac is active or not

Offline

Board footer

Powered by FluxBB