Guest User

hwaccel.transcoding.yml

a guest
Oct 30th, 2025
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.69 KB | None | 0 0
  1. # Configurations for hardware-accelerated transcoding
  2.  
  3. # If using Unraid or another platform that doesn't allow multiple Compose files,
  4. # you can inline the config for a backend by copying its contents
  5. # into the immich-microservices service in the docker-compose.yml file.
  6.  
  7. # See https://docs.immich.app/features/hardware-transcoding for more info on using hardware transcoding.
  8.  
  9. services:
  10.   cpu: {}
  11.  
  12.   nvenc:
  13.     deploy:
  14.       resources:
  15.         reservations:
  16.           devices:
  17.             - driver: nvidia
  18.               count: 1
  19.               capabilities:
  20.                - gpu
  21.                 - compute
  22.                 - video
  23.  
  24.   quicksync:
  25.     devices:
  26.      - /dev/dri:/dev/dri
  27.  
  28.   rkmpp:
  29.     security_opt: # enables full access to /sys and /proc, still far better than privileged: true
  30.       - systempaths=unconfined
  31.       - apparmor=unconfined
  32.     group_add:
  33.      - video
  34.     devices:
  35.      - /dev/rga:/dev/rga
  36.       - /dev/dri:/dev/dri
  37.       - /dev/dma_heap:/dev/dma_heap
  38.       - /dev/mpp_service:/dev/mpp_service
  39.       - /dev/mali0:/dev/mali0 # only required to enable OpenCL-accelerated HDR -> SDR tonemapping
  40.     volumes:
  41.      - /etc/OpenCL:/etc/OpenCL:ro # only required to enable OpenCL-accelerated HDR -> SDR tonemapping
  42.       - /usr/lib/aarch64-linux-gnu/libmali.so.1:/usr/lib/aarch64-linux-gnu/libmali.so.1:ro # only required to enable OpenCL-accelerated HDR -> SDR tonemapping
  43.  
  44.   vaapi:
  45.     devices:
  46.      - /dev/dri:/dev/dri
  47.  
  48.   vaapi-wsl: # use this for VAAPI if you're running Immich in WSL2
  49.     devices:
  50.      - /dev/dri:/dev/dri
  51.       - /dev/dxg:/dev/dxg
  52.     volumes:
  53.      - /usr/lib/wsl:/usr/lib/wsl
  54.     environment:
  55.      - LIBVA_DRIVER_NAME=d3d12
Advertisement
Add Comment
Please, Sign In to add comment