jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.11k stars 309 forks source link

subtle stuttering during playback #204

Open HarHarLinks opened 2 years ago

HarHarLinks commented 2 years ago

Describe the bug There is very very slight stuttering during playback, which does not happen when I use mpv directly. The only other difference apart from mpv config is that one method also goes via Jellyfin server (docker, direct playback only), while "directly" is using a samba share mounted with cifs. Jellyfin and NAS are both on the same machine in the LAN, with GbE.

The stutter happens in intervalls of 10-20 seconds at most, but not always, and only drops 1-5 frames or so I'd say. Since I am watching high quality 4K content, I can't exclude this being a peak bitrate issue in either Jellyfin server or client buffer. It does happen for example at 16Mb/s (mean) bitrate, which according to plotbitrate has frequent peaks over 30Mb/s.

example

My primary display is 170Hz (freesync/VRR) 1440p, which I use for viewing. My windowmanager is sway, and even though the log calls the display "XWAYLAND0", the window is running in native wayland mode. Though perhaps it appears later as KonvergoWindow.cpp @ 685 - Screen 0 QScreen(0x55a057f4b430, name="DP-1") QRect(1920,0 2560x1440), so I'm not sure. I am also using optical Dolby SPDIF bitstreaming and pipewire (but it might use ALSA directly, not sure).

To Reproduce Play back.

image

Expected behavior 0 stutter.

Log jellyfinmediaplayer.log

"direct" mpv config

vo=gpu
profile=gpu-hq
scale=ewa_lanczossharp
fbo-format=rgba16f
glsl-shaders="~~/FSRCNN_x2_r2_8-0-2.glsl"
osd-bar=no
audio-pitch-correction=yes
slang=eng,en,ger,de
sub-forced-only=yes
alang=eng,en,ger,de
screenshot-directory=~/screenshots/

which I run with mpv --sid=0 --audio-channels=5.1 --audio-device=alsa/iec958:CARD=PCH,DEV=0 --af=lavcac3enc file.mkv for bitstreaming playback

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

sevenrats commented 8 months ago

i haven't been able to reproduce this issue. is it still a problem?

HarHarLinks commented 8 months ago

Yes it is, but I have no idea how to nail it down. Happy to answer any questions...