From 5f417a6bfae5fc20ed50b4c91e8b8be3e35ab2ae 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 6ec048acd..e8e36efcc 100644 --- a/frigate/config/config.py +++ b/frigate/config/config.py @@ -545,6 +545,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