[Fixed] Jellyfin video stutters on some files (all MKV it seems)

3 years ago by tubbadu to c/selfhosted

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

OT: while looking at the logs this happened

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!!!

Gnorv 14 points 3 years ago

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.

path: 0 7134506, hotness: undefined, score: 14, children: 20
tubbadu 2 points 3 years ago

How did you solve it?

path: 0 7134506 7134533, hotness: undefined, score: 2, children: 19
KpntAutismus 5 points 3 years ago

not OC, but i ended up redownloading whatever was x265 and replacing it with 264 or anything else.

also the 1060 in my NAS can do NVENC encoding. that helped a lot with compatibility.

path: 0 7134506 7134533 7135516, hotness: undefined, score: 5, children: 4
MajorMajormajormajor 2 points 3 years ago

You can also use something like handbrake to convert everything to 264 instead of redownloading everything. You can also set it up to convert after items are downloaded.

path: 0 7134506 7134533 7135516 7135938, hotness: undefined, score: 2, children: 3
lazynooblet 2 points 3 years ago

Does jellyfish not transcode on the fly?

path: 0 7134506 7134533 7135516 7135938 7144042, hotness: undefined, score: 2, children: 2
AustralianSimon 4 points 3 years ago

I had the same issue, I used tdarr to re encode to h264 mp4

path: 0 7134506 7134533 7136536, hotness: undefined, score: 4, children: 2
VelociCatTurd 3 points 3 years ago

I do the same. I just have it do a transcode job every Sunday.

path: 0 7134506 7134533 7136536 7139621, hotness: undefined, score: 3, children: 1
AustralianSimon 1 point 3 years ago

Yeah it's a great little set and forget kinda deal.

path: 0 7134506 7134533 7136536 7139621 7144489, hotness: undefined, score: 1, children: 0
originalucifer 4 points 3 years ago

i had this problem. i fixed it with a faster machine. same os, same files. more cpu worked.

path: 0 7134506 7134533 7135826, hotness: undefined, score: 4, children: 5
tubbadu 2 points 3 years ago

You mean a new sever or a new client?

path: 0 7134506 7134533 7135826 7143056, hotness: undefined, score: 2, children: 4
originalucifer 2 points 3 years ago

server. it was choking on decoding

path: 0 7134506 7134533 7135826 7143056 7146104, hotness: undefined, score: 2, children: 2
superbirra 2 points 3 years ago

yes!

path: 0 7134506 7134533 7135826 7143056 7145849, hotness: undefined, score: 2, children: 0
Gnorv 3 points 3 years ago

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.

path: 0 7134506 7134533 7134655, hotness: undefined, score: 3, children: 2
tubbadu 1 point 3 years ago

So it's a problem on codecs on my pc, not my server, correct? So installing the correct drivers should solve the issue?

path: 0 7134506 7134533 7134655 7134832, hotness: undefined, score: 1, children: 1
Gnorv 4 points 3 years ago

I do not think they are called drivers, but yes, installing the needed codecs should work. I just did not find out how to do it properly.

path: 0 7134506 7134533 7134655 7134832 7134880, hotness: undefined, score: 4, children: 0
punkhazard 2 points 3 years ago

I just used ffmpeg to encode my files to h264, worked on all my devices

path: 0 7134506 7134533 7134600, hotness: undefined, score: 2, children: 1
tubbadu 2 points 3 years ago

Doing this will prevent my files from seeding, I'd like to find a more "universal" solution

Thanks for the info tho!

path: 0 7134506 7134533 7134600 7134860, hotness: undefined, score: 2, children: 0
romano 6 points 3 years ago

This may help: Container compatibility. MKV files will be remuxed when played via WebUI. Try playing an MP4 file and see if it's the same.

path: 0 7134720, hotness: undefined, score: 6, children: 4
tubbadu 3 points 3 years ago

All Mp4 files I tried worked well

I'll read it as soon as I can, thanks!

path: 0 7134720 7134796, hotness: undefined, score: 3, children: 0
Deceptichum 1 point 3 years ago

Interesting that it doesn’t remix on Edge.

path: 0 7134720 7138178, hotness: undefined, score: 1, children: 0
SaltySalamander -2 points 3 years ago

Well this info kills any desire I have to install Jellyfin. =(

path: 0 7134720 7137589, hotness: undefined, score: -2, children: 1
Atemu 4 points 3 years ago

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.

path: 0 7134720 7137589 7144101, hotness: undefined, score: 4, children: 0
shmanio 5 points 3 years ago path: 0 7143605, hotness: undefined, score: 5, children: 0
selfhosted
selfhosted

@lemmy.world

login for more options
63032
6823
6218

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

go to feed...