jeltsch's blog

Using lame to create mp3s from wavs

Using Audacity I converted one of the ripped WAVs into an MP3. However there was no possibility to batch convert WAV files. Thus I started to use lame from the command line. I created a shell script (encode.sh):
while [ $ -ge 1 ]; do
infn=$1
outfn="${infn%%.wav}.mp3"
echo $outfn
lame -v $infn $outfn
shift 1
done
It does the batch converting:

How to install perl modules

In order to check, whether a specific perl module is installed (e.g. Image::Info for this example) type:
perl -MImage::Info -e1 If it is not installed, download it from CPAN, untar, change into the install directory and install like this:
perl Makefile.PL
make
make test
and then as root:
make install

Pages