Guest User

hwaccel.transcoding.yml

a guest
Apr 15th, 2024
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. version: "3.8"
  2.  
  3. # Configurations for hardware-accelerated transcoding
  4.  
  5. # If using Unraid or another platform that doesn't allow multiple Compose files,
  6. # you can inline the config for a backend by copying its contents
  7. # into the immich-microservices service in the docker-compose.yml file.
  8.  
  9. # See https://immich.app/docs/features/hardware-transcoding for more info on using hardware transcoding.
  10.  
  11. services:
  12. cpu: {}
  13.  
  14. nvenc:
  15. devices:
  16. - /dev/dri:/dev/dri
  17. deploy:
  18. resources:
  19. reservations:
  20. devices:
  21. - driver: nvidia
  22. count: 1
  23. capabilities: [gpu, compute, video]
  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. volumes:
  52. - /usr/lib/wsl:/usr/lib/wsl
  53. environment:
  54. - LD_LIBRARY_PATH=/usr/lib/wsl/lib
  55. - LIBVA_DRIVER_NAME=d3d12
Add Comment
Please, Sign In to add comment