Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877185 - acct-user/jellyfin needs to be in the 'video' group to allow transcoding hardware acceleration on NVIDIA GPUs
Summary: acct-user/jellyfin needs to be in the 'video' group to allow transcoding hard...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Fredrik Eriksson
URL: https://jellyfin.org/docs/general/adm...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-15 07:59 UTC by Alexey Chernyak
Modified: 2022-10-16 15:39 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernyak 2022-10-15 07:59:09 UTC
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.
Comment 1 Craig Andrews gentoo-dev 2022-10-16 13:58:23 UTC
I think this is actually a problem with the permissions on the Nvidia device(s) - they should be accessible to the render the group.
Comment 2 Ionen Wolkens gentoo-dev 2022-10-16 14:17:05 UTC
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
Comment 3 Craig Andrews gentoo-dev 2022-10-16 14:32:46 UTC
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?
Comment 4 Larry the Git Cow gentoo-dev 2022-10-16 15:39:02 UTC
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(+)