Help - Search - Members - Calendar
Full Version: Lame.exe how to encode all files in dir and subdir
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
geo__
Hi,
I am trying to encode all ripped wav files in dir and subdirs using lame.exe 3.97b1.
I tried razorlame, but it complains about an unkown message received from lame so I switched to dos mode.
When I do this:

lame.exe --preset fast extreme *.wav

only the first file is converted and unfortunately it creates wav.mp3 which I don't like. Also, is there a way to do all the subdirs?

thanks,
geo
Synthetic Soul
You need to do something like:

CODE
FOR /R %G IN (*.wav) DO LAME.EXE -V 0 --vbr-new "%G" "%~dpnG.mp3"

This will systematically send all WAV files in the current directory and subdirectories to LAME.

Edit: Alternatively, save the following as lame-enc.bat and simply drag the root folder onto the batch file icon to encode all files in the dropped directory and its subdirectories.

CODE
FOR /R %1 %%G IN (*.wav) DO LAME.EXE -V 0 --vbr-new "%%G" "%%~dpnG.mp3"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.