Username/Email:  Password: 
TwitterFacebookFlickrRSS

Reflections of a CD Burn

 in
Creating audio CDs from MP3 files on a Red Hat 7.2 system.

I have always been impressed with the hosts on home-builder/handyman television shows: they seem to be able to complete whole projects in 30 minutes. Have you tried building an Adirondack chair in 30 minutes?That same project would take me, a measure twice, cut once too short, find more material computer geek, (insert formula) 1h x 30days x 3months = no-chair-yet amount of time. But in 30 minutes, the TV host is usually sitting out in front of the shop with two finished Adirondack chairs, drinking iced tea with his buddy.

This article is the made-for-television, Adirondack chair version of how to burn a CD. What won't be obvious here is the two weeks, Christmas vacation 2001, that I spent off air, researching, testing and editing, to produce both the CDs and the article.

Roll camera

Your buddy wants you to make him audio CDs he can play in his truck. Therefore, you will take MP3 files and burn them to a CD in a format that can be played on the truck CD player or any other one. This project was initiated by my home handyman, jack-of-all-trades, chair-building friend; I'll just call him buddy. Oh yeah, did I mention you want to burn this CD using a PC running Linux.

Requirements

Hardware (What I used)

  • 64MB RAM Pentium 233MMX PC

  • Sony CRX140S (SCSI) CD-ROM burner

  • AVA-1505 AT-to-SCSI Host adapter

Software (What you need)

  • Red Hat Linux 7.2 server installation, with a window manager (GNOME/KDE) GUI support.

Okay, this can be made to work with others Linux distributions or your own from source. I was hoping you would use Red Hat because I have Red Hat stocks in my retirement plan.

  • Cdrtoaster-1.12 application software.

Check out Ian Kjos' Cdrtoaster program at www.jump.net/~brooke/cdrtoast.

Stop Camera

Cdrtoaster is a GUI frontend program that produces syntax critical command-line strings that process the input MP3 file and actually burn the audio CD. The actual CD burning is done by a program called Cdrecord; more on that later. Remember the 30-minute show on building a chair? This is part where all the stuff that needs to be done to make the host's chair look good is now done by you. You need to install Linux on a PC that has all the CD-burning components (i.e., CD/writer) working. Without a working CD burner this article becomes reading room material.

If you do a cat /proc/interrupts at the command line and don't see an interrupt assigned to the SCSI card, go directly to jail, do not pass go and do not collect $200. It took some of that two-week vacation I mentioned before for me to solve this problem on my computer. This is the output after it was working:

[root@burner root]# cat /proc/interrupts
           CPU0
  0:    3770057          XT-PIC  timer
  1:       2317          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  4:      29089          XT-PIC  serial
  5:      18925          XT-PIC  soundblaster
  8:          1          XT-PIC  rtc
 10:         17          XT-PIC  aha152x <--------Houston we have ignition!
 11:      23053          XT-PIC  eth0
 14:          1          XT-PIC  ide0
 15:     118631          XT-PIC  ide1
NMI:          0
ERR:          0

In order to get the card working in this machine, I did two things.

Thing 1: I edited the /etc/modules.conf file to include alias scsi aha152x. This is the driver required to support this old ISA SCSI card.

Thing 2: I edited the /etc/rc.d/rc.local file to include modprobe scsi aha152x=0x140,10,7,1. This line assigns a port address, interrupts, SCSI IDs and other stuff to the device.

Roll Camera

Confirm your CD-RW is recognized by Cdrecord by entering the following from the command line:

[root@burner root]# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jorg Schilling
Linux sg driver version: 3.1.20
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) *
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) 'SONY    ' 'CD-RW  CRX140S  ' '1.0e' Removable CD-ROM <--Houston we have lift off!
        0,7,0     7) *

/usr/bin/cdrecord is the actual program that does the CD buring. Remember Cdrtoaster is the GUI frontend that will speak Cdrecord's syntax-critical language.

Install the Cdrtoaster-1.12 application in your home directory and do a permissions change to make the file executable.

Stop Camera

I put the application in /home/username and did the entered chmod 700 cdrtoaster-1.12 from the command line. The type usermod -G cdwrite username. This second command makes the user a member of the group cdwrite and gives the user sufficient permissions to burn a CD.

Roll Camera

Congratulations you are ready to burn!

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Reflections of a CD Burn ... not clear ...

Anonymous's picture

It's true, I'm having problem creating normal audio files from

mp3 files. It was working with rh-7.1 but, I don't know what I'm doing wrong. I read the article about cdrtoaster, but it's really not clear how it works. I don't know if I added a file or not. The documentation of the cdrtoaster is not complete. And the article doesn't explain my difficulty ! Good look to you.

Re: Reflections of a CD Burn ... looking to clear...

Anonymous's picture

Some conversion problems have to do with how the source is formatted. Entering" file " at the command line will provide some insight into how the file was created. If you know the format of the original, it can provide some insight into the settings needed to convert to a format for an audio CD's.

Re: Reflections of a CD Burn

brianlane's picture

Has anyone had problems with RH 7.2 and magicdev? I've found that I have to kill off magicdev to prevent it from trying to mount the blank CD. This is when using cdroast gui or cdrecord on the command line.

Brian

Re: Reflections of a CD Burn

Anonymous's picture

One of the things that I have found in using different mp3's with different volume levels is normalize. That way all the tracks are at the same volume levels so you don't have to reach for the volume as the tracks change.