Ripping Audio [inspired by Godwin's howto].
Extracting audio data from an audio CD disk.
First, you insert an audio CD into a CD drive -- either a standard CD drive or a CDRW drive -- and 'su' to root. Since the application cdparanoia addresses the drive directly, you need root privileges to do this. Now, type this command to get a printout of the CD's TOC:
# cdparanoia -Q
If you see something simillar to this:
cdparanoia III release 9.8 (March 23, 2001) (C) 2001 Montyand Xiphophorus Report bugs to paranoia @ xiph.org http://www.xiph.org/paranoia/ 004: Unable to read table of contents header Unable to open disc. Is there an audio CD in the drive?
Chances are you don't have a /dev/cdrom symlink pointing to your CD drive, or that it is pointing to some other drive. Get round this by using the -d command line parameter to tell cdparanoia exactly where to look, in my case it's either /dev/scd0 or /dev/cdrw (usually /dev/scd0, which is a symlink to /dev/hdd anyway):
# cdparanoia -Q -d /dev/scd0 cdparanoia III release 9.8 (March 23, 2001) (C) 2001 Montyand Xiphophorus Report bugs to paranoia @ xiph.org http://www.xiph.org/paranoia/ Table of contents (audio tracks only): track length begin copy pre ch =========================================================== 1. 11270 [02:30.20] 0 [00:00.00] no no 2 2. 11520 [02:33.45] 11270 [02:30.20] no no 2 3. 17095 [03:47.70] 22790 [05:03.65] no no 2 4. 30495 [06:46.45] 39885 [08:51.60] no no 2 5. 26400 [05:52.00] 70380 [15:38.30] no no 2 6. 40062 [08:54.12] 96780 [21:30.30] no no 2 7. 31345 [06:57.70] 136842 [30:24.42] no no 2 8. 15080 [03:21.05] 168187 [37:22.37] no no 2 9. 16948 [03:45.73] 183267 [40:43.42] no no 2 10. 11820 [02:37.45] 200215 [44:29.40] no no 2 11. 29625 [06:35.00] 212035 [47:07.10] no no 2 12. 42695 [09:29.20] 241660 [53:42.10] no no 2 13. 38742 [08:36.42] 284355 [63:11.30] no no 2 TOTAL 323097 [71:47.72] (audio only)
Of course, your output will be different from this, but it may be simillar.
For starters, let's rip the 8th track, & save it in a file called track08.wav:
# cdparanoia -d /dev/scd0 -w 8 track08.wav cdparanoia III release 9.8 (March 23, 2001): (C) 2001 Montyand Xiphophorus: Report bugs to paranoia @ xiph.org http://www.xiph.org/paranoia/ Ripping from sector 168187 (track 8 [0:00.00]) to sector 183266 (track 8 [3:21.04]) outputting to track08.wav (== PROGRESS == [ | 183266 00 ] == :^D * ==) Done.
The -w command line option tells cdparanoia to output the audio
data into a .wav file & track08.wav is the name of that file.
Now, say you want some, but not all, of the tracks from this CD. As
with Godwin's example, let's rip tracks 10 to 13:: The -B tells cdparanoia to run in batch mode & 10-13 is the range
of tracks we want to rip. In batch mode, cdparanoia will rip each file & name each
"track#.wav", where "#" is the number of the track on the CD. Anything which comes after the
range of tracks to rip on the command line is appended to the filename. In our case the files
will therefore be track10.wav, track11.wav, track12.wav and track13.wav. Since the default output format for cdparanoia is .wav, the -w
parameter isn't necessary. To batch the entire CD into individual audio files use -B command
line parameter instead: # cdparanoia -d /dev/scd0 -B Cdparanoia will create files named "track01.cdda.wav",
"track02.cdda.wav" etc... For help & other info using cdparanoia, just type cdparanoia on the
command line & press enter. My general
page | My personal hell Copyright 2004-2006# cdparanoia -d /dev/scd0 -w -B 10-13 wav
cdparanoia III release 9.8 (March 23, 2001)
(C) 2001 Monty
Me, Myself, & the Voices in my
Head