add script to encode to mp3

Please enter the commit message for your changes. Lines starting
This commit is contained in:
Donald Burr 2015-02-20 23:06:23 -08:00
parent 11eb18f5ef
commit e5f6d64013

16
acatcher/make_mp3.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
if [ ! -z "$LAME_PRESET" ]; then
PRESET="$LAME_PRESET"
else
PRESET="studio"
fi
if [ ! -z "$1" ]; then
MP3NAME="`basename \"$1\" .wav`.mp3"
lame --preset $PRESET "$1" "$MP3NAME"
else
for F in *.wav; do
MP3NAME="`basename \"$F\" .wav`.mp3"
lame --preset $PRESET "$F" "$MP3NAME"
done
fi