Emby in docker & VAAPI not working


Recommended Posts

Hi,

I tried everything to get hardware acceleration working on my system:

 

Asrock J4105 mITX

Unraid 6.8.3

 

Whenever I try to transcode a file the cpu load will go up to 100%, so VAAPI is not working.

 

Please have a look at the screenshots:

 

emby_dockerdsjkj.png

 

emby_hw25k4m.png

 

emby_hw2mtkjh.png

 

emby_loadwajwp.png

 

dev_dri29k8z.png

 

go_newxuji1.png

 

Any ideas what I am doing wrong?

Edited by Civic1201
Link to comment

  

42 minutes ago, switch said:

Looks like you're passing through the device incorrectly. Pass just /dev/dri, not /dev/dri/renderD128. See if that helps.

 

37 minutes ago, Civic1201 said:

Same result as before with renderD128...

Open up an Unraid terminal and try this:

docker exec -it embyserver /bin/bash

This'll effectively take you into a terminal session inside of your Emby container.

Once you're in, type the follwing commands and paste their output here.

ls -la /dev/dri
vainfo

The vainfo package will most likely not be installed inside the Emby container, assuming it is based on Ubuntu, install it via

sudo apt update && sudo apt install vainfo

 

Edited by switch
Link to comment

This will give me this result:

Quote

Linux 4.19.107-Unraid.
Last login: Thu May 21 19:53:23 +0200 2020 on /dev/pts/0.
root@Tower:~# docker exec -it EmbyServer /bin/bash
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown

 

emby_try.png

Edited by Civic1201
Link to comment

Then the container doesn't have a bash shell. Try opening up the terminal by clicking on the container icon in the docker manager and select Console.

 

Also, have you tried linuxserver's version of the Emby container? May be worth a shot.

Edited by switch
Link to comment

Unraid is based on Slackware. What's important is, what's used as the base for the Emby container. Could be Alpine, could be Arch, Ubuntu...

There is something wrong with the passthrough setup, the output should look like this:

 

root@optiplex:/# ls -la /dev/dri
total 0
drwxr-xr-x 2 root root                80 May 17 19:20 .
drwxr-xr-x 6 root root               360 May 17 19:20 ..
crw-rw---- 1 root video         226,   0 May 17 19:20 card0
crw-rw---- 1 root videouYsyOXiq 226, 128 May 17 19:20 renderD128

You're missing the card0 device completely. Ditch the official Emby container and try using Linuxserver's.

 

image.png.255b2d97280fd939c1b9a6ddfe356f19.png

Edited by switch
Link to comment
2 minutes ago, Civic1201 said:

Same result without sudo.

So should I try the container you mentioned?

emby_try3.png

Don't know what the official Emby container uses as it's base. What I know is it does not use apt as it's package manager :D

Yes, try linuxserver's version of the container.

And please post output of ls -la /dev/dri from the Unraid terminal as well.

Link to comment

With the official EmbySever container, follow the instructions here, substituting Emby where appropriate:

 

Then go to Main -> Flash -> Syslinux Configuration -> Unraid OS

and change the line:

append initrd=/bzroot

to

append initrd=/bzroot intel_iommu=igfx_off

Hit "Apply" and reboot.

 

At this point hardware encoding should be working but the video output will be garbled. Follow instructions here to resolve that:

 

Edited by CS01-HS
  • Thanks 1
Link to comment
6 minutes ago, CS01-HS said:

With the official EmbySever container, follow the instructions here, substituting Emby where appropriate:

 

Then go to Main -> Flash -> Syslinux Configuration -> Unraid OS

and change the line:


append initrd=/bzroot

to


append initrd=/bzroot intel_iommu=igfx_off

Hit "Apply" and reboot.

 

At this point hardware encoding should be working but the video output will be garbled. Follow instructions here to resolve that:

 

I will try that, thanks for the advice.

 

With the new container I get this in Emby.

emby_try6.png

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.