Jump to content

How to get VAAPI working in docker?


luundblad

Recommended Posts

luundblad

Synology DS916+

 

my docker compose:

  emby:
    image: emby/embyserver:beta
    container_name: embyserver
    network_mode: host
    environment:
      - TZ=Europe/Stockholm
      - UID=1041
      - GID=100
      - GIDLIST=65546
    volumes:
      - /volume3/docker/Emby/config:/config
      - /volume3/docker/embyserverbackuptask:/backup_plugin
      - /volume2/Media:/media
      - /volume1/name/oldvids:/gamlavideoband
    ports:
      - 1337:1337
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped

i tried alot of diffrent settings with no luck.

The UID / GID / GIDLIST is emby user that is member in video group and permissions to media folders.

 

i also tried with "privileged: true" and y own admin account..

 

Edited by luundblad
Link to comment
Share on other sites

  • 3 weeks later...
BaukeZwart
On 28/04/2021 at 17:31, Luke said:

Hi, are you still running into this?

I'm having the exact same issue, no HW acceleration available with Emby running in a Docker container on a DS920+.
And yes I have a premiere subscription. 

Link to comment
Share on other sites

BaukeZwart

I have HW acceleration working on the Synology.
If anybody is fighting the same issue, this is my docker-compose:

Quote

# Emby - https://docs.linuxserver.io/images/docker-emby
# <mkdir /volume1/docker/appdata/emby>
  emby:
    container_name: emby
    image: ghcr.io/linuxserver/emby
    restart: unless-stopped
    logging:
      driver: json-file
    network_mode: bridge
    ports:
      - 8096:8096/tcp
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - UMASK_SET=022
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${DOCKERCONFDIR}/emby:/config:rw
      - ${DOCKERSTORAGEDIR}/media:/data/media:rw
    devices:
      - /dev/dri/card0:/dev/dri/card0
      - /dev/dri/renderD128:/dev/dri/renderD128
    privileged: true


And set this script to run at boot.

Quote

#!/bin/bash
#Startup Script
#Access for HW Decoder Emby/Jellyfin
chmod 666 /dev/dri/renderD128
exit

 

Edited by BaukeZwart
Link to comment
Share on other sites

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...