From b80bee461afe9a329fb9f965a4f701a36799202c Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 19 Sep 2023 10:46:52 -0500 Subject: [PATCH] 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. --- frigate.container | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate.container b/frigate.container index 736a249..86de445 100644 --- a/frigate.container +++ b/frigate.container @@ -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]