]> git.parisson.com Git - telecaster-server.git/commitdiff
add audio engine start arg
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 23 Aug 2025 05:01:38 +0000 (07:01 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 23 Aug 2025 05:01:38 +0000 (07:01 +0200)
bin/streaming/telecaster.py

index 9cb5e86eda43575564317f2c05f7f2e2733aa732..663bcee2ebc45c720e3bf2f629c8c6a5b0997b61 100755 (executable)
@@ -123,6 +123,7 @@ class TeleCaster(Thread):
         self.verbose = args["verbose"]
         self.dry_run = args["dry_run"]
         self.tools = args["tools"]
+        self.audio_engine = args["audio_engine"]
         self.conf = yaml.safe_load(conf_file)["telecaster"]
         self.stream_types = ["audio", "video"]
         self.deefuzzer_video_conf_file = "/tmp/telecaster_deefuzzer_webm_monitor.yml"
@@ -278,7 +279,8 @@ class TeleCaster(Thread):
                 command.start()
 
     def run(self):
-        self.audio_engine_start()
+        if self.audio_engine:
+            self.audio_engine_start()
         if self.tools:
             self.audio_tools_start()
         self.video_start()
@@ -293,6 +295,7 @@ def main():
     parser.add_argument("-v", "--verbose", help="verbose", action="store_true")
     parser.add_argument("-d", "--dry-run", help="dry run", action="store_true")
     parser.add_argument("-t", "--tools", help="start tools", action="store_true")
+    parser.add_argument("-ae", "--audio-engine", help="start audio engine", action="store_true")
     args = vars(parser.parse_args())
     if os.path.exists(DEFAULT_CONFIG_FILE) and not args["config"]:
         args['config'] = DEFAULT_CONFIG_FILE