create ffmpeg commands on startup

This commit is contained in:
Blake Blackshear 2021-11-08 07:32:29 -06:00 committed by Nick Mowen
parent 3dd3786055
commit 17c26a3457

View File

@ -549,6 +549,8 @@ 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