Below is my original query followed by the responses I got on the list as of yesterday. Thank you to anyone who has responded since then. Neal McDermott
Hi All,
At the moment I am learning how to use cdrecord and have been able to make data cds. I am now trying to make a music cd from mp3s, and am assuming that I will have to convert them to .wav files and then burn them to a disk.
I am wondering if anyone can recommend a good conversion tool, preferably one that comes with the personal edition of 8.0. I tried using sox but got the error message that it could not recognize .mp3 files.
One response I got was from Lew Wolfgang. I tried it and it was just what I was looking for: Hi Neil, I've had good luck with mpg123. It's been on previous SuSE distros and is probably on 8.0. If it's not, look on freshmeat. Just us it like this: mpg123 -s something.mpg >something.cdr The file format is not .wav, but in the format that may be burned directly by cdrecord if you do this: cdrecord -v speed=S dev=X,Y,Z -swab -pad -audio *.cdr (assumes X86 architecture. Don't use -swab on SPARC) Substitute the speed for your burner/cdrs and your own X,Y,Z config obtained by runnign cdrecord -scanbus. This will burn all the .cdr files in the directory that you're sitting in. Regards, Lew Wolfgang I also got a response from FX Fraipont who had a GUI based solution that I tried and it worked too: An easier way (imho) is using xmms to play your mp3's. Try to right-click options > preferences > output plugins > diskwriter Select all the mp3 tracks you want, and they'll be converted to .wav in no time. fxf Finally, I got this answer from Keith Winston which includes a script he uses. I haven't tried this one yet, but that is only because I don't know how to use a shell script yet, but as soon as I figure that out, I will give it a try. This is Keith Winston's solution: I use mpg123 which should be on the CDs (at least it is on the Pro CDs).
You want to convert them to cdr format, not wav for burning to CD.
This is the script I use, just put the mp3 files in the ~/burn/data directory.
#!/bin/bash # # This is a CD-R script for burning mp3 files directly to CD. # The mpg123 program converts mp3s to cdr format, and cdrecord burns # the tracks on the CD. #
for I in /home/foo/burn/data/*.mp3 do mpg123 --cdr - "$I" | cdrecord dev=0,0,0 -audio -pad -v -speed=2 -nofix - done cdrecord dev=0,0,0 -fix
####
Best Regards, Keith
Thank you again to all who responded. One final note, if like me you are using the personal edition of SuSE 8.0, then both of the programs mentioned above are included on your CDs. Neal McDermott