]> git.parisson.com Git - telecaster-server.git/commitdiff
add no-video option
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 26 Sep 2025 12:31:30 +0000 (14:31 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 26 Sep 2025 12:31:30 +0000 (14:31 +0200)
bin/streaming/telecaster.py

index 14996df7e4d4d2bb5964768f37cf1fd83fa63915..0545dac7305a988d2c621c976a0d17965bc8c38f 100755 (executable)
@@ -135,6 +135,7 @@ class TeleCaster(Thread):
         self.dry_run = args["dry_run"]
         self.tools = args["tools"]
         self.engine = args["engine"]
+        self.no_video = args["no_video"]
         self.conf = yaml.safe_load(conf_file)["telecaster"]
         self.stream_types = ["audio", "video"]
         self.deefuzzer_video_conf_file = "/tmp/telecaster_deefuzzer_webm_monitor.yml"
@@ -298,7 +299,8 @@ class TeleCaster(Thread):
             self.engine_start()
         if self.tools:
             self.audio_tools_start()
-        self.video_start()
+        if not self.no_video:
+            self.video_start()
         self.audio_start()
         self.connect()
 
@@ -311,6 +313,7 @@ def main():
     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("-e", "--engine", help="start engine", action="store_true")
+    parser.add_argument("-nv", "--no-video", help="no video", action="store_true")
     args = vars(parser.parse_args())
     if os.path.exists(DEFAULT_CONFIG_FILE) and not args["config"]:
         args['config'] = DEFAULT_CONFIG_FILE