Duncan Anderson wrote:
JoeHill wrote:

On Sat, 19 Mar 2005 14:37:18 +1100
[EMAIL PROTECTED] disseminated the following:



What do people use for making music cds from mp3s?


Check out ROXDAO. The site is offline right now, but check it out later, very
nice GUI for burning audio CD's, you can see a shot of it on my site.


http://kymatica.com/software.html


I am having problems accessing that URL.

Anyway, for the newbie, k3b works pretty well. If you have lame installed, k3b allows you to create audio cds from mp3 files by simply dragging and dropping.

Otherwise, you can use various methods via the shell. One that I always used to use was this:

for FILE in *.mp3
do
      FILE=`echo $FILE | sed s/.mp3//g`
      mpg123 -s $FILE.mp3 > $FILE.raw
      sox -r 44100 -w -s -c 2 $FILE.raw $FILE.wav
      rm -f $FILE.raw
done

This would convert all the mp3 files in a directory to .wav files.
Then:

cdrecord -scanbus -dev=0,0,0
cdrecord -v speed=2 -dev=0,0,0 -audio -pad *.wav

Substitute the "0,0,0" for the relevant device setting for your system. This setup is for an external USB2.0 cdwriter configured as /dev/sr0.

Then, after all that, remove the .wav files.

cheers
Duncan


I like to make scripts a bit more "bullet proof"... I would probably change it to:

for i in *.mp3 ; do
   name=$(basename "$i" .mp3)
   mpg123 -s "$name.mp3" | sox -f 44100 -w -s -c 2 - "$name.wav"
done

This way, it handles files with spaces in the name, and you avoid having to use a temp file. The error generated by a file with a space in its name would not be a problem by itself, and using a temp file would not be a problem by it self. but if you get the wrong name, you could delete something other then what you intended to. For example, if you had a file called "bridge over troubled water.mp3" and you also had a file called "bridge" in the same directory, you script would first overwrite, then delete "bridge". Using "basename" in place of "FILE=`echo $FILE | sed s/.mp3//g`" also solves the problem of a file with ".mp3" in more then one place in the name. It would probably not be a problem in any case, but you never know.

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