Currently acct-user/jellyfin ebuild gives jellyfin user memberships in the jellyfin and render groups. Hardware accelerated transcoding on NVIDIA GPU cards requires membership in the 'video' group to gain access to NVIDIA devices under /dev/. Reproducible: Always Steps to Reproduce: 1. Install fresh www-apps/jellyfin ebuild on a system with NVIDIA GPU which pulls in acct-user/jellyfin 2. Enable NVENC hardware acceleration in the server Playback Settings. 3. Try to play media that requires transcoding - playback fails. 4. Look at the Jellyfin FFmpeg.Transcode-* log. Actual Results: Transcoded playback fails. FFmpeg.Transcode-* log shows failure due to CUDA access being denied. Expected Results: Transcoded playback works with hardware acceleration on NVIDIA GPUs. Add jellyfin user to the 'video' group, restart server and try again - transcoded playback works.
I think this is actually a problem with the permissions on the Nvidia device(s) - they should be accessible to the render the group.
wrong or right, video has been used for this since around 2006(?) on Gentoo, not planning to change or extend the access mean unless nvidia does something to improve the situation (currently heavily relies on nvidia-modprobe which can be only used by video group and creates video-group devices, nvidia works around a few things due to limitations with interfacing with some GPL stuff and their license). if want to access nvidia devices, you need to be a member of the video group
That's unfortunate - the render group provides the expected access on AMD and Intel. Why even have the render group if it doesn't work consistently?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=450f57236425adeb595e9a5a2657919ddcd8e461 commit 450f57236425adeb595e9a5a2657919ddcd8e461 Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2022-10-16 15:38:10 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2022-10-16 15:38:57 +0000 acct-user/jellyfin: add jellyfin to the video group Closes: https://bugs.gentoo.org/877185 Signed-off-by: Craig Andrews <candrews@gentoo.org> acct-user/jellyfin/jellyfin-0-r1.ebuild | 12 ++++++++++++ 1 file changed, 12 insertions(+)