From 1c22b3a342d42613b714ad43b0309b8b3493aa92 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 13 Oct 2022 17:16:28 -0600 Subject: [PATCH] Start restream on frigate start --- frigate/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frigate/app.py b/frigate/app.py index b97f580a0..1ea64ef3b 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -25,6 +25,7 @@ from frigate.object_processing import TrackedObjectProcessor from frigate.output import output_frames from frigate.plus import PlusApi from frigate.record import RecordingCleanup, RecordingMaintainer +from frigate.restream import RestreamApi from frigate.stats import StatsEmitter, stats_init from frigate.storage import StorageMaintainer from frigate.version import VERSION @@ -163,6 +164,10 @@ class FrigateApp: self.plus_api, ) + def init_restream(self) -> None: + self.restream = RestreamApi(self.config) + self.restream.add_cameras() + def init_mqtt(self) -> None: self.mqtt_client = create_mqtt_client(self.config, self.camera_metrics) @@ -363,6 +368,7 @@ class FrigateApp: self.start_camera_capture_processes() self.init_stats() self.init_web_server() + self.init_restream() self.start_mqtt_relay() self.start_event_processor() self.start_event_cleanup()