diff options
Diffstat (limited to 'encode-alsa32.sh')
-rwxr-xr-x | encode-alsa32.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/encode-alsa32.sh b/encode-alsa32.sh new file mode 100755 index 0000000..a5ebe84 --- /dev/null +++ b/encode-alsa32.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Read audio from ALSA input using sox, and encode with fdk-aac-dabplus-zmq +# +BITRATE=$1 +DST=$2 +ALSASRC="default" + +if [ "$DST" == "" ] +then + echo "Usage:" + echo " $0 <bitrate> <zmq destination>" + exit 1 +fi + +../fdk-aad-dabplus/dabplus-enc-alsa-zmq -d $ALSASRC -c 2 -r 32000 -b $BITRATE -o $DST -p 48 |