Chris wrote:
On Friday 18 March 2005 10:13 pm, Smiley wrote:

On Fri, 18 Mar 2005 22:00:09 -0600

"Mikkel L. Ellertson" <[EMAIL PROTECTED]> wrote:

[EMAIL PROTECTED] wrote:

What do people use for making music cds from mp3s?

k3b

I did with gnome-toaster five years ago :) There's also gdrdao (GUI for cdrdao) wich entirely devoted to this purpose -- Smiley


I got into this thread a little late, kind of behind on reading, anyway, I use the below script in 9.0, called mp32wav.

#!/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


Then, in the .wav directory run "normalize -m *.wav" (normalize must be installed) and finally I used to run an alias file in 9.0 (Thanks Tom Brinkman) but it may not work in 10.1 as I imagine things have changed a bit

alias bacd='cdrecord -v -eject speed=4 dev=0,2,0 -pad -audio *.wav'

Haven't tried the above in 10.1 yet though.

HTH

Chris

Interesting script. But what happens if is did something like:
mp32wav /home/mikkel/mp3/test.mp3

You may want to consider using basename to strip off the .mp3, as well as the path to to source file, when creating the output file name. (I don't even want to get into creating an output directory off the current directory without any checking...)

Mikkel
--

  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to