CDPARANOIA(1)
๐ฟ CDPARANOIA ๐ฟ โ the cdparanoia manual page (part 1 of 2, bestie, we're going long)
okay so this is the manual page for cdparanoia, from the General Commands Manual section, and it is so much more than a ripper, I promise you.
โจ NAME โจ
cdparanoia 10.2 (Paranoia release III) โ an audio CD reading utility which includes extra data verification features ๐
like. it reads CDs. but it double-checks itself while doing it. main character behavior fr.
โจ SYNOPSIS โจ
cdparanoia [options] span [outfile]
that's it, that's the shape of it. options, then where you want to read from, then optionally where it goes. ๐
โจ DESCRIPTION โจ
cdparanoia pulls audio tracks off CDDA-capable CDROM drives. CDDA = the actual music-CD format, not data discs, not DVDs, just vibes and PCM. ๐ต
where does the data go? your choice:
- saved to a file, or
- piped straight to standard output
and in which format? pick your fighter: WAV, AIFF, AIFF-C, or raw.
most ATAPI, SCSI and several proprietary CDROM drive makes are supported โ and cdparanoia can actually figure out whether your target drive is CDDA capable in the first place. vibe check on the hardware, basically. ๐
and then, on top of just plain reading, cdparanoia adds:
- extra-robust data verification
- synchronization
- error handling
- scratch reconstruction
so when your friend hands you a CD they found in a tote bag from 2004 with a mysterious scratch on it, you're not just rawdogging the read. you're doing it with โจinfrastructureโจ.
โจ OPTIONS โจ
one bullet per option, all of them, no skipping, I said what I said:
-A,--analyze-driveโ run and log a complete analysis of drive caching, timing and reading behavior; verifies thatcdparanoiais correctly modelling a specific drive's cache and read behavior. implies-vQL. it's the "tell me everything about this drive" button. ๐ฌ-v,--verboseโ be absurdly verbose about the autosensing and reading process. good for setup and debugging.-q,--quietโ do not print any progress or error information during the reading process. silence. peace. ๐คซ-e,--stderr-progressโ force output of progress information to stderr (for wrapper scripts).-l,--log-summary [file]โ save result summary to file, default filenamecdparanoia.log.-L,--log-debug [file]โ save detailed device autosense and debugging output to a file, default filenamecdparanoia.log.-V,--versionโ print the program version and quit.-Q,--queryโ perform CDROM drive autosense, query and print the CDROM table of contents, then quit.-s,--search-for-driveโ forces a complete search for a cdrom drive, even if the/dev/cdromlink exists.-h,--helpโ print a brief synopsis ofcdparanoiausage and options.-p,--output-rawโ output headerless data as raw 16 bit PCM data with interleaved samples in host byte order. to force little or big endian byte order, use-ror-Ras described below.-r,--output-raw-little-endianโ output headerless data as raw 16 bit PCM data with interleaved samples in LSB first byte order.-R,--output-raw-big-endianโ output headerless data as raw 16 bit PCM data with interleaved samples in MSB first byte order.-w,--output-wavโ output data in Micro$oft RIFF WAV format (note that WAV data is always LSB first byte order).-f,--output-aiffโ output data in Apple AIFF format (note that AIFC data is always in MSB first byte order).-a,--output-aifcโ output data in uncompressed Apple AIFF-C format (note that AIFF-C data is always in MSB first byte order).-B,--batchโ Cdda2wav-style batch output flag;cdparanoiawill split the output into multiple files at track boundaries. output file names are prepended with'track#.'โ cute, organized, obsessed. ๐๏ธ-c,--force-cdrom-little-endianโ some CDROM drives misreport their endianness (or do not report it at all); it's possible thatcdparanoiawill guess wrong. use-cto forcecdparanoiato treat the drive as a little endian device.-C,--force-cdrom-big-endianโ as above but forcecdparanoiato treat the drive as a big endian device.-n,--force-default-sectors nโ force the interface backend to do atomic reads of n sectors per read. this number can be misleading; the kernel will often split read requests into multiple atomic reads (the automated Paranoia code is aware of this) or allow reads only within a restricted size range. this option should generally not be used.-d,--force-cdrom-device deviceโ force the interface backend to read from device rather than the first readable CDROM drive it finds. this can be used to specify devices of any valid interface type (ATAPI, SCSI or proprietary).-k,--force-cooked-device deviceโ this option forces use of the old'cooked ioctl'kernel interface with the specified cdrom device. the cooked ioctl interface is obsolete in Linux 2.6 if it is present at all.-kcannot be used with-dor-g.-g,--force-generic-device deviceโ this option forces use of the old'generic scsi'(sg) kernel interface with the specified generic scsi device.-gcannot be used with-k.-gmay be used with-dto explicitly set both the SCSI cdrom and generic (sg) devices separately. this option is only useful on obsolete SCSI setups and when using the generic scsi (sg) driver.-S,--force-read-speed numberโ use this option explicitly to set the read rate of the CD drive (where supported). this can reduce underruns on machines with slow disks, or which are low on memory. ๐โก๏ธ๐-t,--toc-offset numberโ use this option to force the entire disc LBA addressing to shift by the given amount; the value is added to the beginning offsets in the TOC. this can be used to shift track boundaries for the whole disc manually on sector granularity. the next option does something similar...-T,--toc-biasโ some drives (usually random Toshibas) report the actual track beginning offset values in the TOC, but then treat the beginning of track 1 index 1 as sector 0 for all read operations. this results in every track seeming to start too late (losing a bit of the beginning and catching a bit of the next track).-Taccounts for this behavior.
โ ๏ธ note that this option will cause cdparanoia to attempt to read sectors before or past the known user data area of the disc, resulting in read errors at disc edges on most drives and possibly even hard lockups on some buggy hardware. bestie. be careful. ๐
-O,--sample-offset numberโ use this option to force the entire disc to shift sample position output by the given amount; this can be used to shift track boundaries for the whole disc manually on sample granularity.
โ ๏ธ note that this will cause cdparanoia to attempt to read partial sectors before or past the known user data area of the disc, probably causing read errors on most drives and possibly even hard lockups on some buggy hardware. yeah. same warning energy. ๐
-Z,--disable-paranoiaโ disable all data verification and correction features. when using-Z,cdparanoiareads data exactly as wouldcdda2wavwith an overlap setting of zero. this option implies that-Yis active. (yes, it's literally turning off the thing the program is named after. iconic honestly. ๐)-z,--never-skip[=max_retries]โ do not accept any skips; retry forever if needed. an optional maximum number of retries can be specified; for comparison, default without-zis currently20.-Y,--disable-extra-paranoiaโ disables intra-read data verification; only overlap checking at read boundaries is performed. it can wedge if errors occur in the attempted overlap area. not recommended.-X,--abort-on-skipโ if the read skips due to imperfect data, a scratch, whatever, abort reading this track. if output is to a file, delete the partially completed file. (clean exit, no half-finished mess. we love a tidy queen. ๐งน)
โจ OUTPUT SMILIES โจ
the little faces! the faces have meanings! here's the whole translation table:
:-)โ normal operation, low/no jitter:-|โ normal operation, considerable jitter:-/โ read drift:-Pโ unreported loss of streaming in atomic read operation8-|โ finding read problems at same point during reread; hard to correct:-0โ SCSI/ATAPI transport error:-(โ scratch detected;-(โ gave up trying to perform a correction8-Xโ aborted read due to known, uncorrectable error:^Dโ finished extracting ๐
the :^D at the end is genuinely a little victory dance and I stand by that.
โจ PROGRESS BAR SYMBOLS โจ
each character in the progress bar is doing its own little job, ok, respect them:
<space>โ no corrections needed-โ jitter correction required+โ unreported loss of streaming/other error in read!โ errors found after stage 1 correction; the drive is making the same error through multiple re-reads, andcdparanoiais having trouble detecting them.eโ SCSI/ATAPI transport error (corrected)Vโ uncorrected error/skip
โจ SPAN ARGUMENT โจ
the span argument specifies which track, tracks or subsections of tracks to read. this argument is required. no span, no rip. โ
๐ NOTE: unless the span is a simple number, it's generally a good idea to quote the span argument to protect it from the shell. the shell is out here eating your brackets, bestie, and it will not apologize.
the span argument may be a simple track number or an offset/span specification. the syntax of an offset/span takes the rough form:
1[ww:xx:yy.zz]-2[aa:bb:cc.dd]
here, 1 and 2 are track numbers; the numbers in brackets provide a finer grained offset within a particular track. [aa:bb:cc.dd] is in hours/minutes/seconds/sectors format. zero fields need not be specified: [::20], [:20], [20], [20.], etc, would be interpreted as twenty seconds, [10:] would be ten minutes, [.30] would be thirty sectors (75 sectors per second).
when only a single offset is supplied, it is interpreted as a starting offset and ripping will continue to the end of the track. if a single offset is preceded or followed by a hyphen, the implicit missing offset is taken to be the start or end of the disc, respectively. thus:
1:[20.35]โ specifies ripping from track 1, second 20, sector 35 to the end of track 1.1:[20.35]-โ specifies ripping from1[20.35]to the end of the disc-2โ specifies ripping from the beginning of the disc up to (and including) track 2-2:[30.35]โ specifies ripping from the beginning of the disc up to2:[30.35]2-4โ specifies ripping from the beginning of track 2 to the end of track 4.
again, don't forget to protect square brackets and preceding hyphens from the shell. I am begging you. ๐
โจ EXAMPLES โจ
a few examples, protected from the shell, as one treats one's span arguments:
query only with exhaustive search for a drive and full reporting of autosense:
cdparanoia -vsQ
extract an entire disc, putting each track in a separate file:
cdparanoia -B
extract from track 1, time 0:30.12 to 1:10.00:
cdparanoia "1[:30.12]-1[1:10]"
extract from the beginning of the disc up to track 3:
cdparanoia -- "-3"
the -- above is to distinguish "-3" from an option flag. yes, that's why it's there. it's the little escape hatch that says "no bestie, this is a span, not a flag". ๐ซถ
โจ OUTPUT โจ
the output file argument is optional; if it is not specified, cdparanoia will output samples to one of cdda.wav, cdda.aifc, or cdda.raw depending on whether -w, -a, -r or -R is used (-w is the implicit default).
the output file argument of - specifies standard output; all data formats may be piped. ๐
okay that's part 1, and there's more coming โ don't go anywhere, we're not done. ๐
๐ ACKNOWLEDGEMENTS ๐
okay so real talk, this whole thing did not just materialize out of thin air, bestie. Cdparanoia sprang from and once drew heavily from the interface of Heiko Eissfeldt's (heiko@colossus.escape.de) cdda2wav package. and like, genuinely โ Cdparanoia would not have happened without it. no cap. that's the origin story, that's the lore, we owe them everything ๐ซถโจ
Joerg Schilling has also contributed SCSI expertise through his generic SCSI transport library. king behavior honestly ๐ like he just showed up with the SCSI knowledge and we said thank you so much ๐
๐ AUTHOR ๐
Monty <monty@xiph.org> โ the main character, the moment, the whole vibe ๐
and if you wanna come hang out where Cdparanoia lives on the internet, Cdparanoia's homepage may be found at: http://www.xiph.org/paranoia/ ๐ go say hi, it's iconic over there ๐
and that's a wrap on the whole page, bestie!! ๐ this version was served up fresh from the source and version stamped 11 Sep 2008 as CDPARANOIA(1) โ yeah she's an elder but she still ate and left no crumbs, periodt ๐
โจ byeee ๐ฆ
๐ฆ where this page comes from
- alpine 3.22: cdparanoia-doc 10.2-r14 ยท GPL-2.0-or-later
- alpine 3.23: cdparanoia-doc 10.2-r14 ยท GPL-2.0-or-later
- alpine 3.24: cdparanoia-doc 10.2-r14 ยท GPL-2.0-or-later
- arch rolling: cdparanoia 10.2-10 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- epel 10: cdparanoia 10.2-46.el10_0 ยท GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2
- epel 9: cdparanoia 10.2-38.el9 ยท GPLv2 and GPLv2+ and LGPLv2
- fedora 43: cdparanoia 10.2-48.fc43 ยท GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2
- fedora 44: cdparanoia 10.2-50.fc44 ยท GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2
- nixos 26.05: cdparanoia-iii 10.2
- nixpkgs unstable: cdparanoia-iii 10.2
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms