aboutsummaryrefslogtreecommitdiffstats
path: root/encode-alsa32.sh
blob: 248dc9ea9574487b3558a11a62dacc2a4b65635d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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

dabplus-enc-alsa-zmq -d $ALSASRC -c 2 -r 32000 -b $BITRATE -o $DST -p 48