Converting mp3 to wav
Jay
plug-discuss@lists.plug.phoenix.az.us
Mon, 28 Jan 2002 09:47:11 -0700 (MST)
There are a couple of easy ways to do this. To do it using your script,
this would do it (assuming your script is called "mp32wav"):
cd /path/to/mp3s/
for i in `ls -1 *.mp3`; do mp32wav $i $i.wav; done
This very simplisitc approach would give you all the WAVs named *.mp3.wav
- but that shouldn't be a big deal. Another approach is to create a
playlist in XMMS, and change the Output Plugin to "Disk Writer." That
works quite well too.
~Jay
On Mon, 28 Jan 2002, Anthony Hologounis wrote:
> Hello
>
> I have been using this script to convert my mp3's to wav so I burn my own
> cd's.
> #!/bin/bash
> # mp32wav
> mpg123 -b 10000 -s "$1" | sox -t raw -r 44100 -s -w -c2 - "$2"
>
> Its great to use when there is only a couple of files. Its tedious when you
> have alot of files.
> I would like to convert a whole directory of mp3's to wav's. Is there a way
> to automate the script to so this?
>
> Anthony
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
--
~Jay