From a2e96b83c1f2b5a24a54e74ae2f3182e318eb2d0 Mon Sep 17 00:00:00 2001 From: spacebares <57186372+spacebares@users.noreply.github.com> Date: Sat, 24 Jun 2023 13:40:35 -0400 Subject: [PATCH] configurable ffmpeg retry interval rename healthcheck_interval to retry_interval --- frigate/config.py | 4 ++-- frigate/video.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frigate/config.py b/frigate/config.py index b570dbf37..3a796f0fb 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -463,8 +463,8 @@ class FfmpegConfig(FrigateBaseModel): default_factory=FfmpegOutputArgsConfig, title="FFmpeg output arguments per role.", ) - healthcheck_interval: float = Field( - default=10.0, title="Time in seconds in-between ffmpeg health checks." + retry_interval: float = Field( + default=10.0, title="Time in seconds in-between FFmpeg health checks." ) diff --git a/frigate/video.py b/frigate/video.py index 171ef72c0..b28da19b5 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -232,7 +232,7 @@ class CameraWatchdog(threading.Thread): self.frame_shape = self.config.frame_shape_yuv self.frame_size = self.frame_shape[0] * self.frame_shape[1] self.stop_event = stop_event - self.sleeptime = self.config.ffmpeg.healthcheck_interval + self.sleeptime = self.config.ffmpeg.retry_interval def run(self): self.start_ffmpeg_detect()