From f4fd4b1f5049848cf5b13410549c360970a854c7 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 11 Mar 2022 09:32:39 +0100 Subject: [PATCH] add audio test --- .../.fluxbox/scripts/tc_audio_jack_test.sh | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 src/home/telecaster/.fluxbox/scripts/tc_audio_jack_test.sh diff --git a/src/home/telecaster/.fluxbox/scripts/tc_audio_jack_test.sh b/src/home/telecaster/.fluxbox/scripts/tc_audio_jack_test.sh new file mode 100755 index 0000000..f5ffbd5 --- /dev/null +++ b/src/home/telecaster/.fluxbox/scripts/tc_audio_jack_test.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -e + +# Audio +AUDIO_CHANNELS=2 +AUDIO_OPUS_BITRATE=96000 +AUDIO_MP3_QUALITY=4.0 + +LOCAL_DIR=$(dirname "$0") +if [ -f $LOCAL_DIR/.env ]; then + source $LOCAL_DIR/.env +fi + +# GST launch +gst-launch-1.0 filesrc location=/home/guyom/Sounds/test/pc_test-2.mp3 \ + ! queue ! decodebin \ + ! queue ! audioconvert \ + ! queue ! rgvolume pre-amp=-24 \ + ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.125 ratio=6 \ + ! queue ! rglimiter \ + ! queue ! pulsesink + -- 2.39.5