linux poison RSS
linux poison Email

Script to convert .wav to .mp3

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




25 comments:

Post a Comment

Related Posts with Thumbnails