diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-06-16 20:46:33 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-06-16 20:46:33 +0200 |
commit | f5d94805b7f42f20c0468e545741866503b9e17f (patch) | |
tree | 7a99a030d0b4f8f0325c1bbacd428cfe7e9899ae /encode-url-gst-dabplus.sh | |
parent | 3926a43cb0c92a5905dce7157d38b0743cff49bc (diff) | |
download | mmbtools-aux-f5d94805b7f42f20c0468e545741866503b9e17f.tar.gz mmbtools-aux-f5d94805b7f42f20c0468e545741866503b9e17f.tar.bz2 mmbtools-aux-f5d94805b7f42f20c0468e545741866503b9e17f.zip |
encode- scripts use dabplus-enc
Diffstat (limited to 'encode-url-gst-dabplus.sh')
-rwxr-xr-x | encode-url-gst-dabplus.sh | 14 |
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 |