populate camera.record.export.hwaccel_args with a cascade up to camera then global if 'auto'

This commit is contained in:
Andrew Roberts 2024-10-28 00:02:12 -04:00
parent 7ee8f10302
commit 5f417a6bfa

View File

@ -545,6 +545,9 @@ class FrigateConfig(FrigateBaseModel):
if camera_config.ffmpeg.hwaccel_args == "auto": if camera_config.ffmpeg.hwaccel_args == "auto":
camera_config.ffmpeg.hwaccel_args = self.ffmpeg.hwaccel_args 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: for input in camera_config.ffmpeg.inputs:
need_detect_dimensions = "detect" in input.roles and ( need_detect_dimensions = "detect" in input.roles and (
camera_config.detect.height is None camera_config.detect.height is None