[Home]CD Ripping And Burning

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

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:


Silverlake Linux Users Group Wiki | Recent Changes | Preferences
Password required to edit | View other revisions
Last edited October 13, 2005 3:41 pm by tarazed.ligo.caltech.edu (diff)
Search: