Three tools are required for the ripping and burning of audio cd tracks:
- 1. [cdparanoia] rips tracks from cd's:
- cdparanoia -w -z -B
- It is not necessary to specify the device, the cdparanoia program will find the cd.
- 2. [lame] converts .wav files into .mp3 files:
For pretty darn good quality:
- lame -h track1.cdda.wav my-music.mp3
Or, for extremely high quality:
- lame --alt-preset standard track1.cdda.wav my-music.mp3
- This Tcl script is useful for converting .cdda.wav files:
set files [ glob */* ]
foreach file $files {
set outfile [ file rootname [ file rootname $file ] ].mp3
catch { exec lame -h $file $outfile } report
puts $report
}
- 3. [cdrecord] is used to actually burn the data onto the cd:
- For recording .cdda.wav files (regular analog music files):
- cdrecord dev=0,0,0 speed=1 -pad -audio *.wav
- For recording .mp3 digital music files:
- mkisofs -rJ -o albumname.iso dirname
- cdrecord dev=0,0,0 speed=2 albumname.iso
- Interesting: if you do not have the scsi emulation enabled, you can use this: dev=ATAPI:/dev/hdc
- mkisofs is a part of the cdrtools package, which is also where cdrecord is found: ftp://ftp.berlios.de/pub/cdrecord/alpha
- Ew! I managed to burn a mini-cd of mp3's, and the tracks came out in reverse order!! I think mkisofs globs in reverse order!? This set things right (Tcl code):
- eval exec mkisofs -rJ -o name.iso [ lsort -decreasing [ glob * ] ]
See also these standard documents:
Here is a script I use for decoding mp3's back to pcm and burning an audio cd:
#!/usr/local/bin/tclsh
puts stderr "Normalizing levels..."
catch { eval exec normalize -m [ glob *.mp3 ] } result
puts stderr $result
set files [ glob *.mp3 ]
set files [ lsort -dictionary $files ]
foreach file $files {
set out [ file tail $file ]
set out [ file rootname $file ].cdda.wav
regsub -all -- {^[-_!?\[\]\(\)~,'\*\s]+} $out {} out
regsub -all -- {[-_!?\[\]\(\)~,'\*\s]+} $out _ out
puts stderr "decoding $file -> $out"
catch { exec mpg123 -q --cdr $out $file } info
puts stderr $info
}
And then when you are ready to burn (up to roughly 800 Mb of .wav's onto a 700 Mb cd):
cdrecord -v -pad -audio dev=0,0,0 speed=8 *.wav
I use a slow speed because buffer underruns seem to be common when burning an audio cd.
Ian says:
A one step alternative to this is to use [abcde] - A Better CD Encoder. I would also recommend the free compression format Ogg Vorbis to those concerned about licenses (MP3 is not a free format).
Types of MP3 players:
- flash
- Mushkin sells the best USB flash disk style mp3 player. It is recognised as a hard-drive by windows, mac, and Linux without any driver required: http://www.mushkin.com/ (click on the search button at the bottom of their home page and enter mp3.
- mini-cd
- I bought a teac mini-cd mp3 player model mp-330. This model got bad reviews, all the reveiwers saying it would be a recommended model, except that the anti-skip seemed to be non-existent. Well, I am here to tell you that you can shake the thing violently while it plays, and it won't skip. So if you can find one of these puppies at the current list price of $79, grab it! Thinkgeek is selling them for $120!
- cd-r
- For home stereo use, any DVD player will play mp3 files from CD's. The more expensive players seem to do a better job, but the Samsung I got for $50 at the Best Buy pre-christmas sale works fine.
Boom boxes that play mp3's are still going at a considerable premium as of April 2003.
- hd