diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-21 20:08:22 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-21 20:08:22 +0100 |
commit | 0b21a0b19c285da1905263c78dfde4378846ae9f (patch) | |
tree | 5561bc285ada8219fa1fe8967de6d14523aab9e0 /encode-alsasrc-gst-dabplus.sh | |
parent | 78a5d1945922e9d4b9932c9d39d61a9f192bcd56 (diff) | |
download | mmbtools-aux-0b21a0b19c285da1905263c78dfde4378846ae9f.tar.gz mmbtools-aux-0b21a0b19c285da1905263c78dfde4378846ae9f.tar.bz2 mmbtools-aux-0b21a0b19c285da1905263c78dfde4378846ae9f.zip |
Big cleanup
Diffstat (limited to 'encode-alsasrc-gst-dabplus.sh')
-rwxr-xr-x | encode-alsasrc-gst-dabplus.sh | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/encode-alsasrc-gst-dabplus.sh b/encode-alsasrc-gst-dabplus.sh deleted file mode 100755 index 7ec5d9e..0000000 --- a/encode-alsasrc-gst-dabplus.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -# -# Read audio from ALSA input using gstreamer, and encode with fdk-aac-dabplus-zmq -# -BITRATE=$1 -DST=$2 -QUEUEDELAY=400000 #400ms - -GSTREAMER_VERSION="0" - -if [ "$DST" == "" ] -then - echo "Usage:" - echo " $0 <bitrate> <zmq destination>" - exit 1 -fi - - -if [ "$GSTREAMER_VERSION" == "1" ] -then - gst-launch-1.0 -q \ - alsasrc "device=default" ! \ - audio/x-raw, 'rate=48000,format=S16LE,channels=2' ! \ - queue "max-size-time=$QUEUEDELAY" ! \ - filesink location="/dev/stdout" | \ - dabplus-enc \ - -i /dev/stdin -b $BITRATE -f raw -a -o "${DST}" - -elif [ "$GSTREAMER_VERSION" == "0" ] -then - gst-launch -q \ - alsasrc "device=default" ! \ - audio/x-raw-int, 'rate=48000,format=S16LE,channels=2' ! \ - queue "max-size-time=$QUEUEDELAY" ! \ - filesink location="/dev/stdout" | \ - dabplus-enc \ - -i /dev/stdin -b $BITRATE -f raw -a -o "${DST}" -fi - |