Guide: NVDEC Hardware Acceleration Patch for Plex Media Server on Linux

Hi everyone,

Has anyone ever been confronted with this bug ?

Stop / cancel a stream doesnt stop the parent process, so the gpu is busy with Plex Media server parent PID !!

Ok guys, keep the comments clean and on topic.

FYI - Plex is not going to implement a hack as an official feature.

Wow, there’s a whole company of you that are just really missing the mark, aren’t you? I wonder ho much longer before Plex goes under


So nvdec and nvenc are “hacks?”

1 Like

NVIDIA Transcoding file on linux have an issue (with nvec or not), create bad processus and unnecessarily occupies the GPU (about 30w, so 30€ / year in my countrie, + fan at 50% for nothing etc etc).

With all my respect and without animosity, open your eyes, and assume the fact that there is a bug, this is the first step towards fix the bug.

If it’s not a Plex problem (but others streams solutions should have the same bug whereas only plex is concerned ), you (Plex) are the only ones who know what API call you make to ffmpeg and/or nvidia, and you are the only ones who can create an issue ticket at Nvidia

Transcoding works but we can’t say everythings is ok :wink: A lot of premium members have bought the pass for transcoding, which has a huge bug, respect the people who support you

It’s not a feature, it’s an issue

If there is an issue using NVENC, yes that is something we can look at. I was referring to the question on officially adding a patch that enables NVDEC in a way that is not officially supported.

If you can start a new thread and provide us a sample file and details on the type of CPU you have, the GPU, PMS logs, and your observations of the issue, I can help investigate with that.

Thanks for answers

I’m available if you want some logs or test, MP if you want

OS : Debian Buster
CPU : Ryzen 1600
RAM : 32Gb
GPU : Nvidia 1660 GTX

Nvidia Driver : 430.26 (latest), but the bug is present since few months (415.XX at least)

I think this topic is a spinoff of this topic

Just want to make sure but after applying this patch, HW decode technically isn’t reported by Plex right? I see the decode percentage go up but the dashboard and Plex don’t show it.

correct. plex is unaware that hw decode is working.

Anyone know how to disable/uninstall intel GPU on linux (RHEL7)?

Bios is not operating system related. Enter the bios and look for disabling Integrated Graphics ( read the mobo manual better).

I don’t want to disable the integrated graphics on the mobo
then i don’t end up having IPMI be useful. Is is possible to just disable it via the OS level? I was able to do that via Windows


normally ipmi video is isolated from the OS, so the OS doesn’t even see it, so there shouldn’t be any drivers or anything to disable/uninstall.

if your CPU has a built in GPU, then this will need disabled from the bios.

if this is a xeon, most xeon do not even have an igpu (some do though).

you need to post more details, ideally on a separate dedicated thread, since this doesn’t have anything to do with this topic nvdec patch for pms.

You’re right i didn’t specify enough. NVDEC is not working with the patch. I’m running a Supermicro X10SL7-F with a Intel¼ Pentium¼ CPU G3220 @ 3.00GHz which does have an iGPU but the iGPU does not support Intel QuickSync due to my motherboard not supporting it.

I am not able to get NVDEC working on this system on RHEL but on a separate SSD on the exact same system running Windows it does work. I had to disable the onboard VGA card within Windows to get this working which is why I assumed that is what would be the problem with the Linux install


Regarding IPMI – when I disable the onboard GPU via my mobo BIOS it does not allow me to remote into the system via the HTML5 KVM, which is why I mentioned that & it also does not solve the problem.

Any ideas on the above? Still can’t get this working for me


Just applied the patch for a P400 and I think everything is working. When I look at the output of “nvidia-smi dmon -s u” i see numbers > 0 in the dec column. Plex and Tautulli don’t say HW decoding is happening, just HW encoding. I don’t know if that is supposed to happen. I also applied the “unlimited” transcode patch and just test 3 transcodes and it was working.

So it seems like you’re having an issue with a P400 as well? Seems that the decoding is not occuring on your GPU

Ah, didn’t see the > in there

the decoding is being hard coded by the patch script.

plex itself will not show hardware decoding.

you will only know its working via nvidia-smi, or by not seeing your cpu’s maxed out.

So when I do this script and load 4 streams, I still get a lot of CPU load. Is that normal? Shouldn’t the GPU take most if not all of the load?

For the record, this is what nvidia-smi outputs:

This means it’s all working right? I’m curious why the CPU is still relatively high.

Run ‘nvidia-smi dmon -s u’ and show the output. If there are values in the dec column, then the GPU is decoding.