Put all your .wav files (that you want to convert) into a folder and execute the following script from within this folder, make sure to make this script executable (chmod 777 wav2mp3.sh)
#!/bin/sh
# name of this script: wav2mp3.sh
# wav to mp3
for i in *.wav; do
if [ -e "$i" ]; then
file=`basename "$i" .wav`
lame -h -b 192 "$i" "$file.mp3"
fi
done
Dependencies
faad2 and lame
Tuesday, January 6, 2009
Subscribe to:
Post Comments (Atom)
1 comments:
why do you have to convert to mp3? use ogg!
Post a Comment