this post was submitted on 02 Dec 2023
21 points (92.0% liked)

Selfhosted

39206 readers
377 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
21
Jellyfin stuttering (lemmy.today)
submitted 9 months ago* (last edited 4 months ago) by Starfarer@lemmy.today to c/selfhosted@lemmy.world
 

Hi,

I have recently set up a Jellyfin server running on a Beelink S12 pro in docker (with a few other containers running), and I am having a few problems with stuttering video.

I get little micro-stutters every few seconds regardless of whether it is direct play or transcoding and regardless of what client I use (librelec with Jellyfin plugin), android phone, or firefox on a windows laptop), and I am struggling to narrow down the cause of it.

Any ideas of where I should look first?

The server utilisation seems low, I have tried a wired and wifi connection, I have tried 720, 1080, and 2160 resolution videos, with and without transcoding.

Any help would be greatly appreciated.

Edit: I think I have now fixed the problem. I tried a new setup on my gaming PC and everything worked fine. This was running on the same network and same client. This made me think it was something with my server. I used the cup-shares docker command to prioritise the jellyfin container and I've had no stutters since.

Edit2: turns that has not fixed it πŸ˜”

top 19 comments
sorted by: hot top controversial new old
[–] AceSLS@ani.social 9 points 9 months ago* (last edited 9 months ago) (1 children)

I get little micro-stutters every few seconds

Sounds like your Video file might be to blame. Does it always happen at the same time stamps? Maybe try watching it locally, does it happen there aswell?

[–] Starfarer@lemmy.today 3 points 9 months ago

Thanks for the idea.

It doesn't happen locally or the same times. Definitely seems like some kind of network/jellyfin issue.

[–] AverageGoob@lemmy.world 6 points 9 months ago

If you have any torrent service running maybe try stopping that temporarily and see if that helps. I was having a similar issue with stuttering and found another person mentioning qbittorrent as the culprit.

[–] _Analog_@lemmy.world 5 points 9 months ago (1 children)

Have you isolated source formats? Does it do this with h264 and hevc?

Tried stopping other containers and/or all other services? Could have less to do with pure power and more with sheer volume (scheduling.)

Any issues if you use the current server as a file server and play the video on another machine? Any modifications to playback speed?

If none of that works you might try iperf3 to check network speeds. Or fio for disk speeds. Run tests covering all kinds of situations, you’re not so much looking for max speeds but instead for inconsistencies.

Don’t get too lost in the small stuff. Isolate systems. Might even move or clone the boot drive to another machine as a test. Try a different switch. That kind of thing.

Good luck!

[–] Starfarer@lemmy.today 1 points 9 months ago (1 children)

Hey thank you for the help.

I have run a jellyfin off my gaming PC and that worked fine out of the box - no stuttering. This is over wifi on the same network, which makes me think that there is something specific to my new set up that is going wrong.

I will definitely check the network speeds though and run a few more tests.

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

Yes. Try using iperf to test connection speed between the client and the server.

[–] djoot@feddit.dk 3 points 9 months ago (1 children)

Are you running with subtitles? I had the same issue and it disappeared when I turned off subtitles

[–] Starfarer@lemmy.today 1 points 9 months ago

No, never used subtitles.

Thanks for the suggestion though

[–] TheButtonJustSpins@infosec.pub 3 points 9 months ago (1 children)

Where are you storing your data, and how many processes are accessing it at once?

[–] Starfarer@lemmy.today 1 points 9 months ago (2 children)

The data is on an SATA SSD but I could try moving some over to the small M2 drive to see if there is a difference. Jellyfin is the only process accessing it.

[–] entropicdrift@lemmy.sdf.org 7 points 9 months ago

Any SSD should be plenty fast. My server uses a 7200RPM hard drive mounted as a network drive via NFS.

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

Note that m.2 is a form factor, not a protocol. There are m.2 SATA SSDs. If you want a faster SSD, ensure it is nvme.

[–] Starfarer@lemmy.today 1 points 9 months ago

Sorry, it is nvme

[–] kokesh@lemmy.world 2 points 9 months ago (1 children)

Aren't you playing H265 on player not supporting it?

[–] Starfarer@lemmy.today 2 points 9 months ago

I've tried x265 and x264 with the same result.

[–] iHUNTcriminals@lemm.ee 2 points 9 months ago* (last edited 9 months ago)

What's the specs? I had a rbp4 with Kodi/libre elec and a laptop as a server (like 6gb ram, ryzen 5000u?) And the raspberry pi couldn't play shit.

Upgraded all to used office sff with Intel 6core+ and haven't had too much of an issue if any.

The raspberry pi had to get a lot transcoded

[–] hottari@lemmy.ml 2 points 9 months ago

Sounds like you have a network bottleneck. Check your router's bandwidth settings for something something duplex (can't recall exact name), make sure the settings are max/full.

If that fails, most Jellyfin clients should allow you to specify large cache sizes.

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

Might be a network issue, check your upload speed. I had similar problems and the issue was that I was using a cat5 cable on my server, which was limiting the upload to 100mb, causing it to stutter while playing videos with high bitrates

[–] SheeEttin@lemmy.world 0 points 9 months ago

Anything in the Jellyfin logs?