Jellyfin Forum
Problem with CPU at 100% and RAM does not stop increasing - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Problem with CPU at 100% and RAM does not stop increasing (/t-problem-with-cpu-at-100-and-ram-does-not-stop-increasing--7572)

Pages: 1 2 3


RE: Problem with CPU at 100% and RAM does not stop increasing - franciscok - 2024-08-21

It doesn't matter if it doesn't play it, before I had it like this on another service and 90% of the content is played without problem for the majority
If it can be deactivated, I would be interested to know how.

You have to re-encode with the codecs and containers I stated above.
Is that done within jellyfin?


RE: Problem with CPU at 100% and RAM does not stop increasing - Efficient_Good_5784 - 2024-08-21

(2024-08-21, 07:30 PM)franciscok Wrote: It doesn't matter if it doesn't play it, before I had it like this on another service and 90% of the content is played without problem for the majority
If it can be deactivated, I would be interested to know how.

You have to re-encode with the codecs and containers I stated above.
Is that done within jellyfin?
The re-encoding needs to be done with an external device. As in with another computer separate from the server using something like Handbrake or FFmpeg to convert the media. You would then move the converted media onto your Jellyfin server when they have been converted.


RE: Problem with CPU at 100% and RAM does not stop increasing - franciscok - 2024-08-21

I can't do that because it's a lot of content and it would take a lot of time, but everything is in mkv which allows it to be played on all devices.

Can't you cancel the transcoding of everything even if that means some content can't be played?


RE: Problem with CPU at 100% and RAM does not stop increasing - Efficient_Good_5784 - 2024-08-21

(2024-08-21, 08:39 PM)franciscok Wrote: I can't do that because it's a lot of content and it would take a lot of time,
A journey of 10 thousand steps begins with a single step.

(2024-08-21, 08:39 PM)franciscok Wrote: ...but everything is in mkv which allows it to be played on all devices.
Having MKV containers doesn't mean that it can be directly played on every client.

@TheDreadPirate already responded with the codec that are most likely compatible with a wide verity of clients and hardware:
(2024-08-21, 05:43 PM)TheDreadPirate Wrote: H264 main video
AAC stereo audio
SRT or burned in subtitles
MP4 container
Note that Dread is recommending to use MP4 containers. MKV containers are more versatile, but have less compatibility with clients.

You need to verify what codecs the videos and audio are encoded in inside your MKV containers as well.
H265 video will be less portable across clients than H264.
FLAC audio will also be less likely to play well on most clients as compared to AAC audio.

(2024-08-21, 08:39 PM)franciscok Wrote: Can't you cancel the transcoding of everything even if that means some content can't be played?
Yes, this is a per-user setting. You need to go into the dashboard and into each user's profile settings to disable the appropriate settings for them there.
   
The option "Allow video playback that requires conversion without re-encoding" is the option that enables remuxing to happen.
Just uncheck all three options (the two for transcoding, and the one for remuxing).

Doing so will result in your users getting denied when attempting to play a video that's not supported on their client.


RE: Problem with CPU at 100% and RAM does not stop increasing - TheDreadPirate - 2024-08-21

You can disable transcoding, but then your users may not be able play some videos on some of their particular devices. MKV is just a container. The codec of the video, audio, and subtitles are what matter.


RE: Problem with CPU at 100% and RAM does not stop increasing - franciscok - 2024-08-21

Yes, I have already disabled the video, the one that causes problems is the audio, if I disable it it doesn't play...

I'm also doing tests, right now with 75 active users everything is working fine but when someone new enters the CPU loads to 80% for a few seconds and then stabilizes again.

If I change and only leave 150 users instead of 450 and the server goes from 40cpu to 36cpu and from 5gbps to 1gbps, will it work without giving me problems?