That How-To is pretty grossly outdated because of internal changes to both PMS and the Nvidia drivers since that article was written.
To run down the list
The biggest change is - PMS uses musl instead of ld.so.
plex.sh takes this into account. It also takes standard QNAP /opt/NVIDIA_GPU_DRV into account via gpuhal_app .
To keep the layers clean,
– the docker container definition addresses the app needs
– plex.sh addresses bringing the appropriate runtime libraries, which includes the GPU libraries, to PMS.
PMS will always favor the Nvidia GPU over the CPU when it finds it.
On a system which has a QSV capable CPU, it is a requirement to add the preference HardwareDevicePath="/dev/dri/renderD129" (Default is renderD128)
For the longest time, I’ve wanted to lower PMS’s privilege level on QNAP.
It’s not possible because QNAP does not have udev nor does it have a real sh/‘bash’ shell (it has busybox). There would be secondary issues with everyone being frustrated about granting media permissions just like they were with Synology.
I’d very much like to solve this once and for all.
From the top —
Which CPU and GPU do you have in your machine?
I lost permissions to my Preferences.xml as well for some reason. Trying to see how I can view it on the QNAP side. They keep obfuscating things from the CLI and I don’t like it!
Here you are. I started debug before playing a file. I’m remote right now but playing direct (not through plex.tv). Hopefully you can find something in there. If you need something else or me to do something differently just let me know.
Oct 21, 2022 19:04:11.250 [0x7f394422d6f0] INFO - [CERT/OCSP] Successfully retrieved response from cache.
Oct 21, 2022 19:04:11.250 [0x7f394422d6f0] ERROR - [CERT] Found a user-provided certificate, but couldn’t install it.
We’ll work on this:
2022 19:04:11.400 [0x7f393d3a3b38] WARN - [GPU] Failed to load PCIID map: Failed to locate a readable PCIID database
You’re burning subtitles – CPU will be utilized and the hardware turned off
Independent of all that –
You have a CoffeeLake CPU which has native QSV support through /dev/dri/renderD128
Go back and look at the the screenshot of your GPU.
ah d#@$ - I need to restart my QNAP. I’ve had that issue before with zeroed out resources and a restart fixes it. I think it’s due to the nature of how I needed to run the container in the past.
I checked my stream and subtitles are not selected, so it’s strange they are burning even though not selected. Where is that option set - I’m having some trouble finding it at the moment?
As for my certificate - That’s also strange because my direct connect shows a green banner with valid certificate (using a traefik proxy, exporting the cert through cron job/script for updating whenever it expires).
My TVS is running this version driver - the lack of version number in the background App Center is likely due to the HW resources being zeroed out:
I probably won’t get to restarting until tonight as I have about 20-30 other containers running on this guy. I’ll resolve that stuff and let you know my luck after I resolve the Hardware issue at a minumum!
Just saw your comment on the driver version itself too. I’ll get the Kernel updated at the same time. Looks like GPU version is good atm and saw your comment above on 5.1 being buggy.
Unfortunately that is not an option as this model NAS can only pass the GPU through to Container Station. I was previously using the native app until that limitation hit :-/.
Also - Config is in .qkpg directly given I was previously using the native app.
I’m headed out for now, but will get my NAS restarted tonight after home distractions are at a minimum and fill in any details afterwards.