Jump to content

Emby in docker - Hardware Acceleration


kaj
Go to solution Solved by kaj,

Recommended Posts

Does anyone have any idea how to enable hardware acceleration when running Emby in a docker? I have a Synology 918+ and am trying to enable vaapi. 

Link to comment
Share on other sites

  • Solution

Ok, worked it out.

In docker, first stop then export your docker configuration for your Emby container. Then rename the docker container to something like emby-old.

Edit the exported .json file. Change the line that reads

"devices" : null,

to:

 "devices" : [
      {
         "CgroupPermissions": "rwm",
         "PathInContainer": "/dev/dri/renderD128",
         "PathOnHost": "/dev/dri/renderD128"
      }
   ],

Make sure that the UID, GID and GIDLIST match your system's Emby user or admin. Save the file. Import it into back into docker and you are good to go. You can now enable VAAPI in the docker instance of Emby.

  • Like 2
Link to comment
Share on other sites

  • 9 months later...

@kaj
I need help hardcoding Emby on a synology DS920 + (amd64)
my json docker is like this:

   "devices" : [
      {
         "CgroupPermissions": "rwm",
         "PathInContainer": "/dev/dri/renderD128",
         "PathOnHost": "/dev/dri/renderD128"
      }


but in the parameters of emby, I do not have the hardcoding active.
Where is my error please?
and how do you find the right value for GIDLIST please?
thank you so much

Link to comment
Share on other sites

OK thanks a lot.
I will try to find but it is not easy.
I have this in the logs:
"Message": "Failed to open the drm device / dev / dri / renderD128"

"Message": "Failed to open the drm device / dev / dri / renderD128"

 

Link to comment
Share on other sites

@kaji tried, but the images and nfo went to the media folder with my mkv files. and I didn't like it.
is it possible to save .nfo and .jpg files in a folder other than the media folders?

Edited by Cadkey
Link to comment
Share on other sites

7 hours ago, Cadkey said:

@kaji tried, but the images and nfo went to the media folder with my mkv files. and I didn't like it.
is it possible to save .nfo and .jpg files in a folder other than the media folders?

@Cadkey, simply turn off nfo saving and saving images to media folders if you don't want that. This is already off by default. Why did you turn them on?

Link to comment
Share on other sites

Ok thanks.
I want to use synology package. 
I want to use the service package spk. I had it already installed. when i want to install it now i got an error message. Port 8096 already in use by a service.
how to solve this problem please?

1.JPG

Link to comment
Share on other sites

20 minutes ago, Cadkey said:

Ok thanks.
I want to use synology package. 
I want to use the service package spk. I had it already installed. when i want to install it now i got an error message. Port 8096 already in use by a service.
how to solve this problem please?

1.JPG

Do you have other software using the same port? Try uninstalling that.

Link to comment
Share on other sites

If you still have docker running shut it down.  If you still get that error that would indicate port 8096 was set in in the Synology app router or proxy and needs to be removed.

Link to comment
Share on other sites

I have no proxy with 8096.
where can i found synology app router? I don't use it i think
reboot do nothing, always same problem

Edited by Cadkey
Link to comment
Share on other sites

Yes I rebooted twice and again. No result.
I see this when I install the package. There is still a trace of the emby package that I had previously uninstalled

 

2.JPG

Link to comment
Share on other sites

19 minutes ago, Cadkey said:

I have no proxy with 8096.
where can i found synology app router? I don't use it i think
reboot do nothing, always same problem

You need to delete the Emby docker container. Just stopping it isn't enough.

Link to comment
Share on other sites

I have already deleted the emby container entirely.
my package installation does not complete.
...
I reboot to stop the infinite installation ...
i installed the emby package 3 days ago, then i uninstalled it.
Now I can no longer install the package because port 8096 has remained declared as 'reserved' by emby while emby is no longer installed.

Edited by Cadkey
Link to comment
Share on other sites

I bought emby premiere for hardware transcoding. Cannot activate it in docker and the package version of emby no longer installs on my DS 920+
bad day. it is 2 a.m. in France :(

Link to comment
Share on other sites

1 hour ago, Cadkey said:

I bought emby premiere for hardware transcoding. Cannot activate it in docker and the package version of emby no longer installs on my DS 920+
bad day. it is 2 a.m. in France :(

@cayars may be able to help. He helped me by remotely connecting to my 918+. Stick with it, the support here is fantastic. I moved from Plex to Emby about three years ago, as I found transcoding, local and remote users much much better with Emby.

  • Like 1
Link to comment
Share on other sites

Okay I tried the solution of editing the INFO file in the spk package.
I replaced

adminport = "8096"

by

adminport = "8097"


the spk installs and works. I did an uninstall hoping that it 'free' the ports used normally by Emny ... but still the problem of port 8096 when installing the original spk file.
as I had just installed my server, I took the brutal solution of deleting the folder

/volume1/@appdata$/EmbyServer

 

Link to comment
Share on other sites

Thanks for your help.
I'm waiting for my library to build to test the hardware encoding.
I chose emby because the interface is very responsive and the videos start quickly.
I like the announcement of the next episode at the end of the current episode.
Maybe there will be the option to 'skip intro' in a future release?

Link to comment
Share on other sites

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