Jump to content

Emby no longer detects my NVDEC capabalities


Recommended Posts

Posted

I am running Emby stable on an Arch linux server.

 

My graphics card is a nvidia GTX 1650.

 

 I have the drivers and packages installed for HW transcoding.

 

Everything worked for a while. In the Emby dashboard, I had settings for NVDEC, NVENC, and CUDA available. They worked.

 

Then one day they did not. The only option available to me is QuicSync (I have no intel GPU). Obviously, enabling thme does nothing. I can verify my transcoding works when I play a 4K mkv with

mpv --hwdec=auto *.mkv

 

It uses NVDEC and CUDA. Emby does not.

 

Here is part of the log:

 

23:29:58.868 Stream #0:2(eng): Subtitle: dvd_subtitle, 3840x2076
23:29:58.868 Metadata:
23:29:58.868 BPS : 10004
23:29:58.868 BPS-eng : 10004
23:29:58.868 DURATION : 02:15:19.778000000
23:29:58.868 DURATION-eng : 02:15:19.778000000
23:29:58.868 NUMBER_OF_FRAMES: 2043
23:29:58.868 NUMBER_OF_FRAMES-eng: 2043
23:29:58.868 NUMBER_OF_BYTES : 10154656
23:29:58.868 NUMBER_OF_BYTES-eng: 10154656
23:29:58.868 Stream #0:3(eng): Subtitle: dvd_subtitle, 3840x2076
23:29:58.868 Metadata:
23:29:58.868 BPS : 4270
23:29:58.868 BPS-eng : 4270
23:29:58.868 DURATION : 00:03:46.059000000
23:29:58.868 DURATION-eng : 00:03:46.059000000
23:29:58.868 NUMBER_OF_FRAMES: 31
23:29:58.868 NUMBER_OF_FRAMES-eng: 31
23:29:58.868 NUMBER_OF_BYTES : 120668
23:29:58.868 NUMBER_OF_BYTES-eng: 120668
23:29:58.869 Stream mapping:
23:29:58.869 Stream #0:0 (hevc_qsv) - hwdownload (graph 0)
23:29:58.869 format (graph 0) - Stream #0:0 (libx264)
23:29:58.869 Stream #0:1 - #0:1 (dts (dca) - aac (native))
23:29:58.869 Press [q] to stop, [?] for help
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
23:29:58.907 [AVHWDeviceContext @ 0x557f0ec0b240] libva: /usr/lib/dri/iHD_drv_video.so init failed
23:29:58.908 [AVHWDeviceContext @ 0x557f0ec0b240] Failed to initialise VAAPI connection: 18 (invalid parameter).
23:29:58.908 Error creating a QSV device
23:29:58.908 qsv hwaccel requested for input stream #0:0, but cannot be initialized.
23:29:58.908 Error while decoding stream #0:0: No such device or address
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
23:29:58.912 [AVHWDeviceContext @ 0x557f0ec98280] libva: /usr/lib/dri/iHD_drv_video.so init failed
23:29:58.912 [AVHWDeviceContext @ 0x557f0ec98280] Failed to initialise VAAPI connection: 18 (invalid parameter).
23:29:58.912 Error creating a QSV device
23:29:58.912 qsv hwaccel requested for input stream #0:0, but cannot be initialized.
23:29:58.912 Error while decoding stream #0:0: No such device or address
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
23:29:58.913 [AVHWDeviceContext @ 0x557f0ec33740] libva: /usr/lib/dri/iHD_drv_video.so init failed
23:29:58.913 [AVHWDeviceContext @ 0x557f0ec33740] Failed to initialise VAAPI connection: 18 (invalid parameter).
23:29:58.913 Error creating a QSV device
23:29:58.913 qsv hwaccel requested for input stream #0:0, but cannot be initialized.
23:29:58.913 Error while decoding stream #0:0: No such device or address.

 

The systemd service that manages Emby has video and render as supplementary groups and R/W access to /dev/dri.

 

Everything worked fine, til one day it did not.

Posted

Just tested something. When I run Emby as root, it transcodes fine. That's not a solution though.

 

Here is my service script:

[Unit]
Description=Emby brings together your videos, music, pho>
After=network.target

[Service]
User=emby
Group=emby
SupplementaryGroups=render
SupplementaryGroups=video
DynamicUser=true
StateDirectory=emby
ReadWritePaths=/dev/dri
EnvironmentFile=/etc/conf.d/emby-server
ExecStart=/usr/bin/emby-server
RestartForceExitStatus=3

AmbientCapabilities=
CapabilityBoundingSet=
LockPersonality=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true

[Install]
WantedBy=multi-user.target

 

 

Posted
13 hours ago, procyon said:

Just tested something. When I run Emby as root, it transcodes fine. That's not a solution though.

 

Here is my service script:

[Unit]
Description=Emby brings together your videos, music, pho>
After=network.target

[Service]
User=emby
Group=emby
SupplementaryGroups=render
SupplementaryGroups=video
DynamicUser=true
StateDirectory=emby
ReadWritePaths=/dev/dri
EnvironmentFile=/etc/conf.d/emby-server
ExecStart=/usr/bin/emby-server
RestartForceExitStatus=3

AmbientCapabilities=
CapabilityBoundingSet=
LockPersonality=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true

[Install]
WantedBy=multi-user.target

 

 

That's potentially a sign that the server is being denied access the gpu, so you may want to look into that.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...