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

Robert L. Harris Robert.L.Harris at rdlg.net
Thu Jan 9 14:46:38 EST 2003



Wanna get ugly?  From bash:

for i in `ls -1 *.mp3`
do
mpg123 $i -w `echo $i | sed -e 's/sh/bat/'`
done


Thus spake Jason Vinson (jason.vinson at mindspring.com):

> 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?
> 
> TIA,
> Jason
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale



:wq!
---------------------------------------------------------------------------
Robert L. Harris                     | PGP Key ID: FC96D405
                               
DISCLAIMER:
      These are MY OPINIONS ALONE.  I speak for no-one else.
FYI:
 perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'


 PGP signature




More information about the Ale mailing list