On Friday 30 May 2003 10:15 am, Benjamin Jeeves said,: > Hi all > > is there a tool for converting mp3 to wav format ? > > > Thank You > > Benjamin
Below is a little script that was provided to me by 'bones' earlier this year. I've been using it and have't had any problems. Hope this helps. --------------------------------------------------------------------------------- For converting mp3 to wav, here is some little script. (it's an early one so don't judge me by it - it's patchwork from others scripts, but it did it for me) You need mpg123 and sox installed (which I guess is pretty much standard). Put it into a text file and make it executable with 'chmod u+x mp32wav' and move it into /usr/bin or something in your PATH. If you start the script with "mp32wav *.mp3" in a folder with mp3s or from the Nautilus script folder) it creates a subfolder "wav" and converts all mp3 into wav files with the same name exept '.mp3' becomes '.wav' --------------- #!/bin/bash # mp32wav mp3file="$*" mkdir wav for file in "$@" ; do #echo "$file" wavfile=`echo "$file" | sed s/\\.mp3/.wav/` printf "%-50s %-50s\n" "$file" "--> $wavfile" # to encode wav-->mp3 #lame -h "$file" "$mp3file" # to encode mp3-->wav mpg123 -b 10000 -s "$file" | sox -t raw -r 44100 -s -w -c2 - "wav/$wavfile" done --------------- -- Regards Chris Registered Linux user #283774 @ http://counter.li.org 7:18pm up 8 days, 23:18, 2 users, load average: 0.00, 0.05, 0.04
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com