Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Emby in docker & VAAPI not working

Featured Replies

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

  • Author

Please help.

  

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

  • Author

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

Careful, Linux is case-sensitive. From your first screenshot, the name of the container is "embyserver", not "EmbyServer".

  • Author

Yes I know. due to too much modifications I had to create a new container...

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

  • Author

Here is the output from within the container.

vainfo is not installed, but is Unraid really based on Ubuntu?

emby_try.png

Edited by Civic1201

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

  • Author

sudo won't work.

emby_try2.png

Omit sudo, as you're already root inside the container.

But as card0 is missing, you'll likely won't get anything useful from vainfo.

How does ls -la /dev/dri look like from the Unraid terminal?

Edited by switch

  • Author

Same result without sudo.

So should I try the container you mentioned?

emby_try3.png

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.

  • Author

Ok, this works better.

But I can not open the web ui and I have no idea where to enter the appdata config.

emby_try4.png

emby_try5.png

 

edit: OK, container is running but still 100% cpu load while transcoding. This is frustrating.

Edited by Civic1201

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

  • Author
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

  • Author

YES, finally! Thank you very much @ CS01-HS

Glad it worked. It's a nice little board.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.