From 5c1dbe77c08f08083376bebb2d0f510ad8442dff Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 6 Oct 2024 16:00:15 +0200 Subject: [PATCH] re-inject audio encoders --- tests/pipewire/tc_pw_audio.sh | 8 +++++++- tests/pipewire/tc_pw_video.sh | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/pipewire/tc_pw_audio.sh b/tests/pipewire/tc_pw_audio.sh index 97708f1..72022a9 100755 --- a/tests/pipewire/tc_pw_audio.sh +++ b/tests/pipewire/tc_pw_audio.sh @@ -6,7 +6,13 @@ set -e source /etc/telecaster/telecaster.conf -gst-launch-1.0 pipewiresrc client-name="audio_streaming" target-object="audio_processing" ! audio/x-raw, format=F32LE, channels=$AUDIO_CHANNELS \ +gst-launch-1.0 pipewiresrc client-name="audio_streaming" ! audio/x-raw, format=F32LE, channels=$AUDIO_CHANNELS \ + ! queue ! audioconvert \ + ! queue ! audiocheblimit mode=high-pass cutoff=120 poles=4 \ + ! queue ! volume volume=$AUDIO_GAIN_PRE \ + ! queue ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \ + ! queue ! volume volume=$AUDIO_GAIN_POST \ + ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \ ! queue ! audioconvert \ ! queue ! lamemp3enc quality=$AUDIO_MP3_QUALITY \ ! queue ! shout2send ip=127.0.0.1 port=8000 password=source2parisson mount=telecaster_live.mp3 diff --git a/tests/pipewire/tc_pw_video.sh b/tests/pipewire/tc_pw_video.sh index 7fb9403..1ac5fb8 100755 --- a/tests/pipewire/tc_pw_video.sh +++ b/tests/pipewire/tc_pw_video.sh @@ -11,7 +11,13 @@ gst-launch-1.0 pipewiresrc client-name="video_streaming" \ ! queue ! videoconvert \ ! queue ! vp8enc threads=4 deadline=2 target-bitrate=2000000 \ ! queue ! muxout. \ - pipewiresrc client-name="video_streaming" target-object="audio_processing" ! audio/x-raw, format=F32LE, channels=$AUDIO_CHANNELS \ + pipewiresrc client-name="video_streaming" ! audio/x-raw, format=F32LE, channels=$AUDIO_CHANNELS \ + ! queue ! audioconvert \ + ! queue ! audiocheblimit mode=high-pass cutoff=120 poles=4 \ + ! queue ! volume volume=$AUDIO_GAIN_PRE \ + ! queue ! audiodynamic characteristics=soft-knee mode=compressor threshold=0.125 ratio=0.125 \ + ! queue ! volume volume=$AUDIO_GAIN_POST \ + ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.95 ratio=0.001 \ ! queue ! audioconvert \ ! queue ! opusenc bitrate=$AUDIO_OPUS_BITRATE \ ! queue ! muxout. \ -- 2.39.5