@tamas IIRC you were at Plex? are you still able to influence the snap package at all?
The plexmediaserver snap cannot perform nvidia-based transcoding because it doesn’t know where
libcuda.so.1 is located. This file is accessible from
/var/lib/snapd/hostfs/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libcuda.so.1. The directory is not listable by the snap, but it can read
libcuda from that location without any additional plugs. Therefore it seemingly needs either a symlink or an
LD_LIBRARY_PATH override to allow plex to see it?
for reference, here is the error that it prints to the log:
Oct 02, 2021 10:44:28.745 [0x7f8b8279cb38] ERROR - [Transcode] [FFMPEG] - Could not dynamically load CUDA Oct 02, 2021 10:44:28.746 [0x7f8b8279cb38] ERROR - [Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error). Oct 02, 2021 10:44:28.746 [0x7f8b8279cb38] ERROR - [Transcode] [FFMPEG] - Cannot load libcuda.so.1
Host system is Ubuntu 21.04 (server) with
nvidia-headless-470 as the driver package installed.
$ snap version snap 2.51.7 snapd 2.51.7 series 16 ubuntu 21.04 kernel 5.11.0-37-generic