aboutsummaryrefslogtreecommitdiffstats
path: root/encode-alsasrc-gst-dabplus.sh
diff options
context:
space:
mode:
Diffstat (limited to 'encode-alsasrc-gst-dabplus.sh')
-rwxr-xr-xencode-alsasrc-gst-dabplus.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/encode-alsasrc-gst-dabplus.sh b/encode-alsasrc-gst-dabplus.sh
index 9affc5a..7ec5d9e 100755
--- a/encode-alsasrc-gst-dabplus.sh
+++ b/encode-alsasrc-gst-dabplus.sh
@@ -3,12 +3,12 @@
# Read audio from ALSA input using gstreamer, and encode with fdk-aac-dabplus-zmq
#
BITRATE=$1
-DSTPORT=$2
+DST=$2
QUEUEDELAY=400000 #400ms
GSTREAMER_VERSION="0"
-if [ "$DSTPORT" == "" ]
+if [ "$DST" == "" ]
then
echo "Usage:"
echo " $0 <bitrate> <zmq destination>"
@@ -23,8 +23,8 @@ then
audio/x-raw, 'rate=48000,format=S16LE,channels=2' ! \
queue "max-size-time=$QUEUEDELAY" ! \
filesink location="/dev/stdout" | \
- dabplus-enc-file-zmq \
- -i /dev/stdin -b $BITRATE -f raw -a -o "${DSTPORT}"
+ dabplus-enc \
+ -i /dev/stdin -b $BITRATE -f raw -a -o "${DST}"
elif [ "$GSTREAMER_VERSION" == "0" ]
then
@@ -33,7 +33,7 @@ then
audio/x-raw-int, 'rate=48000,format=S16LE,channels=2' ! \
queue "max-size-time=$QUEUEDELAY" ! \
filesink location="/dev/stdout" | \
- dabplus-enc-file-zmq \
- -i /dev/stdin -b $BITRATE -f raw -a -o "${DSTPORT}"
+ dabplus-enc \
+ -i /dev/stdin -b $BITRATE -f raw -a -o "${DST}"
fi