]> git.parisson.com Git - telecaster-server.git/commitdiff
add tools arg
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 23 Aug 2025 04:52:52 +0000 (06:52 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 23 Aug 2025 04:52:52 +0000 (06:52 +0200)
bin/streaming/telecaster.py

index 999bb19199f2218df428a53a72e6837901272ce6..9cb5e86eda43575564317f2c05f7f2e2733aa732 100755 (executable)
@@ -122,6 +122,7 @@ class TeleCaster(Thread):
         conf_file = open(args["config"], 'r')
         self.verbose = args["verbose"]
         self.dry_run = args["dry_run"]
+        self.tools = args["tools"]
         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):
 
     def run(self):
         self.audio_engine_start()
-        self.audio_tools_start()
+        if self.tools:
+            self.audio_tools_start()
         self.video_start()
         self.audio_start()
         self.connect()
@@ -290,6 +292,7 @@ def main():
     parser.add_argument("-c", "--config", help="config file", type=str)
     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")
     args = vars(parser.parse_args())
     if os.path.exists(DEFAULT_CONFIG_FILE) and not args["config"]:
         args['config'] = DEFAULT_CONFIG_FILE