Hi,
Every time it happened to me was either transcoding, either a real poor network speed.
I would double check the transcoding option
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:
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
No spam posting.
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.
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Hi,
Every time it happened to me was either transcoding, either a real poor network speed.
I would double check the transcoding option
Checked on transcoding, it happens on direct streaming....
There is an option to disable transcoding completely, try that. Also check is it working with subtitles disabled.
I used to have issues sometimes when I had rpi4 as media server
tried with transcoding disabled, no joy, still freezes. Subtitles were also disabled, I rarely watch with subtitles. Edit: I just noticed, when forcing transcoding by limiting the quality (Bitrate) on the client to lower values, it does not freeze
just fyi, direct streaming isn't really direct streaming as you may think of it if you have specified samba shares on your nas instead of something on the vm running jellyfin. it will still pull from the nas into jellyfin and then http stream from jellyfin, whihc is super annoying.
How is that annoying and how else would you expect that to function?
If the data is local doesn't it still stream over http?
jellyfin has a spot for each library folder to specify a shared network folder, except everything just ignores the shared network folder and has jellyfin stream it from https. Direct streaming should play from the specified network source, or at least be easily configurable to do so for situations where the files are on a nas seperate from the docker instance so that you avoid streaming the data from the nas to the jellyfin docker image on a different computer and then back out to the third computer/phone/whatever that is the client. This matters for situations where the nas has a beefy network connection but the virtualization server has much less/is sharing among many vms/docker containers (i.e. I have 10 gig networking on my nas, 2.5 gig on my virtualization servers that is currently hamgstrung to 1 gig while I wait for a 2.5 gig switch to show up) They have the correct settings to do this right built into jellyfin and yet they snatched defeat from the jaws of victory (a common theme for jellyfin unfortunately).
My dude. Even 4K video is ~50mbps, you don't need to worry about this as much as you do.
What is the bitrate of the file and what is the bandwidth of your router?
Bitrate varies, some files work, some don't. Even in one season of a show episode 1 streams perfectly fine, episode 2 freezes every 2 mins.
Bitrate of a file is around 8Mbps, local bandwidth is 1Gbps.
What are the bitrates, codec, and containers of those 2 files?
Edit: whoops, just realized you said freezing not crashing, and probably have a separate issue. I'll leave this here in case it helps anyone that finds this thread with crashes a couple minutes into videos.
Had this issue ages ago, then my dad did too a year later on a different client version. Manually changing the "preferred media player" option fixed it on my firestick 4k, 4k Max, and my dads standard firestick.
Jellyfin app>settings menu>Playback>Video section>preferred media player>libVLC (in my case, Exoplayer seemed to be causing the crashes approx 2 years ago but you can try both, I just tried exoplayer again and it doesn't seem to be crashing either when set manually now so it may have been patched)
Maybe its due to a slow connection?
you could double check the codec with mediainfo. also check it is mp4.
container is mkv, codec says AVC
that surely is the issue. you can convert it to mp4 with ffmpeg:
ffmpeg -i input.mkv -c copy output.mp4
If you want to keep subtitles this will probably work:
ffmpeg -i input.mkv -map 0 -c copy -c:s mov_text output.mp4
Out of curiosity, why would that be a problem?
in my case if I use mkv it starts transcoding and mp4 works fine on every device (desktop, android app, Chromecast, browser)