Hardware Accelerated Decode (Nvidia) for Linux

I can’t speak for Chuck, but there’s some really great info here: HW transcoding isn’t working smoothly with Nvidia GPU

This is great news to see! I look forward seeing it all baked in

Sorry for the tangent question…

For those of you running this - are you on Ubuntu Server? I’m considering the move from Windows Server to Unraid but not sure what the best handling is for Plex. I was going to install in Ubuntu Server

We are all on different distros in this thread, some of them unsupported based on what I’ve read. I’m using Arch, which is not supported, but the package I use is built from the the source that’s used to create the .deb file for Ubuntu. People who are running on other distros are probably savvy enough to not need basic support or know how to ask the question without making which specific distro they’re using part of the equation. I don’t say that to be an elitist ■■■■■.

I say all of that because if you want support on the forums for other issues, you should use one of the officially supported distros, like Ubuntu. If you’re just starting out with Linux, Ubuntu is a great place to start. I got my feet wet with Linux way back on Ubuntu 8.04. I hope that helps.

Andy, as tixtesal said, Plex works great on several distros. I would recommend Ubuntu 18.04 if you are getting your feet wet as it is a very common distro here and will be easiest to find support.

Wow, when is this ‘-hwaccel nvdec’ option going to be enabled that I don’t have to modify the transcoder script?

For playing a 4K movie, this made the difference between the transcoder process using up 1000% CPU and 100% CPU looking at top. It loads up the GPU way more, too. Without the flag, the transcoder process shows up in nvidia-smi but only chewing up like 150MB instead of 1.5GB of the video RAM.

when the plex devs are ready to release it, and no sooner.

That’s true. I was thinking of creating a new Dockerfile in the interim – something that uses the linuxserver/plex base image and then adds that transcode wrapper.

1 Like

I believe this is what you are looking for…
https://gist.github.com/Xaero252/9f81593e4a5e6825c045686d685e2428

Not my work. But it is a wrapper for docker to run the plex-nvdec linux script.

@taylorja137 Ooh, nice. Thank you!

Looks like a good place for this. Comprehensive List/test of all Nvidia cards for transcoding.

https://www.elpamsoft.com/?p=Plex-Hardware-Transcoding

4 Likes

that is awesome.

Incase anyone is looking for a Docker container based on linuxserver/plex that has the revr3nd/plex-nvdec wrapper script built in, I’ve released a docker container called mediadepot/plex-cuda

Its on Docker Hub and Github
Docker Hub: https://cloud.docker.com/u/mediadepot/repository/docker/mediadepot/plex-cuda
Github: https://github.com/mediadepot/docker-plex-cuda

1 Like

I downloaded it and got inside via port 32773, but It cannot find my local server (Actually it finds my remote server…). How Do I configure it to find my files on NAS and old metadata?
Also I noticed on setting there is amd64 in use? I have i58400T + 1050 on NAS

BTW. Should I run some other Docker on side, because I only run this.

Now I found my server… But I cannot get GPU to work with my NAS.
In cointainer I have selected from dropdown menu my Nvidia card.
But When I run 4K video i get 50% processor, but GPU load 0%


Where is the Linux support at? Shouldn’t this be built into the plex server by now?

1 Like

yeah it’s kinda annoying that we pay for features that don’t exist in a linux environment

it also annoying that I need to run a work-around that isnt officially supported to get it to work - showing that the functionality is there but not implemented

1 Like

They may be waiting on bug fixes. For instance, there’s a green screen issue with 10 bit hevc hw decoding on Quadro cards (according to emby) that can only be resolved with driver updates from Nvidia.

Interesting I have not run into any green screen issues so far that I know of.

Is there any progress being made on this to be integrated?!

1 Like