[ale] converting a directory of mp3's to wav's

Pete Hardie pete.hardie at sciatl.com
Thu Jan 9 14:50:36 EST 2003


Jason Vinson wrote:
> Hi folks,
> 
> Can anyone help me with a quick command to decode all mp3's in a
> directory to wav's?  Currently I use this:
> 
> mpg123 -s blah.mp3 | sox -t raw -r 44100 -s -w -c 2 - blah.wav
> 
> but I am doing it for individual files (in this case, blah.mp3).  Can
> someone loop me?

for i in `ls *.mp3`
do
     fname=`basename $i .mp3`
     mpg123 -s $i | sox -t raw -r 44100 -s -w -c 2 - $fname.wav
done




-- 
Pete Hardie                   |   Goalie, DVSG Dart Team
     posting from, but not     |
	speaking for:             |
Scientific Atlanta, Digital Video Services Group



     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer. 

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list