create ffmpeg commands on startup

This commit is contained in:
Blake Blackshear
2022-02-20 07:46:09 -07:00
committed by Nick Mowen
parent 3dd3786055
commit 17c26a3457
+2
View File
@@ -549,6 +549,8 @@ class CameraConfig(FrigateBaseModel):
super().__init__(**config) super().__init__(**config)
self._ffmpeg_cmds = self._create_ffmpeg_cmds()
@property @property
def frame_shape(self) -> Tuple[int, int]: def frame_shape(self) -> Tuple[int, int]:
return self.detect.height, self.detect.width return self.detect.height, self.detect.width