Jellyfin Forum
GPU Maxing Out With Hardware Acceleration - 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: GPU Maxing Out With Hardware Acceleration (/t-gpu-maxing-out-with-hardware-acceleration)



GPU Maxing Out With Hardware Acceleration - fFIRE332A - 2023-07-07

I am just trying Jellyfin for the first time and my GPU tends to keep maxing out with hardware acceleration (NVENC) on. I have an RTX 3070, I turned on hardware acceleration as without it my CPU was maxing out (Ryzen 5 3600). I am unsure why this happens, but due to this video will keep freezing up when streaming. Any help would be appreciated!


RE: GPU Maxing Out With Hardware Acceleration - Shadowghost - 2023-07-07

What does your hardware accelleration configuration look like?
It would also help if you can post a FFmpeg transcoding log.


RE: GPU Maxing Out With Hardware Acceleration - fFIRE332A - 2023-07-07

(2023-07-07, 01:17 PM)Shadowghost Wrote: What does your hardware accelleration configuration look like?
It would also help if you can post a FFmpeg transcoding log.

I attached a photo of the hardware acceleration, other than what is in the photo, the rest was left to default. I am unsure how to fine the FFmpeg transcoding log, sorry I am new to all of this...


RE: GPU Maxing Out With Hardware Acceleration - TheDreadPirate - 2023-07-07

(2023-07-07, 01:52 PM)fFIRE332A Wrote:
(2023-07-07, 01:17 PM)Shadowghost Wrote: What does your hardware accelleration configuration look like?
It would also help if you can post a FFmpeg transcoding log.

I attached a photo of the hardware acceleration, other than what is in the photo, the rest was left to default. I am unsure how to fine the FFmpeg transcoding log, sorry I am new to all of this...

In the Jellyfin dashboard it should tell you the path for your log directory.  C:\ProgramData\Jellyfin\Server\log is the default for Windows.  /var/log/jellyfin for Linux.


RE: GPU Maxing Out With Hardware Acceleration - fFIRE332A - 2023-07-07

Here is the latest transcoding log. I posted it in pastebin. 
https://pastebin.com/upSjeueW


RE: GPU Maxing Out With Hardware Acceleration - nyanmisaka - 2023-07-07

Your CPU can’t keep up with such a fast GPU. The throttle transcoding feature can be enabled to limit the transcoding speed, or you can change the encoding quality preset to slow.


RE: GPU Maxing Out With Hardware Acceleration - fFIRE332A - 2023-07-07

(2023-07-07, 04:10 PM)nyanmisaka Wrote: Your CPU can’t keep up with such a fast GPU. The throttle transcoding feature can be enabled to limit the transcoding speed, or you can change the encoding quality preset to slow.

Even with the throttle on GPU is still maxing out.

Edit: I did more testing, it appears this did fix GPU maxing out overall, with only occasional spikes to 100%. But if I watch jellyfin from the same computer I host it on the video still skips and the gpu will still max out.


RE: GPU Maxing Out With Hardware Acceleration - TheDreadPirate - 2023-07-07

Each time Jellyfin is transcoding (which is a pretty bursty process) it takes resources away from video playback for a short interval. Smooth video playback requires very consistent frame times and transcoding 4K HDR is both a CPU and GPU intensive process.

What is it like watching Jellyfin on another device?


RE: GPU Maxing Out With Hardware Acceleration - fFIRE332A - 2023-07-08

On other devices, even when on multiple watching different shows and/or movies, the playback is smooth. When I watch on the device the server is hosted from, playback (only on that device) is quite choppy and consistently freezes.


RE: GPU Maxing Out With Hardware Acceleration - TheDreadPirate - 2023-07-08

I'm going to double down and say that this is not unexpected. Do the logs say why it is transcoding when playing locally? I would assume if it can transcode a video that it would also be able to direct play the video.