jellyfin / jellyfin-kodi

Jellyfin Plugin for Kodi
https://jellyfin.org
GNU General Public License v3.0
785 stars 105 forks source link

Dolby vision file stutters/buffers when direct played #621

Open absolution1 opened 2 years ago

absolution1 commented 2 years ago

Describe the bug Trying to play a dolby vision file results in periodic buffering/stuttering. Debugging that I've done:

To Reproduce Install jellyfin server + kodi Add libraries to kodi in Addon mode Play movie.

Expected behavior Smooth playback

Logs

Screenshots

System (please complete the following information):

Additional context I feel like I have seen something similar with other smaller bitrate DV files, but this was solved by moving to a wired connection and removing the reverse proxy. With this larger bitrate DV file (23321 kbps), no setup involving jellyfin seems to avoid the sutter/buffer.

absolution1 commented 2 years ago

An extra bit of info. Running kodi-jellyfin in native mode (with samba delivering the files) also results in smooth playback.

mcarlton00 commented 2 years ago

Are you sure this is direct playing? Often times when we see stuttering it means it's trying to transcode for whatever reason. You may want to verify what your bitrate and transcode settings are set to in the addon settings

absolution1 commented 2 years ago

I did check this; my bitrate in kodi-jellyfin is the default 1000Mbps. Jellyfin reports in the WebUI that the file is direct playing.

absolution1 commented 2 years ago

Can Jellyfin sensibly transcode dolby vision? The video looks sensible on my TV, and my TV reports that it is playing a dolby vision video. I don't think either of those things would happen if transcoding was happening?

mcarlton00 commented 2 years ago

Not sure about the transcode settings. It may be that you need to tweak Kodi's cache settings, since it uses different values for http/usb/NFS/etc. This gives a short overview of the options. Maybe increasing readfactor would give you enough headroom for it to play cleanly.

absolution1 commented 2 years ago

What gives a short overview? Did you mean to supply a URL?

mcarlton00 commented 2 years ago

Copy/paste fail. https://kodi.wiki/view/Advancedsettings.xml#cache

absolution1 commented 2 years ago

Thanks mate, I'll take a look.