Can Emby rely on discrete GPU to transcode hevc 10-bit 4k?


Recommended Posts

1 hour ago, jang430 said:

Don't know how you passthrough a gpu to a docker container.

You cant. To use a nvidia GPU for any sort of trans-coding on unRAID you must use a VM and passthough the card to the VM. So for your case, if emby supports GPU transcoding, you would have to run emby in a VM with the GPU passed through to the VM. 

  • Upvote 1
Link to comment
10 hours ago, Warrentheo said:

Is this an UnRaid limitation?

Yes, unraid does not include GPU specific drivers as part of the "keep it small and lightweight as possible" philosophy.

It should be possible to modify unraid like is being currently maintained for the tv tuner stuff, but it would take constant upkeep and troubleshooting, and could interfere with basic functionality by accident if not done well.

Link to comment
  • 5 months later...

I have now sorted this out and it is working with JellyFin.

The short answer is, you must install the GPU drivers to Unraid (i.e. you must recompile the kernel with the nvidia modules) reboot to enable them, then reinstall the nvidia  GPU and CUDA drivers every time you reboot.

You must then passthrough all the /dev/dri and /dev/nvidia* devices to your docker.

The docker itself then needs the same versions of the GPU and CUDA drivers installing.

You then  need a supported program e.g. ffmpeg compiled with NVENC in order to use the acceleration.

At this point you can query nvidia-smi on the host or in the docker to get the status of any GPU usage.

You can see the status of my own hacky scripts here: https://github.com/Aterfax/nvidiadriversonunraidinstaller

Wrt Emby - it should already have the NVENC enabled  ffmpeg, but I do not know if it has the nvidia drivers (GPU and CUDA) installed in the image.

I also do not know if these drivers are fully necessary for the docker to use the GPU.

I believe that eventually CHBMB will release this: https://github.com/CHBMB/Unraid-NVIDIA-Plugin

 

This would then streamline the install of host Nvidia drivers.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.