]> git.parisson.com Git - telecaster-server.git/commitdiff
re-inject audio encoders
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 6 Oct 2024 14:00:15 +0000 (16:00 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 2 Mar 2025 18:04:04 +0000 (19:04 +0100)
tests/pipewire/tc_pw_audio.sh
tests/pipewire/tc_pw_video.sh

index 97708f1fe0acdc300c429cd10fcbf1106a9b307a..72022a991c6a02b7f75a36113c845cfc62fb034d 100755 (executable)
@@ -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
index 7fb9403d03e384634c6ed45053fafe54a068cb04..1ac5fb8089552fc9f2153001a1a0eae979cf8f9a 100755 (executable)
@@ -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. \