aboutsummaryrefslogtreecommitdiffstats
path: root/encode-url-gst-dabplus.sh
diff options
context:
space:
mode:
Diffstat (limited to 'encode-url-gst-dabplus.sh')
-rwxr-xr-xencode-url-gst-dabplus.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/encode-url-gst-dabplus.sh b/encode-url-gst-dabplus.sh
index 86f822b..b05d7bb 100755
--- a/encode-url-gst-dabplus.sh
+++ b/encode-url-gst-dabplus.sh
@@ -1,15 +1,15 @@
#!/bin/bash
#
-# Read a URL using gstreamer, and encode with fdk-aac-dabplus-zmq
+# Read a URL using gstreamer, and encode with fdk-aac-dabplus-enc
#
URL=$1
BITRATE=$2
-DSTPORT=$3
+DST=$3
QUEUEDELAY=400000 #400ms
GSTREAMER_VERSION="1"
-if [ "$DSTPORT" == "" ]
+if [ "$DST" == "" ]
then
echo "Usage:"
echo " $0 <url> <bitrate> <zmq destination>"
@@ -26,8 +26,8 @@ then
audioconvert ! \
audio/x-raw, 'rate=48000,format=S16LE,channels=2' ! \
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
@@ -38,7 +38,7 @@ then
audioconvert ! \
audio/x-raw-int, 'rate=48000,format=S16LE,channels=2' ! \
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