plex docker HW transcode synology

@“eX&TriC”

FWIW: The 64-bit Ubuntu binary image is exactly what I package in the 64 bit Synology SPK. You have a zero net gain there.

Why go through all the fuss of customizing a docker container, which is still fraught with the permissions issue on /dev/dri when:

  1. I handle all the HW configuration for you during setup.
  2. udev rules are established to ensure /dev/dri/renderD128 is always accessible to user plex
  3. Should you need to backup or move your PMS installation, a ZIP file of your Library directory from the Plex share is all you need take with you.

Performance will be better because you’ve removed the docker layer.
Headaches will be fewer because you’ve removed the docker layer
Portability is increased to any linux host because you’ve removed the docker layer.

@ChuckPa I’m trying to understand your last comment about zero net gain and improvements gained by removing the docker layer.

Are you arguing that people should just use the NAS download instead of using a docker install?

@ChuckPa Do you think there ll be a way to enhance the docker image in order to manage above modifications ?

docker has its pros and cons as you mentionned even if its really minimized, but I personnaly dockerized manage a lot of other services, being able to manage Plex as well will be a real plus. PMS docker image honestly works very well, if it could manage hw transcription on Synology would be a plus.

No. The contents of the container do not have permission to modify the host.

This is one of those times when you’re better off running the native package and being done with it. If you were to violate docker design and give it ‘root’ access, now it can destroy the entire host. Clearly a vulnerability not to be created or fostered.

You’re on Ubuntu. The installer runs and puts everything in /var/lib/plexmediaserver. If you need to move to a new host, one tarball of Library and you can take it to a new system. it is just as easy as exporting the Docker container and takes the same time. What do you gain by having Docker? Nothing. What do you lose by having Docker? Hardware transcoding access.

This works for me too. Perfect thanks!
I’m guessing because device mapping is supported in the config json that in a future version of DSM they’ll have it available in the UI. Fingers crossed :slight_smile:

Following up on this: I created a Docker image that sets the correct permissions on /dev/dri for you.
https://hub.docker.com/r/nzben/plex-synology/

Seems to work fine. Happy to hear feedback.

Sadly all these solutions don’t work anymore:

failed to open /data/jenkins/pms-deps-universal-v2/BUILD_TAG/linux-ubuntu-x86_64/output/pms-depends-linux-ubuntu-x86_64-release-79dcc0f/lib/dri/hybrid_drv_video.so
Failed to wrapper hybrid_drv_video.so

For more info see [BUG] Hardware acceleration not working after update - #57 by drmagoo