]> git.parisson.com Git - telecaster-server.git/commitdiff
incresae thread boot time delay
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 30 May 2025 10:52:36 +0000 (12:52 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 30 May 2025 10:52:36 +0000 (12:52 +0200)
bin/streaming/telecaster.py

index c5180885a8c9ac422bf3988ee21339c1d1482844..8b026f4e061580c6887d7de490a0eb6279ce5efe 100755 (executable)
@@ -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)