From: Guillaume Pellerin Date: Fri, 26 Sep 2025 12:31:30 +0000 (+0200) Subject: add no-video option X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b79aff398c811f3bee3fff579b10827146f5b724;p=telecaster-server.git add no-video option --- diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index 14996df..0545dac 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -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