]> git.parisson.com Git - telecaster-server.git/commitdiff
more gst audio options
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 9 Jun 2025 06:28:28 +0000 (08:28 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 9 Jun 2025 06:28:28 +0000 (08:28 +0200)
bin/streaming/telecaster.py
etc/telecaster/telecaster.yml

index 9f02611779cdbeb85b58d643ecaa85663467d29d..aa5d75799aeba1c68cd0f36591e05a7f9a9ccdda 100755 (executable)
@@ -18,11 +18,11 @@ VIDEO_PIPELINE_BASE="""{video_source} {video_options} \
     ! queue ! vp8enc threads=4 deadline=2 target-bitrate={vp8_bitrate} \
     ! muxout. \
     {audio_source} {audio_options} client-name="webm_streaming_{id}_audio" ! audio/x-raw, format=F32LE, channels={channels} \
-    ! queue ! audiocheblimit mode=high-pass cutoff=120 poles=4 \
+    ! queue ! audiocheblimit mode=high-pass cutoff={hp_frequency} poles={hp_poles} \
     ! queue ! volume volume={volume_pre} \
-    ! queue ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \
+    ! queue ! audiodynamic characteristics=soft-knee mode=compressor threshold={comp_threshold} ratio={comp_ratio} \
     ! queue ! volume volume={volume_post} \
-    ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \
+    ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold={limit_threshold} ratio={limit_ratio} \
     ! queue ! audioconvert \
     ! queue ! opusenc bitrate={opus_bitrate} \
     ! muxout. \
@@ -32,11 +32,11 @@ VIDEO_PIPELINE_BASE="""{video_source} {video_options} \
 
 AUDIO_PIPELINE_BASE="""{audio_source} {audio_options} client-name="mp3_streaming_audio" \
     ! audio/x-raw, format=F32LE, channels={channels} \
-    ! queue ! audiocheblimit mode=high-pass cutoff=120 poles=4 \
+    ! queue ! audiocheblimit mode=high-pass cutoff={hp_frequency} poles={hp_poles} \
     ! queue ! volume volume={volume_pre} \
-    ! queue ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \
+    ! queue ! audiodynamic characteristics=soft-knee mode=compressor threshold={comp_threshold} ratio={comp_ratio} \
     ! queue ! volume volume={volume_post} \
-    ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \
+    ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold={limit_threshold} ratio={limit_ratio} \
     ! queue ! audioconvert \
     ! queue ! lamemp3enc quality={mp3_quality} \
     ! queue ! shout2send ip={ip} port={port} password={password} mount=telecaster_live.mp3 > /dev/null
index 5088954cb6dc28b64266f814fa1412a3cf298f23..e0dab18530e77782b4938a4114090ba3969a5254 100644 (file)
@@ -94,6 +94,12 @@ telecaster:
       mp3_quality: 4.0
       volume_pre: 2.5
       volume_post: 1.5
+      hp_frequency: 120
+      hp_poles: 4
+      comp_threshold: 0.125
+      comp_ratio: 0.125
+      limit_threshold: 0.95
+      limit_ratio: 0.001
     deefuzzer:
       log: /var/log/telecaster/telecaster_mp3_monitor.log
       m3u: /tmp/telecaster_mp3_monitor.m3u