mpv-player / mpv-player/mpv

Frame skipping when playing 720p 50/60fps video on a 1080p60 monitor using vo=gpu-next with gpu-api=opengl.

Open
#14,094 0 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

Important Information

Provide following Information:

  • mpv 0.38.0_181_g467c1e860a-1
  • Arch Linux with KDE Plasma Desktop (Wayland session)
  • AUR (mpv-git)
  • I don't known which version of mpv introduced the problem
  • KWin 6.0.4 (without using scaling)
  • Intel Graphics HD 4600 / libva-intel-driver 4.2.1

My configuration:

vo=gpu-next
hwdec=vaapi
gpu-api=opengl
vf=vavpp:deint=motion-compensated:interlaced-only=yes (put in a separate profile for "video-frame-info/interlaced" == true).

I sometimes watch various sports broadcasts. Often it's 1080i50 and I don't notice any issues with frame drops or jerks. Everything looks fine when I turn on a 720p50 broadcast and watch in a window. But I immediately see a slideshow when I expand the window to full screen mode. I can also see frame skipping in the log. It is logical to assume that the problem is related to scaling. I specified explicitly scale=bilinear and the frame skipping almost stopped. But with all other better scaling options everything works terribly. When using vo=gpu with default scaling there is also frame drops but not as bad.

I installed the Vulkan driver today and specified gpu-api=vulkan. With these parameters everything works as expected. Maybe the problem is related to OpenGL in Wayland or specifically KDE.

gpu-next-opengl.log

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

Start by reviewing gpu-next-opengl.log and reproducing the stated 720p50/60 fullscreen case on KDE Wayland with gpu-api=opengl, comparing bilinear scaling and Vulkan behavior. The issue is resolved when fullscreen playback no longer shows the reported frame skipping with the affected scaling options.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.