Jump to content

Amd GPU Drivers in OMV


Recommended Posts

Posted

Hi, I am looking at using my AMD GPU to transcode video files, especially 4K movies. I have Emby installed on my Open Media Vault server. Does anyone have any idea how I install the AMD graphics drivers please.

 

Many Thanks

 

Thomsi

Posted

Let us know what you find. Thanks.

Posted (edited)

Not sure if this may help or i may be way off course but haver you enabled the non free AMD drivers as i believe Emby only works with official AMD Drivers.

Quote

Obvious disclaimer, use these instructions as pointers check the sources at the bottom of each set of instructions) undertake extra research first as you do not want to loose your data!! You proceed at your own risk!

As such you would need to go into Terminal

nano /etc/apt/sources.list

And Add the following to the bottom

deb http://deb.debian.org/debian/ buster main non-free contrib
deb-src http://deb.debian.org/debian/ buster main non-free contrib

deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free

Then 

  • Ctrl o
  • Ctrl x

to save and close the file

Then execute the 2 lines below (press enter after each one)

apt update
apt install firmware-linux firmware-linux-nonfree libdrm-amdgpu1 xserver-xorg-video-amdgpu

For more details and extra functions see source here Original Source and info

Then i presume you are running in docker so you would need to passthrough the VAAPI driver by adding this to your docker file:

Docker Compose

devices:
      - /dev/dri:/dev/dri

OR Docker CLI

--device /dev/dri:/dev/dri

Definition from Linuxserver's Emby image (my preferred version)

--device /dev/dri	Only needed if you want to use your Intel or AMD GPU for hardware accelerated video encoding (vaapi).

More info on the above Flags Here Dockerhub Emby

Edited by CassTG
Disclaimer
Posted

Many thanks for the info. What I might do is install OMV, Emby and Docker in a VM environment and try the above first to see if it works. Will give it ago in next few weeks when I have more time and will post here if it works or not.

  • Like 1
  • 3 years later...
godfuture
Posted (edited)
On 11/4/2021 at 6:54 PM, CassTG said:
apt update
apt install firmware-linux firmware-linux-nonfree libdrm-amdgpu1 xserver-xorg-video-amdgpu

Sorry, I dont want to be mean, but it seems you do not really know what you are doing. Why installing xserver on headless linux machine? There are many reasons not to this. Everyone else, please, dont follow this advice!

First of all, gpu support is normally given by kernel drivers. If users would read the logs, they will probably find out that debian was not able to load the gpu properly. Often this is due to missing (proprietary) firmware. This is not an issue, because open source is the default.

Please read the kernel logs (sudo journalctl -xe) and search for issues initializing gpu. If missing firmware is a problem, you only have to install amd firmware, not others:

apt install firmware-amd-graphics/bookworm-backports

I have added backports, because stable firmware paths are mostly out of date. If you have an older or newer debian release, adjust the backport repository name.

This will get you going with transcoding by creating amd /dev/dri render devices. Have fun!

Edited by godfuture

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...