Jump to content

Emby fails detecting GPU for HW decode & encode


Go to solution Solved by danergo,

Recommended Posts

Posted

Running on Ubuntu.

They usually updates drivers, so my Nvidia Quadro P400's DKMS must been rebuilt.

Now I have:

image.thumb.png.80665ba86c8224614d40d5150a2c915c.png

 

Although on server:

image.thumb.png.b38fe252c377e1d169e980df9cdca8e6.png

Nvidia drivers has been installed with:

sudo apt install nvidia-headless-550-server nvidia-dkms-550-server nvidia-utils-550-server

Note: this is a headless installation, I wish to avoid installing X.

I'm rather open to any suggestion. Nvidia seems working, but Emby just fails detecting it.

  • Solution
Posted

Hi @Luke

Sure, and I know there is a section in this guide:

Quote

Always follow the instructions on the Nvidia site, even when the installed driver version appears to be sufficient!

On linked Nvidia driver's download page, there is also a section:

Quote

Note that many Linux distributions provide their own packages of the NVIDIA Linux Graphics Driver in the distribution's native package management format. This may interact better with the rest of your distribution's framework, and you may want to use this rather than NVIDIA's official package.

As I have a headless machine, I really wish to avoid installing a full display driver, just for transcoding capabilities.

In the meantime, I have found this awesome guy's post:

IMHO this should really be added to transcoding guides, for those few who uses NAS with Ubuntu without displays and don't want multiple unnecessary packages on their systems.

Slight addition to above guide:

1. Install NVidia's drivers (and kernel modules)

sudo apt install nvidia-headless-550-server nvidia-dkms-550-server

2. Install NVENC and NVDEC (for making it usable for Emby)

sudo apt install libnvidia-decode-550-server libnvidia-encode-550-server

3. Install utils (to be able to check the status with nvidia-smi)

sudo apt install nvidia-utils-550-server

 

For headless, "nvidia-settings" is unnecessary, but after those above packages have been installed Emby started recognizing the card:

image.thumb.png.81c090e290a2d45b0cb350891b87a6bb.png

Posted (edited)

@luke,

I can confirm operation with RTX 2000 ada and Nvidia 550 drivers.

Just purchased  RTX 2000 for use in NUC12DCMi9  due to form factor

All the pieces are installed and the GPU is seen/usable by other applications.

On $competitor, it shows as "unknown@nvidia" but does work for nvdec and nvdec + tonemapping

I'm available to help as needed.

 

Quote

[chuck@lizum docker.2067]$ dpkg -l | grep nvidia | grep dkms
ii  nvidia-dkms-550                            550.90.07-0ubuntu0.22.04.1                        amd64        NVIDIA DKMS package
[chuck@lizum docker.2068]$ dpkg -l | grep nvidia | grep utils
ii  nvidia-compute-utils-550                   550.90.07-0ubuntu0.22.04.1                        amd64        NVIDIA compute utilities
ii  nvidia-utils-550                           550.90.07-0ubuntu0.22.04.1                        amd64        NVIDIA driver support binaries
[chuck@lizum docker.2069]$ dpkg -l | grep nvidia | grep decode
ii  libnvidia-decode-550:amd64                 550.90.07-0ubuntu0.22.04.1                        amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-550:i386                  550.90.07-0ubuntu0.22.04.1                        i386         NVIDIA Video Decoding runtime libraries
[chuck@lizum docker.2070]$ 

Quote

[chuck@lizum ~.2002]$ nvidia-smi
Wed Aug 21 22:05:44 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.90.07              Driver Version: 550.90.07      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX 2000 Ada Gene...    Off |   00000000:01:00.0  On |                  Off |
| 30%   41C    P2             17W /   70W |    1682MiB /  16380MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2788      G   /usr/lib/xorg/Xorg                            476MiB |
|    0   N/A  N/A      3029      G   /usr/bin/gnome-shell                          166MiB |
|    0   N/A  N/A      4223      G   ...seed-version=20240820-180103.614000        268MiB |
|    0   N/A  N/A     54205      G   /usr/lib/thunderbird/thunderbird              135MiB |
|    0   N/A  N/A    469799      C   /opt/emby-server/bin/ffmpeg                   522MiB |
+-----------------------------------------------------------------------------------------+
[chuck@lizum ~.2003]$ 

 

Edited by ChuckPa
Posted

You may want to give the 4.9 beta channel a try as it has updated drivers and an updated intel runtime.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...