From: Guillaume Pellerin Date: Fri, 30 May 2025 12:53:37 +0000 (+0200) Subject: update boot seaquence X-Git-Tag: 4.1.0~24 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2e19ba007424ff8fd1dc62e1243545f24b79b026;p=telecaster-server.git update boot seaquence --- diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index 8b026f4..38f2338 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -113,7 +113,6 @@ class TeleCaster(Thread): **self.conf["server"]) stream = TeleCasterGStream(pipeline) stream.start() - time.sleep(BOOT_TIME_DELAY) deefuzzer_local_conf = deepcopy(deefuzzer_station_conf) relay_url = "http://{ip}:{port}/telecaster_live_{id}.webm".format(**video, **self.conf["server"]) @@ -132,6 +131,7 @@ class TeleCaster(Thread): # print(deefuzzer_local_conf) deefuzzer_global_conf["deefuzzer"]["station"].append(deefuzzer_local_conf) + time.sleep(BOOT_TIME_DELAY) self.deefuzzer_start(deefuzzer_global_conf, self.deefuzzer_video_conf_file) def audio_start(self): @@ -146,7 +146,6 @@ class TeleCaster(Thread): **self.conf["server"]) stream = TeleCasterGStream(pipeline) stream.start() - time.sleep(BOOT_TIME_DELAY) deefuzzer_local_conf = deepcopy(deefuzzer_station_conf) # print(deefuzzer_local_conf) @@ -155,11 +154,12 @@ class TeleCaster(Thread): deefuzzer_local_conf["record"]["dir"] = self.conf["record_dir"] + os.sep + "mp3" deefuzzer_global_conf["deefuzzer"]["station"].append(deefuzzer_local_conf) + time.sleep(BOOT_TIME_DELAY) self.deefuzzer_start(deefuzzer_global_conf, self.deefuzzer_audio_conf_file) def run(self): - self.video_start() self.audio_start() + self.video_start() def main():