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.sh44
1 files changed, 0 insertions, 44 deletions
diff --git a/encode-url-gst-dabplus.sh b/encode-url-gst-dabplus.sh
deleted file mode 100755
index b05d7bb..0000000
--- a/encode-url-gst-dabplus.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-#
-# Read a URL using gstreamer, and encode with fdk-aac-dabplus-enc
-#
-URL=$1
-BITRATE=$2
-DST=$3
-QUEUEDELAY=400000 #400ms
-
-GSTREAMER_VERSION="1"
-
-if [ "$DST" == "" ]
-then
- echo "Usage:"
- echo " $0 <url> <bitrate> <zmq destination>"
- exit 1
-fi
-
-
-if [ "$GSTREAMER_VERSION" == "1" ]
-then
- gst-launch-1.0 -q \
- uridecodebin uri=$URL ! \
- queue "max-size-time=$QUEUEDELAY" ! \
- audioresample quality=8 ! \
- audioconvert ! \
- audio/x-raw, 'rate=48000,format=S16LE,channels=2' ! \
- filesink location="/dev/stdout" | \
- dabplus-enc \
- -i /dev/stdin -b $BITRATE -f raw -a -o "${DST}"
-
-elif [ "$GSTREAMER_VERSION" == "0" ]
-then
- gst-launch -q \
- uridecodebin uri=$URL ! \
- queue "max-size-time=$QUEUEDELAY" ! \
- audioresample quality=8 ! \
- audioconvert ! \
- audio/x-raw-int, 'rate=48000,format=S16LE,channels=2' ! \
- filesink location="/dev/stdout" | \
- dabplus-enc \
- -i /dev/stdin -b $BITRATE -f raw -a -o "${DST}"
-fi
-