Unraid + Nvidia GPU HW transcoding issue

I’m continuing to work on this in regular LXC configurations with success.

I can reliably share the following:

I create a profile ‘nvidia’ which is the base for the container.
It has “Nvidia” capabilities

I equally have a “intel” profile (QSV transcoding capabilities)

The important pieces here are the following:

chuck@plexqa-av1:~$ cat nvidia-setup 
lxc profile create nvidia
lxc profile set nvidia nvidia.runtime true
lxc profile set nvidia nvidia.driver.capabilities all
lxd profile set nvidia nvidia.require.cuda true

lxc profile device add nvidia gpu gpu
chuck@plexqa-av1:~$ 

I’m still finalizing all our new automation tools.
When complete, I’ll share.

What is LXC? Is that some tool in unraid?

https://linuxcontainers.org/lxc/introduction/

You know Docker?

Docker is virtualizing only the application in a namespace on the host.
LXC (LinuX Container) virtualizes an entire OS context in a namespace on the host without the overhead of a VM.

Ok, thanks for explaining that.
Is what you’re testing out in your LXC going to be helpful to those of us that aren’t using it, and running in a full unraid os environment?

I’m just not understanding why more people aren’t experiencing this issue (or at least not complaining about it). Is it a Plex or is it an unraid issue that is causing the GPU to not be utilized?

This has all the markings of a Kernel - Drivers problem

If I cannot install nvidia drivers without the kernel hanging during boot,
Plex doesn’t stand a snowball’s chance in Hades.

Based on my experience,

  1. Older CPUs work OK because they use the older (5.04 → 5.19) kernels
  2. Any newer CPUs (especially AlderLake) which still don’t have full kernel support – suffer
  3. Nvidia drivers 535 are problematic. (there is something wrong in there)

EDIT: I WILL FIGURE IT OUT :angry:

1 Like

@ChuckPa
I have been experiencing issue as well you have here all the info.
Look for my posts from here
https://forums.unraid.net/topic/98978-plugin-nvidia-driver/?do=findComment&comment=1282295
to here:
https://forums.unraid.net/topic/98978-plugin-nvidia-driver/?do=findComment&comment=1285799

Hey! It’s working!!
I had a version update, now I’m running Version 1.32.5.7349. I have my NVIDIA drivers updated to the latest v535.86.05. I now see options under settings>transcoder where I have a dropdown to select which hardware I want to use.
image

And when I play and transcode something, it is showing up on my NVIDIA dashboard again!
image

I can only assume that something was fixed in that Plex version update. I’m pretty excited that it all works properly again!!

Still does not work for my quadro p620 card @ChuckPa
Any idea how to fix it? it was working and stooped this summer

I have posted new logs here Hardware Transcoding not working on Plex - What am I missing? - #7 by l0rdraiden

Per:

Is this it:

Quadro P600 / P620/ P1000 Pascal 3rd Gen D/M 1 1 YES YES YES NO YES YES YES YES YES YES YES NO NO NO NO NO

My issues with Nvidia have ALWAYS been the drivers AND the kernel module.

When they get out of sync – FAILURE

But then is there something I can do to fix it? must be fixed from plex side?
This is my kernel and the options I have to downgrade nvidia driver. But I downgraded to some of them and it didn’t work

I don’t know enough about unRaid to answer that one.
I do know the issue is in unRaid.

As confirmation, put this file in an “Other Videos” type library section.

Restart Plex
Set the playback to something which will force transcoding.
Do the playback (it’s 30 seconds).

Download the logs ZIP so I can see everything from PMS start → Playback.

As for other things I can do, I have an unRaid NUC7 here.
If I could stand up a VM with unRaid in it then I’d be able to do more.

Please forgive me but I can’t remember whether it’s unRaid or ProxMox which requires blacklisting of drivers. I think it’s ProxMox and only applies to the Intel QSV GPU.

Here you have the logs

I saw in another post that you mention that my card P620 does not support HDR, most of my movies now if now all have are 4K HDR10 (HEVC Main 10). Could this be the problem?

Go look at the Nvidia encode-decode matrix.

The P620— P1000 cards have limited 4K HEVC HDR support because they are 3rd gen.

Try this file. it will allow you to confirm basic hardware support

I see part of the problem – subtitles

Oct 03, 2023 22:37:12.141 [23183723871032] DEBUG - Selected a foreign audio track: en
Oct 03, 2023 22:37:12.141 [23183723871032] DEBUG - Subtitles: Found a candidate subtitle language [es] for a foreign film
Oct 03, 2023 22:37:12.141 [23183723871032] DEBUG - Audio Stream: 89887, Subtitle Stream: 89889

please look at the subtitle type – Is it SRT (OK) or is it PGS/VOBSUB/DVDRIP ?

it fails in many movies and 90% are srt, but I think the reason is because those are HDR H265 movies

@l0rdraiden

Were you able to HW transcode the 30 second test file?

In my case it fails when the video has a format not supported by HW transcoding.
Maybe plex could implement a kind of bypass, so if hardware transcoding is not supported for a specific format then either do transcoding via CPU or show a more detailed error message to understand what is going on.

I would VERY MUCH like to know which video formats you have that aren’t supported.

And, if possible, 50-100 MB samples of each

Hello friends I’m looking for help I just moved my Windows 11 server to Unraid I already have official Plex Media Server running but web I want to run my GPU I get an error

for this Extra Parameters: Add the following line to enable GPU access: --runtime=nvidia

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.