this post was submitted on 29 Jan 2024
43 points (97.8% liked)

Selfhosted

40296 readers
196 users here now

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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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

top 27 comments
sorted by: hot top controversial new old
[–] Gnorv@feddit.de 14 points 9 months ago (1 children)

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.

[–] tubbadu@lemmy.kde.social 2 points 9 months ago (5 children)
[–] KpntAutismus@lemmy.world 5 points 9 months ago* (last edited 9 months ago) (1 children)

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.

[–] MajorMajormajormajor@lemmy.ca 2 points 9 months ago (1 children)

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.

[–] lazynooblet@lazysoci.al 2 points 9 months ago (2 children)

Does jellyfish not transcode on the fly?

[–] AustralianSimon@lemmy.world 2 points 9 months ago* (last edited 9 months ago)

It can but it's the server hardware that decides your performance, you can just avoid transcoder on the fly and have h264 mp4 and can run JF on a toaster smoothly.

[–] Blackmist@feddit.uk 2 points 9 months ago

Yes, but if the server isn't fast enough to do it, then you're going to have a bad time.

[–] originalucifer@moist.catsweat.com 4 points 9 months ago (1 children)

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

[–] tubbadu@lemmy.kde.social 2 points 9 months ago (2 children)

You mean a new sever or a new client?

[–] originalucifer@moist.catsweat.com 2 points 9 months ago (1 children)

server. it was choking on decoding

[–] tubbadu@lemmy.kde.social 2 points 9 months ago* (last edited 9 months ago) (1 children)

But I know of people running jellyfin on a raspberry, I have an old laptop but it's not that old... There'srno way to run it smoothly?

yeah, re-encode to a lighter encoding like 264. might be slightly larger, but less work for the cpu

[–] AustralianSimon@lemmy.world 4 points 9 months ago (1 children)

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

[–] VelociCatTurd@lemmy.world 3 points 9 months ago (1 children)

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

[–] AustralianSimon@lemmy.world 1 points 9 months ago

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

[–] Gnorv@feddit.de 3 points 9 months ago (1 children)

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.

[–] tubbadu@lemmy.kde.social 1 points 9 months ago (1 children)

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

[–] Gnorv@feddit.de 4 points 9 months 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.

[–] punkhazard@feddit.de 2 points 9 months ago (1 children)

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

[–] tubbadu@lemmy.kde.social 2 points 9 months ago

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

Thanks for the info tho!

[–] romano@lemmy.shtuf.eu 6 points 9 months ago (3 children)

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.

[–] tubbadu@lemmy.kde.social 3 points 9 months ago

All Mp4 files I tried worked well

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

[–] Deceptichum@kbin.social 1 points 9 months ago* (last edited 9 months ago)

Interesting that it doesn’t remix on Edge.

[–] SaltySalamander@kbin.social -2 points 9 months ago (1 children)

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

[–] Atemu@lemmy.ml 4 points 9 months 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.

[–] shmanio@lemmy.world 5 points 9 months ago

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.