[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (not)lame batch job



> What I can't get done with (not)lame is batch jobs. Bladeenc simply names
> the mp3 after the original file, changing wav to mp3. You can type
> $bladeenc *.wav and all the wav files in the directory get encoded. How can
> you do this with (not)lame, as it requires both input and output name? --hans
> 

for i in *.wav; do lame -h $i; done

lame will append a .mp3 to every file, so the files will have the name
.wav.mp3. to avoid this use:

for i in *.wav; do lame -h $i ${i%.wav}.mp3; done

btw: the most recent version of lame i know of is 3.51

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Linux - the last service pack you'll ever need.


Reply to: