diff --git a/frigate/app.py b/frigate/app.py index bf593d6ac..0c9b18d2b 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -78,6 +78,9 @@ class FrigateApp: self.config = user_config.runtime_config for camera_name in self.config.cameras.keys(): + # generage the ffmpeg commands + self.config.cameras[camera_name].create_ffmpeg_cmds() + # create camera_metrics self.camera_metrics[camera_name] = { "camera_fps": mp.Value("d", 0.0), diff --git a/frigate/config.py b/frigate/config.py index 6c9cd2ac6..c210713a2 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -549,8 +549,6 @@ class CameraConfig(FrigateBaseModel): super().__init__(**config) - self._ffmpeg_cmds = self._create_ffmpeg_cmds() - @property def frame_shape(self) -> Tuple[int, int]: return self.detect.height, self.detect.width