Jellyfin Forum
Video playback stuttering - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Video playback stuttering (/t-video-playback-stuttering)

Pages: 1 2


Video playback stuttering - Unkn0wnUs3r - 2024-03-18

Hey guys,

i just switched to jellyfin to give it a chance replacing my plex server.
Currently i got a i5-12400 along with a nvidia geforce rtx 3060 (pcie passthrough to my docker vm).

Inside my docker vm i setup several containers. One of them is jellyfin along with nvidia runtime. Docker containers and transcoding happens on a ssd array. Video files are on my hdd array, mounted to my docker server.

If someone streams a movie (remote), everything seems to be fine (Video File 9GB; HEVC). If someone wants to watch another movie, stream 1 und 2 stutters and its nearly unplayable.

I got an average CPU usage of like 30%, Nvidia GPU is being used (checked with nvidia-smi), RAM is like 4 of 16GB used.

Can someone explain to me why this is happening? I didnt get any issues with plex under a windows vm, streaming to 4 ppl simultaniously. Network upstream is peaked at around 20mbit (if i look onto my unifi udm), my connection can handly up to 40 mbit upload.
I like the idea to share gpu ressources, this i why i want to give jellyfin a try.

Logs attached.

BR Manu


RE: Video playback stuttering - Unkn0wnUs3r - 2024-03-18

Update: it is also stuttering while only one person is streaming remote.


RE: Video playback stuttering - TheDreadPirate - 2024-03-18

The transcoding is happening plenty fast. So that isn't it. Are all of your clients remote relative to the server? What is your max upload? 40Mbps? Do you have other apps consuming upstream bandwidth? The 1080P transcode log you attached indicated that the output bit rate was ~20Mbps.


RE: Video playback stuttering - Unkn0wnUs3r - 2024-03-18

Thank you for your fast reply.

All of my clients are near to my server. No other apps consuming bandwith. On my firewall i got a peak usage of 20 mbit (combined). I have 40 mbit available.
For incoming traffic, i setup my firewall as an exposed host in my router. I set up port forwarding 80/443 to my reverse proxy (nginx), which encrypts the traffic and sends to my jellyfin container on the docker host.


RE: Video playback stuttering - TheDreadPirate - 2024-03-18

So your clients are local? As in on the same LAN? Are your clients using a domain name to connect to your server? Do you have NAT loopback enabled on your router?


RE: Video playback stuttering - Unkn0wnUs3r - 2024-03-18

No, my clients are a few kilometers away, streaming with different devices like apple ipad or webbrowser from my domain media.unknownworkspace.de.
At home, i also stream from my domain - which is kinda useless because the traffic will also go through the www.

Cant find any options regarding nat loopback in either my firewall nor my router.

Speedtest inside an extra docker container.


RE: Video playback stuttering - TheDreadPirate - 2024-03-18

It may also be called NAT hairpin or simply Hairpin. But not all routers support it. NAT Loopback is only needed if you access it from the same LAN, which is sounds like you also do. NAT loopback/hairpin keeps data local if you use your domain name instead of going out to the Internet only to come back to the same place.

For testing, can you port forward port 8096 and access Jellyfin directly without the nginx proxy?


RE: Video playback stuttering - Unkn0wnUs3r - 2024-03-19

I exposed port 8920 cause of https redirection.
Video playback to my web browser (computer connected to lan) is also stuttering. But it is better: just 4 short breaks in 3-5 minutes - yet not optimal.


RE: Video playback stuttering - TheDreadPirate - 2024-03-19

Both of these transcodes are over 80Mbps. This is sounding like a network bandwidth issue. In Plex did you have a bit rate limit set? And you don't have one in Jellyfin (yet)?


RE: Video playback stuttering - Unkn0wnUs3r - 2024-03-19

AFAIK Plex is handling out the available bandwith in some way and sends it back to the server to get the movie transcoded or direct played.
In Jellyfin, i set a bandwith limit per stream outside my network of about 20 mbit.