From 7a011714df59b83cd1d43f980a7796ef72719f53 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 9 Jun 2025 08:28:28 +0200 Subject: [PATCH] more gst audio options --- bin/streaming/telecaster.py | 12 ++++++------ etc/telecaster/telecaster.yml | 6 ++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index 9f02611..aa5d757 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -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 diff --git a/etc/telecaster/telecaster.yml b/etc/telecaster/telecaster.yml index 5088954..e0dab18 100644 --- a/etc/telecaster/telecaster.yml +++ b/etc/telecaster/telecaster.yml @@ -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 -- 2.39.5