Jellyfin Forum
Hardware Acceleration - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Hardware Acceleration (/t-hardware-acceleration--4379)

Pages: 1 2


Hardware Acceleration - LAB77 - 2024-02-10

Hi all. Need some help please.

I cannot seem to get HW Acceleration working!

I'm running Ubuntu and running Jellfin in a docker container. I'm also using docker compose. Here's my compose file:

Code:
version: "3"
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    group_add:
      - "110"
      - "render"
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
    network_mode: 'host'
    volumes:
      - jellyfin-config:/config
      - /home/jelly/media:/media
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128
    ports:
      - 8096:8096


The render group is "110"

When I run "docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/vainfo" I get:
Trying display: drm
error: failed to initialize display

What am I doing wrong?


RE: Hardware Acceleration - tmsrxzar - 2024-02-10

/dev/dri/renderD128 should be just /dev/dri

see docs https://docs.linuxserver.io/images/docker-jellyfin/#hardware-acceleration


RE: Hardware Acceleration - TheDreadPirate - 2024-02-10

Remove the "-render" line. That is taken care of with -110. You need to make sure that all the drivers are installed on the host. Also make sure that the codecs you've checked in Dashboard > Playback are codecs your iGPU can decode.

Can you share your ffmpeg log?


RE: Hardware Acceleration - LAB77 - 2024-02-11

How do I "Can you share your ffmpeg log?"?


RE: Hardware Acceleration - TheDreadPirate - 2024-02-11

In the container path /config/log there will be a bunch of files titled FFMPEG-Transcode<random string>.log. Pick one and attach it to a post or post it to sourcebin.


RE: Hardware Acceleration - LAB77 - 2024-02-13

(2024-02-10, 11:49 PM)TheDreadPirate Wrote: Remove the "-render" line.  That is taken care of with -110.  You need to make sure that all the drivers are installed on the host.  Also make sure that the codecs you've checked in Dashboard > Playback are codecs your iGPU can decode.

Can you share your ffmpeg log?

I had to zip it!


RE: Hardware Acceleration - TheDreadPirate - 2024-02-13

Since you are running the container as 1000/1000, did you add that user to the render group?


RE: Hardware Acceleration - LAB77 - 2024-02-14

No idea. How can I check and how do i do that?


RE: Hardware Acceleration - TheDreadPirate - 2024-02-14

Code:
id yourUsernameHere

It will then list the groups your user is a part of. If "render" is not in the group list.

Code:
sudo usermod -aG render yourUsernameHere



RE: Hardware Acceleration - LAB77 - 2024-02-15

Just tried that and after adding the user to render, it still didn't work :-(