Add script to make flacs
This commit is contained in:
parent
7ecc4b6226
commit
21855f57fa
1 changed files with 16 additions and 0 deletions
16
acatcher/make_flac.sh
Executable file
16
acatcher/make_flac.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
if [ ! -z "$FLAC_LEVEL" ]; then
|
||||
LEVEL="-$FLAC_LEVEL"
|
||||
else
|
||||
LEVEL="-8"
|
||||
fi
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
FLACNAME="`basename \"$1\" .wav`.flac"
|
||||
flac $LEVEL "$1" "$FLACNAME"
|
||||
else
|
||||
for F in *.wav; do
|
||||
FLACNAME="`basename \"$F\" .wav`.flac"
|
||||
flac $LEVEL "$F" "$FLACNAME"
|
||||
done
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue