# Hardware transcoding for Collectoh in Docker — https://collectoh.com/docs/playback/ # # docker compose -f docker-compose.yml -f docker-compose.gpu.yml up -d # # Intel Quick Sync and AMD (VAAPI) need only the render device and its group. The group id # differs between distributions — run `getent group render | cut -d: -f3` on the host and put # it in .env as RENDER_GID. A wrong group is the usual reason hardware transcoding "doesn't # work"; Collectoh's Diagnostics page says so and names the fix. # # NVIDIA needs the NVIDIA Container Toolkit on the host; uncomment the environment and deploy # blocks below. services: server: devices: - /dev/dri:/dev/dri group_add: - '${RENDER_GID:-993}' # environment: # NVIDIA_VISIBLE_DEVICES: all # NVIDIA_DRIVER_CAPABILITIES: compute,video,utility # deploy: # resources: # reservations: # devices: # - driver: nvidia # count: 1 # capabilities: [gpu, video]