frigate: Pass DRI device for hardware acceleration

Enabling hardware acceleration using VA-API dramatically reduces
`ffmpeg` CPU usage.  For this to work, the Frigate container needs
access to the DRI device node.
master
Dustin 2023-09-19 10:46:52 -05:00
parent ddd137a2e9
commit b80bee461a
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ Volume=/var/lib/frigate/media:/media/frigate:rw,z
Volume=/var/lib/frigate/tmp:/tmp:rw,z
Volume=/var/lib/frigate/config:/config:rw,z
AddDevice=/dev/apex_0
AddDevice=/dev/dri/renderD128
Network=host
[Service]