diff options
Diffstat (limited to 'encode-fbplus.sh')
-rwxr-xr-x | encode-fbplus.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/encode-fbplus.sh b/encode-fbplus.sh index cc0d32e..1e1bfc8 100755 --- a/encode-fbplus.sh +++ b/encode-fbplus.sh @@ -8,9 +8,9 @@ WITH_GSTREAMER=0 URL=http://fbpc5.epfl.ch:8000/fb_192 BITRATE=$1 -DSTPORT=$2 +DST=$2 -if [ "$DSTPORT" == "" ] +if [ "$DST" == "" ] then echo "Usage:" echo " $0 <bitrate> <zmq destination>" @@ -26,11 +26,11 @@ 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 else mpg123 -s $URL |\ sox -t raw -r 44100 -e signed -b 16 -c 2 - -t raw - rate 32k |\ - dabplus-enc-file-zmq \ - -i /dev/stdin -r 32000 -b $BITRATE -f raw -a -o $DSTPORT + dabplus-enc \ + -i /dev/stdin -r 32000 -b $BITRATE -f raw -a -o $DST fi |