From: Guillaume Pellerin Date: Fri, 30 May 2025 10:52:36 +0000 (+0200) Subject: incresae thread boot time delay X-Git-Tag: 4.1.0~26 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=84b099262e529a33b415ddd211b05409c0386304;p=telecaster-server.git incresae thread boot time delay --- 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)