when putting PMS in a LXC,
Need:
nvidia.driver.capabilities: all
nvidia.require.cuda: "true"
nvidia.runtime: "true"
Then, when PMS is installed in the container, PROVIDED the group which owns /dev/dri/renderD128 is NOT ārootā, the installer will add PMS to that group.
In the case where renderD128 is owned by ārootā, the installer doesnāt know itās in a container so it opts for safety and doesnāt open the whole machine to PMS (security violation).
In these cases, where you know itās in a container, manually adding PMS (plex:plex) to the ārootā group is ok because it canāt get out of the namespace.
Here you can see the Nvidia is not sufficiently accessible for HW transcoding.
Aug 26, 2024 22:12:52.683 [123240458496824] DEBUG - [Req#6e/Transcode] MDE: Dust_HD: no remuxable profile found, so video stream will be transcoded
Aug 26, 2024 22:12:52.683 [123240458496824] DEBUG - [Req#6e/Transcode] Codecs: testing h264_nvenc (encoder)
Aug 26, 2024 22:12:52.683 [123240458496824] DEBUG - [Req#6e/Transcode] Codecs: hardware transcoding: testing API nvenc for device '' ()
Aug 26, 2024 22:12:52.756 [123240571743032] DEBUG - [HttpClient/HCl#2e] HTTP/1.1 (0.3s) 200 response from GET https://104-136-55-230.e9a3501c806742e4b848c1c90b3cd69a.plex.direct:32400
Aug 26, 2024 22:12:53.012 [123240458496824] DEBUG - [Req#6e/Transcode] [FFMPEG] - CUDA texture alignment: 512
Aug 26, 2024 22:12:53.028 [123240599006008] WARN - JobManager: Could not find job for handle 7559
Aug 26, 2024 22:12:53.040 [123240599006008] WARN - JobManager: Could not find job for handle 7560
Aug 26, 2024 22:12:53.052 [123240599006008] WARN - JobManager: Could not find job for handle 7561
Aug 26, 2024 22:12:53.208 [123240458496824] DEBUG - [Req#6e/Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
Aug 26, 2024 22:12:53.208 [123240458496824] DEBUG - [Req#6e/Transcode] Codecs: testing h264 (decoder) with hwdevice vaapi
Aug 26, 2024 22:12:53.209 [123240458496824] DEBUG - [Req#6e/Transcode] Codecs: hardware transcoding: testing API vaapi for device '' ()
Aug 26, 2024 22:12:53.209 [123240458496824] DEBUG - [Req#6e/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Aug 26, 2024 22:12:53.209 [123240458496824] DEBUG - [Req#6e/Transcode] Could not create hardware context for h264
Aug 26, 2024 22:12:53.209 [123240458496824] DEBUG - [Req#6e/Transcode] Codecs: testing h264 (decoder) with hwdevice nvdec
Aug 26, 2024 22:12:53.210 [123240458496824] DEBUG - [Req#6e/Transcode] Codecs: hardware transcoding: testing API nvdec for device '' ()
Aug 26, 2024 22:12:53.460 [123240458496824] DEBUG - [Req#6e/Transcode] Codecs: Testing with profile 'High'
This needs to be resolved first.