]> git.parisson.com Git - telecaster-server.git/commitdiff
update boot seaquence
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 30 May 2025 12:53:37 +0000 (14:53 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 30 May 2025 12:53:37 +0000 (14:53 +0200)
bin/streaming/telecaster.py

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