]> git.parisson.com Git - telecaster-server.git/commitdiff
remove more blocking audio queues, less sleep
authorGuillaume Pellerin <pellerin@parisson.com>
Sun, 1 Jun 2025 13:56:53 +0000 (15:56 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 8 Jun 2025 22:40:58 +0000 (00:40 +0200)
bin/streaming/telecaster.py
bin/streaming/telecaster.sh

index 1182d62184cf037fd4501dc1f7b8dce275a75eb5..81192ae69c0f785f27b70628a75a463038f062bb 100755 (executable)
@@ -23,8 +23,8 @@ VIDEO_PIPELINE_BASE="""{video_source} {video_options} client-name="webm_streamin
     ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \
     ! volume volume={gain_post} \
     ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \
-    ! queue ! audioconvert \
-    ! queue ! opusenc bitrate={opus_bitrate} \
+    ! audioconvert \
+    ! opusenc bitrate={opus_bitrate} \
     ! queue ! muxout. \
     webmmux streamable=true name=muxout \
     ! queue ! shout2send ip={ip} port={port} password={password} mount=telecaster_live_{id}.webm
@@ -36,12 +36,12 @@ AUDIO_PIPELINE_BASE="""{audio_source} {audio_options} client-name="mp3_audio_str
     ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \
     ! volume volume={gain_post} \
     ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \
-    ! queue ! audioconvert \
-    ! queue ! lamemp3enc quality={mp3_quality} \
+    ! audioconvert \
+    ! lamemp3enc quality={mp3_quality} \
     ! queue ! shout2send ip={ip} port={port} password={password} mount=telecaster_live.mp3
 """
 
-BOOT_TIME_DELAY = 5
+BOOT_TIME_DELAY = 2
 
 DEFAULT_CONFIG_FILE = "/etc/telecaster/telecaster.yml"
 
index 28680be2cce2d57f022ddd443565a7f0445931ef..f41dd3b9ca93204c9282bf25bad855e24d91b563 100755 (executable)
@@ -11,7 +11,7 @@ PATH=$PATH:/srv/telecaster/telecaster-server/bin/streaming/
 # jackd $JACK_OPTIONS &
 # qjackctl &
 
-sleep 30
+sleep 2
 
 pipewire &
 qpwgraph &