mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
26.72k stars 2.84k forks source link

Frequent ≈50ms stutters with 2160p videos #14476

Open AlawamiAZ opened 4 days ago

AlawamiAZ commented 4 days ago

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

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:

llyyr commented 3 days ago

Try each option individually and see which one causes it?

amariami commented 3 days ago

related issue with #13991
sometimes to get rid of issue I'm just put --profile=fast or shader like FSR (only use EASU) --glsl-shaders="C:\mpv\shaders\FSR.glsl" --hwdec=auto-safe or --hwdec=auto-copy-safe

llyyr commented 3 days ago

related issue with #13991

It is not, they say it works fine with --no-config and mpv could never saturate a RTX 2070 no matter what built-in options you used.