mpv-player / mpv-player/mpv

Frequent ≈50ms stutters with 2160p videos

Open
#14,476 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

mpv Information
mpv v0.38.0-525-g265056fa Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Jun 23 2024 00:06:39
libplacebo version: v7.349.0 (v7.349.0-rc1-3-g1fd3c7b-dirty)
FFmpeg version: N-115975-g0c0e7ec81
FFmpeg library versions:
   libavcodec      61.8.100
   libavdevice     61.2.100
   libavfilter     10.2.102
   libavformat     61.3.104
   libavutil       59.25.100
   libswresample   5.2.100
   libswscale      8.2.100
Other Information
  • Windows version:Microsoft Windows [Version 10.0.22621.3737]
  • GPU model, driver and version: RTX 2070, 556.12
  • Source of mpv: github
Reproduction Steps

Playing 4k videos frequently stutters with up to 60ms spikes. log file attached.
the first log with my typical config which exhibit major stutters, first few seconds are stable with max frametimes of 2ms, few seconds later it spikes to 60ms.
the other log with no-config, exhibit wildly variable frame times but no major stutters.
seems to happens regardless whether vo = gpu-next & gpu-api = vulkan are used or not

HW dec make no difference.
Files attached

Expected Behavior

Silky smooth playback

Actual Behavior

major stutters up to 60ms

Log File

log1: myconfig_major_stutter_with lower average_frametimes
myconfig_major_stutter_with lower average_frametimes.log

file 2:
noconfig_unstable_frametimes_no_major_stutters.log

Sample Files

No response

I carefully read all instruction and confirm that I did the following:
  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

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

No source file or test is named; start by reproducing 2160p playback with the stated mpv version, Windows, RTX 2070 driver, and the attached configuration and log files. Compare the configured and no-config logs, then confirm that playback no longer produces recurring frame-time spikes of up to 60 ms.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.