1. Computing & Technology
Linux MP3 CD Burning mini-HOWTO
A complete recipe for creating audio and data CDs from MP3 files

3. Burning Your CD

There are many programs to create CDs from WAV files. I use cdrecord for command-line burning and XCDROAST for gui. For cdrecord, you have to know what SCSI device your CD-writer is. If you're using ATAPI writer, use SCSI emulation (kernel module ide-scsi). Let's assume, that your ATAPI cdwriter is on the second IDE bus as a master. Thus, it will have /dev/hdc device file. To instruct the kernel that you want to treat it as a SCSI device, add the following line to /etc/lilo.conf:

append=" hdc=ide-scsi"

Also, if your kernel doesn't automatically load ide-scsi module, add insmod ide-scsi into your rc.local (or equivalent) file. Once you have our CD-writer recognized as a SCSI device, run cdrecord --scanbus to find out what's the "dev" parameter to cdrecord. On my system, the output looks like the following:

scsibus1: 1,0,0 100) 'IOMEGA ' 'ZIP 250 ' '51.G' Removable Disk 1,1,0 101) 'HP ' 'CD-Writer+ 7100 ' '3.01' Removable CD-ROM

So, the cdrecord command line will contain dev=1,1,0 to specify the device. Here is the complete command on my system:

cdrecord dev=1,1,0 -eject speed=2 -pad -audio *.wav

Note NOTE

The -pad argument is neccessary, because all audio tracks on the CD must be adjusted for the proper data length, which is not always the case with mp3 files.

Another way, would be to convert WAV files with sox into CDR format before burning:

sox file.wav file.cdr


Linux MP3 CD Burning mini-HowTo
Table of Contents

Home
1. Introduction
- 1.1. Copyright and License
2. Audio CDs
- 2.1. Preparing the Tracks
- 2.2. Normalisation
3. Burning Your CD
4. Burning a DAO CD
5. Software
6. Data CDs
7. Credits
- 7.1. Translations
- 7.2. Other Credits

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.