[Fixed] Jellyfin video stutters on some files (all MKV it seems)
Hello fellow selfhosters! I reformatted my USB hard drive from exFAT to XFS because I needed a filesystem that could handle hardlinks. I remounted the hard drive and now jellyfin webUI has a severe stuttering problem on some videos, all of them are MKV but it may be a coincidence. On android (using exoplayer) the same files works smoothly. what could be the problem?
in the logs I get a bunch of Slow HTTP Response from http://fedoraserver:8096/ to 192.168.1.30 in 0:00:07.4635856 with Status Code 200
SOLUTION: I enabled hardware acceleration, and manually selected also the HEVC and Allow encoding in HEVC format settings, and now the stutter disappeared! thanks to everyone for your help!!!
I had a similar problem. For me it was because some of the videos were encoded with x265 which some client devices could not decode properly. Therefore the server had to decode them but it was not fast enough to do it.
I guess that is why on the Android device the videos are smooth, it can handle the decoding.
I did not really solve it. I looked around for a bit but found no good solution. The only thing that sort of worked was to copy the stream URL in Jellyfin and paste it into VLC Media Player, which could play the videos okay. But that was not really satisfactory for me.
In the end I installed a new OS on my PC which already came with the codecs to decode x265 preinstalled. I installed it for other reasons but it fixed also that issue and now I can play any video in the Jellyfin Media Player. I did not try if it also works in the browser. The OS I am now using is called Nobara.
That has nothing to do with Jellyfin itself. Any comparable service will have the exact same issue because the root cause are browsers not supporting the container.
It could be an issue with the codecs (browsers are usually pretty limited in what they support). You could try to use a client like Jellyfin Media Player instead. It bundles libmpv, so it plays almost any video format there is.