HydrogenAudio

Lossy Audio Compression => MP3 => MP3 - General => Topic started by: nastea on 2012-07-30 00:50:28

Title: encode all wav files in one go
Post by: nastea on 2012-07-30 00:50:28
Hi, I'm new here just to find the answer on one question I can't find anywhere else:
Is it possible with LAME to encode all the wave files in one folder to mp3 in one go? Using the command line.

Strange enough, when I give the command:

lame -V 0 *.wav

it stops after one file.
What am I doing wrong?

I hope somebody can help me out.
Title: encode all wav files in one go
Post by: db1989 on 2012-07-30 00:57:25
LAME does not expand wildcards. So, make the Command Prompt do that:
Code: [Select]
for %f in (*.wav) do lame -V0 "%f"
Title: encode all wav files in one go
Post by: nastea on 2012-07-30 01:40:42
LAME does not expand wildcards. So, make the Command Prompt do that:
Code: [Select]
for %f in (*.wav) do lame -V0 "%f"


It works!
Thank you very much, this is exactly what I was looking for.
I know that there are also LAME front-end programs for windows but its just more fun seeing the encoding process in a black dos box.
Thanks again