mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
fix ffmpeg config for env vars
This commit is contained in:
parent
17c26a3457
commit
c8b7755bff
@ -78,6 +78,9 @@ class FrigateApp:
|
|||||||
self.config = user_config.runtime_config
|
self.config = user_config.runtime_config
|
||||||
|
|
||||||
for camera_name in self.config.cameras.keys():
|
for camera_name in self.config.cameras.keys():
|
||||||
|
# generage the ffmpeg commands
|
||||||
|
self.config.cameras[camera_name].create_ffmpeg_cmds()
|
||||||
|
|
||||||
# create camera_metrics
|
# create camera_metrics
|
||||||
self.camera_metrics[camera_name] = {
|
self.camera_metrics[camera_name] = {
|
||||||
"camera_fps": mp.Value("d", 0.0),
|
"camera_fps": mp.Value("d", 0.0),
|
||||||
|
|||||||
@ -549,8 +549,6 @@ 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user