[linux-audio-user] Re-encoding Stereo mp3's into Mono mp3's
    Frank Barknecht 
    fbar at footils.org
       
    Sun Dec  8 19:23:01 EST 2002
    
    
  
Hi,
Steven P. Ulrick hat gesagt: // Steven P. Ulrick wrote:
> But I have an additional question: how can I type that command so that
> it will re-encode all the mp3's in the folder?  
Use a loop in your shell. Assuming bash it is:
$ help for
for: for NAME [in WORDS ... ;] do COMMANDS; done
[...]
$ for i in *.mp3; do lame $i $i-mono.mp3 ; done
or for nicer filenames use basename:
$ for i in *.mp3; 
 do 
 filename = $(basename $i .mp3)
 lame $i $filename-mono.mp3 
done
ciao
-- 
 Frank Barknecht                               _ ______footils.org__
    
    
More information about the Linux-audio-user
mailing list