add script to encode to mp3
Please enter the commit message for your changes. Lines starting
This commit is contained in:
parent
11eb18f5ef
commit
e5f6d64013
1 changed files with 16 additions and 0 deletions
16
acatcher/make_mp3.sh
Executable file
16
acatcher/make_mp3.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue