mpv-player / mpv-player/mpv

mpv framerate tanks after a certain resolution

Open
#13,273 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:linux
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Summary

mpv drops frames dramatically after it reaches a certain resolution. Very similar to #8613, but it only happens with scale=ewa_lanczossharp. cscale=ewa_lanczossharp and video-sync=display-resample work without issues on my machine.

A screenshot of this video to show my point:
Screenshot_20240113_144022-3

Corresponding mpv.conf:

hwdec=vaapi-copy
#profile=gpu-hq
scale=ewa_lanczossharp
hdr-peak-percentile=99.995
hdr-contrast-recovery=0.30
deband=yes
Important Information
  • mpv version: v0.37.0
  • Linux distro: Arch Linux
  • Source of mpv: distro-supplied
  • GPU: Intel HD Graphics 4400 (Intel i5-4300U CPU)
Reproduction steps

Use scale=ewa_lanczossharp in mpv.conf, or have profile=gpu-hq

Expected behavior

No frame rate drops for a static image

Actual behavior

Lots of dropped frames

Log file

mpv_log.txt

Sample files

https://0x0.st/Hlfc.mp4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by reproducing the issue with the provided sample file and the scale=ewa_lanczossharp setting in mpv.conf on the reported hardware or a comparable Linux system. Inspect mpv_log.txt and compare the scaling configurations; done means identifying the cause of the resolution-dependent frame drops and verifying that the problematic configuration no longer drops frames.

Written by the indexing model from the issue text.

Assessment

Tech stack
arch-linux, c, linux
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.