From 84b099262e529a33b415ddd211b05409c0386304 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 30 May 2025 12:52:36 +0200 Subject: [PATCH] incresae thread boot time delay --- bin/streaming/telecaster.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index c518088..8b026f4 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -41,6 +41,8 @@ AUDIO_PIPELINE_BASE="""{audio_source} {audio_options} client-name="mp3_audio_str ! queue ! shout2send ip={ip} port={port} password={password} mount=telecaster_live.mp3 """ +BOOT_TIME_DELAY = 3 + class TeleCasterGStream(Thread): @@ -111,7 +113,7 @@ class TeleCaster(Thread): **self.conf["server"]) stream = TeleCasterGStream(pipeline) stream.start() - time.sleep(1) + 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"]) @@ -144,7 +146,7 @@ class TeleCaster(Thread): **self.conf["server"]) stream = TeleCasterGStream(pipeline) stream.start() - time.sleep(1) + time.sleep(BOOT_TIME_DELAY) deefuzzer_local_conf = deepcopy(deefuzzer_station_conf) # print(deefuzzer_local_conf) -- 2.39.5