From ab7d24f360dbe88fc30cc1274badce068241a84c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 11 Feb 2014 17:32:48 +0100 Subject: add 32khz srate script example --- encode-alsasrc-sox32.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 encode-alsasrc-sox32.sh diff --git a/encode-alsasrc-sox32.sh b/encode-alsasrc-sox32.sh new file mode 100755 index 0000000..66f9c1f --- /dev/null +++ b/encode-alsasrc-sox32.sh @@ -0,0 +1,19 @@ +#!/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 " + exit 1 +fi + +sox -t alsa $ALSASRC -b 16 -t raw - rate 32k channels 2 | \ + ../fdk-aac-dabplus/aac-enc-dabplus-zmq -r 32000 \ + -i /dev/stdin -b $BITRATE -f raw -a -o $DST + -- cgit v1.2.3