Click to See Complete Forum and Search --> : Lame encoder/linux/ convert all waves in a dir ?


Lacan
05-03-2002, 09:52 AM
hi.


the problem:

i have like 20 wave files in a directory. track01.wav - track20.wav

now im using the shell in linux to convert all files manually. i type stuff like "lame --alt-preset extreme track01.wav trackname.mp3" to convert it. now i wondered how to let lame convert all wave files with the same settings. i tryed "lame --alt-preset extreme *.wav *.mp3" but it didnt worked. any ideas ? thanks

and yea, another question. any way of letting cdparanoia in linux use the cdb/freedb so it renames the tracks corectly not track01.wav-track20.wav so i dont have to rename them all manually ?

thank you in advance.

:)

ScRapZ_1
05-03-2002, 11:09 AM
Wow... funny that you should ask this, because I'm writing a script that does this very same thing! (Maybe not the CDDB service, yet, but it also rips cd's into .wav format)

How about I give you a snippet of my script?


#!/bin/sh

prog2="/usr/local/bin/lame"
nice="0"
# change the next number to the bitrate you want
mp3_kbps=128

echo
echo 'Encoding .wav files into .mp3 format using $mp3_kbps bitrate... '
echo '-----------------------------------------------------------------------'

for i in ""track??.wav;
do
nice -n $nice $prog2 --cbr -b $mp3_kbps "$i";
# remove this next line if you want to keep the origional .wav files
rm -f "$i"
done


...that should do it. My script that I'm working on lets you rip certain tracks (or even the whole CD) and then encodes it to mp3 using a bitrate you choose. I've only been working on it for just over a day, but its already very usable. If you want this script, just ask :D

TTFN,
ScRapZ_1 :p

Lacan
05-03-2002, 01:14 PM
gimme :D

but i want lame to encode in "lame --alt-preset extreme"

ScRapZ_1
05-03-2002, 01:25 PM
Originally posted by Lacan:
<STRONG>gimme :D

but i want lame to encode in "lame --alt-preset extreme"</STRONG>

Ok... its messy, but usable. Get it here (http://scrapz.0catch.com/files/ripcd). Just run the file without any parameters for a quick how-to-use it. It defaults to read from /dev/cdrom - if you want to change that, edit the file.

And "lame --alt-preset extreme" - maybe if I knew what that was... I'd do something! Sounds like it cranks something up...

TTFN,
ScRapZ_1 :p

ScRapZ_1
05-03-2002, 01:32 PM
"--alt-preset extreme" If you have extremely good hearing and similar equipment, this preset will generally provide slightly higher quality than the "standard" mode.


...I see... what exactly does it do? This script can do 320kbps at 44khz. Is there a higher quality... I never knew there was!

Lacan
05-03-2002, 04:19 PM
my fav is extreme. it does VBR up to 320kb. www.r3mix.net (http://www.r3mix.net)

ScRapZ_1
05-04-2002, 06:07 AM
Ahh I see... variable bitrates... maybe I can add an option for that too :D

Lacan
05-07-2002, 03:08 PM
yes do that.

Lacan
05-13-2002, 02:29 PM
done ?