Slackware can't encode to MP3 out of the box, it is a license and patent issue.
LAME does not require any dependencies. Try this package:
http://taper.alienbase.nl/mirrors/pe...ame/pkg/13.37/ (change "pkg" to "pkg64" if you run 64-bit Slackware).
You could create a script to convert all WAV files to mp3 in one command. Something like this:
Code:
#!/bin/sh
# Copy this script: to /usr/local/bin/wav2mp3.sh
# Make it executable: chmod +x /usr/local/bin/wav2mp3.sh
for i in *.wav; do
if [ -e "$i" ]; then
file=$(basename "$i" .wav)
lame -h -b 192 "$i" "$file.mp3"
fi
done
This will work fine as long as the WAV files do not contain spaces. Fir files with spaces, this should work - you run it in the directory where you have your WAV files (just like the first example which you also have to run from inside the directory with the WAV files):
Code:
#!/bin/sh
# Copy this script: to /usr/local/bin/wav2mp3.sh
# Make it executable: chmod +x /usr/local/bin/wav2mp3.sh
find . -name '*.wav' -print0 | xargs -0 -i{} sh -c "FILE=\"{}\" ; lame -h -b 192 \"\$FILE\" \"\${FILE%wav}mp3\""
Eric