From: Guillaume Pellerin Date: Fri, 11 Mar 2022 08:32:39 +0000 (+0100) Subject: add audio test X-Git-Tag: 1.1~3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f4fd4b1f5049848cf5b13410549c360970a854c7;p=telecaster-server.git add audio test --- 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 +