Jellyfin Forum
Config question - 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: Config question (/t-config-question)



Config question - Eric Mako - 2023-06-25

Hello, I wanted to know how many streams the i7-7700 is able to handle with and without transcode?

And is it possible to configure Jellyfin so that an account only connects to one client at a time?

Thanks


RE: QUESTION - TheDreadPirate - 2023-06-25

Regarding how many streams a 7700 can handle.  WITHOUT transcoding, I think you would hit a bottleneck with network bandwidth and disk throughput before hitting a CPU bottleneck.

WITH transcoding, at least 4-5 1080p streams.  Here's a good way to gauge how much your CPU/GPU/QSV can handle.  Go to your log directory and there should be some FFMPEG transcode logs.  In them you should see something like this.

Code:
frame=  38 fps=0.0 q=-0.0 size=N/A time=-00:00:01.08 bitrate=N/A speed=N/A
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0130.ts' for writing
frame=  147 fps=0.0 q=-0.0 size=N/A time=00:00:05.06 bitrate=N/A dup=6 drop=5 speed= 7.6x
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0131.ts' for writing
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0132.ts' for writing
frame=  248 fps=212 q=-0.0 size=N/A time=00:00:09.39 bitrate=N/A dup=8 drop=7 speed=8.03x
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0133.ts' for writing
frame=  333 fps=199 q=-0.0 size=N/A time=00:00:12.97 bitrate=N/A dup=8 drop=7 speed=7.76x
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0134.ts' for writing
frame=  424 fps=195 q=-0.0 size=N/A time=00:00:16.81 bitrate=N/A dup=8 drop=7 speed=7.74x
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0135.ts' for writing
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0136.ts' for writing
frame=  515 fps=193 q=-0.0 size=N/A time=00:00:20.54 bitrate=N/A dup=8 drop=7 speed=7.69x
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0137.ts' for writing
frame=  620 fps=195 q=-0.0 size=N/A time=00:00:25.01 bitrate=N/A dup=25 drop=24 speed=7.88x
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0138.ts' for writing
frame=  718 fps=195 q=-0.0 size=N/A time=00:00:28.97 bitrate=N/A dup=26 drop=25 speed=7.88x
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b0139.ts' for writing
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b01310.ts' for writing
frame=  811 fps=194 q=-0.0 size=N/A time=00:00:32.96 bitrate=N/A dup=26 drop=25 speed=7.89x
[hls @ 0x55c853672680] Opening '/media/ramdisk/transcodes/c75349aec280a9c28af5ff8fde30b01311.ts' for writing
frame=  913 fps=195 q=-0.0 size=N/A time=00:00:37.07 bitrate=N/A dup=29 drop=28 speed=7.92x

The speed at the end of the line should be a pretty good indicator of how many transcode streams QSV may be able to handle.  Though you should aim for at least 1.5x. The logs above are for a single 480p HEVC transcode, so YMMV.

And you can limit a user to X number of sessions.  In the Web UI, Settings > Dashboard > User > Select User > Profile tab.  At the bottom there is a setting for simultaneous sessions.  0 (unlimited) is the default.


RE: Config question - Eric Mako - 2023-06-26

(2023-06-25, 04:39 PM)Eric Mako Wrote: Hello, I wanted to know how many streams the i7-7700 is able to handle with and without transcode?

And is it possible to configure Jellyfin so that an account only connects to one client at a time?

Thanks

Thank you for your help I was able to configure a single session for the user

So with a 1GPBS connection we could put on average 100 users if the media is ~8mbps without transcode?

Regarding the transcode I read that the i7-7700 could transcode from 1080p x264 to x264 a little lighter for about 20 users do you think it's true?

Excellent for the logs trick, I don't have the hardware to try yet, do you have this i7?

Thanks


RE: Config question - TheDreadPirate - 2023-06-26

Maybe not 100. You don't want to max out your connection bandwidth. Otherwise the users would experience buffering. Try to ensure you don't utilize more than 75% of your available bandwidth. I usually aim for 50% utilization.

BUT a hard drive would struggle with that many simultaneous streams. A SSD would probably do ok with that many streams.

I do NOT have a Core i7 7700. I have an Intel J4205 (low power Atom processor), but the QSV capability is similar. I don't think 20 transcode streams is realistic on an iGPU. Maybe if you had a dedicated GPU. But I think the bottleneck would become the CPU managing all the ffmpeg processes.


RE: Config question - Eric Mako - 2023-06-26

How can I know the bitrate used on average, you only have to calculate the number of users by the bitrate of the media? Or you have to look at the speed on the router/server panel

Machine specs

General
Traffic: unlimited
CPU Intel Core i7-7700
2 x RAM 16384 MB DDR4
2 x HDD SATA 4,0 TB Enterprise


RE: Config question - TheDreadPirate - 2023-06-26

Everything I said was an educated guess. The only way to know for sure how your setup will perform is to test it. Have a bunch of friends access it at the same time. Test transcoding streams, test non-transcoding streams, check CPU usage, check how fast transcodes are happening, check memory usage, check network usage, check disk usage. You can then extrapolate the max number of users you can support based on your tests.

Keep in mind that streaming, even without transcoding, is a pretty intensive process because of how time sensitive it is. And you have relatively modest hardware for such a large number of potential users.