Jellyfin...how many cores?

Only running as a media server and found that my roku does not like my gopro video (4k60) and requires jellyfin to transcode. Oddly this did not seem to be a problem 2 months ago but whatever, it is now. I originally had 4 threads available to jellyfin and it maxed those so I increased it to 6 and it still buffered. Increasing it to 8 seemed to solve the buffering issue but still max the available threads.

CPU is an AMD 5600g, no dedicated GPU (was hoping to keep power consumption as low as possible). I may have access to an Nvidia Quadro P2000 (from my old workstation) but since the only problem is the gopro video, I would rather not add hardware if I can avoid it.

How many cores/threads should I leave for TrueNAS?

(I have mostly solved the issue for my blurays since I have a compressed version of them and can get that to be the default by labeling the .mp4 as [1080p] while labeling the uncompressed mkv as [1079p]…nothing else seemed to change the default order).

mp4/mkv doesn’t matter. It’s just a container for the streams.

What matters is the video stream codec. For the 4k60 it’s more than likely h265/hevc. For your 1080p it might be h264/avc.

Best solution is to not transcode at all. Is the Roku old? What model?

If you must transcode, you should avoid using the CPU to do it… Did you enable GPU support for the container? Did you enable GPU/hardware acceleration for Jellyfin?

When I transcode 100mbps 4K h265 on my Arc using hardware acceleration, the CPU utilization doesn’t change and GPU breezes through it…

The Roku is an Ultra, apparently it can handle up to 40mbps for h.265 and 10mbps for h.264. The gopro video is like 65mbps so it transcodes (to h.264)

I do not currently have the gpu transcoding enabled as I had read that there were some issues or it was not up to the task (I forget which, it was a while ago). I may try turning it on this weekend and testing it.

trying to decide if I should just switch to h.265 for my blurays, seems like everything should support it by now, I dont have any old devices…

I am…old school. All of my 1080p videos are in .mp4 containers and are h.264, main 4.1, CRF 17 video and dual-audio aac stereo 320 / ac3 5.1 640

They will play on literally anything. For 4K you should probably use HEVC.

This is Roku’s compatibility list

1 Like

Huh. Never saw published bitrate limitations on video.

Plex on my Android TV could pay UHD remuxes no problem, aside from the ones that peaked way over 100mbps and had to buffer due to the TV having a low amount of RAM and the usual 100mbps nic…

Have been using a Shield for years instead. 1gbit NIC and not a hiccup even when the videos peak 100-200mbps.

Still, try hardware acceleration. Software transcoding 4K HEVC takes a bit of compute…

You should be able to tick the checkbox to expose all available GPUs to jellyfin. This includes the iGPU. And then just set up jellyfin to use the AMD iGPU for transcoding as per their documentation.

So I did enable access to the GPU for Jellyfin then activated it in Jellyfin and it worked great on movies that were over the 10mbps that the Roku can handle. Needed to check the HEVC box to get it to work with the GoPro video but after that it worked while keeping cpu temps down

FWIW, my 1080p videos are h.264 main 4.1, CRF 20 veryslow with AC3 5.1 640 and aac dolby 160 480i is all the same except CRF 18.

All good for now (until I run out of space and need to go from a pair of mirrored drives to a 5-6 drive array.)