From 7b78770f1a624ec630de638351b5862a22fb17e5 Mon Sep 17 00:00:00 2001 From: Andrew Roberts Date: Mon, 28 Oct 2024 00:02:12 -0400 Subject: [PATCH] populate camera.record.export.hwaccel_args with a cascade up to camera then global if 'auto' --- frigate/config/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frigate/config/config.py b/frigate/config/config.py index 6342c13bf..43861556c 100644 --- a/frigate/config/config.py +++ b/frigate/config/config.py @@ -523,6 +523,9 @@ class FrigateConfig(FrigateBaseModel): if camera_config.ffmpeg.hwaccel_args == "auto": camera_config.ffmpeg.hwaccel_args = self.ffmpeg.hwaccel_args + if camera_config.record.export.hwaccel_args == "auto": + camera_config.record.export.hwaccel_args = camera_config.ffmpeg.hwaccel_args + for input in camera_config.ffmpeg.inputs: need_detect_dimensions = "detect" in input.roles and ( camera_config.detect.height is None