1cd-paranoia(1) General Commands Manual cd-paranoia(1)
2
3
4
6 cdparanoia 9.8 (Paranoia release III libcdio) - an audio CD reading
7 utility which includes extra data verification features
8
10 cdparanoia [options] span [outfile]
11
13 cd-paranoia retrieves audio tracks from CDDA capable CD-ROM drives.
14 The data can be saved to a file or directed to standard output in WAV,
15 AIFF, AIFF-C or raw format. Most ATAPI, SCSI and several proprietary
16 CD-ROM drive makes are supported; cd-paranoia can determine if the tar‐
17 get drive is CDDA capable.
18
19 In addition to simple reading, cd-paranoia adds extra-robust data veri‐
20 fication, synchronization, error handling and scratch reconstruction
21 capability.
22
24 -v --verbose
25 Be absurdly verbose about the autosensing and reading process.
26 Good for setup and debugging.
27
28
29 -q --quiet
30 Do not print any progress or error information during the read‐
31 ing process.
32
33
34 -e --stderr-progress
35 Force output of progress information to stderr (for wrapper
36 scripts).
37
38
39 -V --version
40 Print the program version and quit.
41
42
43 -Q --query
44 Perform CD-ROM drive autosense, query and print the CD-ROM table
45 of contents, then quit.
46
47
48 -s --search-for-drive
49 Forces a complete search for a cdrom drive, even if the
50 /dev/cdrom link exists.
51
52
53 -h --help
54 Print a brief synopsis of cd-paranoia usage and options.
55
56
57 -p --output-raw
58 Output headerless data as raw 16 bit PCM data with interleaved
59 samples in host byte order. To force little or big endian byte
60 order, use -r or -R as described below.
61
62
63 -r --output-raw-little-endian
64 Output headerless data as raw 16 bit PCM data with interleaved
65 samples in LSB first byte order.
66
67
68 -R --output-raw-big-endian
69 Output headerless data as raw 16 bit PCM data with interleaved
70 samples in MSB first byte order.
71
72
73 -w --output-wav
74 Output data in Micro$oft RIFF WAV format (note that WAV data is
75 always LSB first byte order).
76
77
78 -f --output-aiff
79 Output data in Apple AIFF format (note that AIFC data is always
80 in MSB first byte order).
81
82
83 -a --output-aifc
84 Output data in uncompressed Apple AIFF-C format (note that AIFF-
85 C data is always in MSB first byte order).
86
87
88 -B --batch
89
90 Cdda2wav-style batch output flag; cd-paranoia will split the
91 output into multiple files at track boundaries. Output file
92 names are prepended with 'track#.'
93
94
95 -c --force-cdrom-little-endian
96 Some CD-ROM drives misreport their endianness (or do not report
97 it at all); it's possible that cd-paranoia will guess wrong.
98 Use -c to force cd-paranoia to treat the drive as a little
99 endian device.
100
101
102 -C --force-cdrom-big-endian
103 As above but force cd-paranoia to treat the drive as a big
104 endian device.
105
106
107 -n --force-default-sectors n
108 Force the interface backend to do atomic reads of n sectors per
109 read. This number can be misleading; the kernel will often
110 split read requests into multiple atomic reads (the automated
111 Paranoia code is aware of this) or allow reads only wihin a
112 restricted size range. This option should generally not be
113 used.
114
115
116 -d --force-cdrom-device device
117 Force the interface backend to read from device rather than the
118 first readable CD-ROM drive it finds containing a CD-DA disc.
119 This can be used to specify devices of any valid interface type
120 (ATAPI, SCSI or proprietary).
121
122
123 -g --force-generic-device device
124 This option is an alias for -d and is retained for compatibil‐
125 ity.
126
127
128 -S --force-read-speed number
129 Use this option explicitly to set the read rate of the CD drive
130 (where supported). This can reduce underruns on machines with
131 slow disks, or which are low on memory.
132
133
134 -t --toc-offset number
135 Use this option to force the entire disc LBA addressing to shift
136 by the given amount; the value is added to the beginning offsets
137 in the TOC. This can be used to shift track boundaries for the
138 whole disc manually on sector granularity. The next option does
139 something similar...
140
141
142 -T --toc-bias
143 Some drives (usually random Toshibas) report the actual track
144 beginning offset values in the TOC, but then treat the beginning
145 of track 1 index 1 as sector 0 for all read operations. This
146 results in every track seeming to start too late (losing a bit
147 of the beginning and catching a bit of the next track). -T
148 accounts for this behavior. Note that this option will cause
149 cd-paranoia to attempt to read sectors before or past the known
150 user data area of the disc, resulting in read errors at disc
151 edges on most drives and possibly even hard lockups on some
152 buggy hardware.
153
154
155 -O --sample-offset number
156 Some CD-ROM/CD-R drives will add an offset to the position on
157 reading audio data. This is usually around 500-700 audio samples
158 (ca. 1/75 second) on reading. So when cd-paranoia queries a spe‐
159 cific sector, it might not receive exactly that sector, but
160 shifted by some amount.
161
162 Use this option to force the entire disc to shift sample position out‐
163 put by the given amount; This can be used to shift track boundaries for
164 the whole disc manually on sample granularity. Note that if you are
165 ripping something including the ending of the CD (e.g. the entire
166 disk), this option will cause cd-paranoia to attempt to read partial
167 sectors before or past the known user data area, probably causing read
168 errors on most drives and possibly even hard lockups on some buggy
169 hardware.
170
171
172 -Z --disable-paranoia
173 Disable all data verification and correction features. When
174 using -Z, cd-paranoia reads data exactly as would cdda2wav with
175 an overlap setting of zero. This option implies that -Y is
176 active.
177
178
179 -z --never-skip[=max_retries]
180 Do not accept any skips; retry forever if needed. An optional
181 maximum number of retries can be specified; for comparison,
182 default without -z is currently 20.
183
184
185 -Y --disable-extra-paranoia
186 Disables intra-read data verification; only overlap checking at
187 read boundaries is performed. It can wedge if errors occur in
188 the attempted overlap area. Not recommended.
189
190
191 -X --abort-on-skip
192 If the read skips due to imperfect data, a scratch, whatever,
193 abort reading this track. If output is to a file, delete the
194 partially completed file.
195
196
197 -x --test-flags mask
198 Simulate CD-reading errors. This is used in regression testing,
199 but other uses might be to see how well a CD-ROM performs under
200 (simulated) CD degradation. mask specifies the artificial kinds
201 of errors to introduced; "or"-ing values from the selection
202 below will simulate the kind of specified failure.
203
204 0x10 - Simulate under-run reading
205
206
207
208
209 OUTPUT SMILIES
210
211 :-) Normal operation, low/no jitter
212
213 :-| Normal operation, considerable jitter
214
215 :-/ Read drift
216
217 :-P Unreported loss of streaming in atomic read operation
218
219 8-| Finding read problems at same point during reread; hard to cor‐
220 rect
221
222 :-0 SCSI/ATAPI transport error
223
224 :-( Scratch detected
225
226 ;-( Gave up trying to perform a correction
227
228 8-X Aborted read due to known, uncorrectable error
229
230 :^D Finished extracting
231
232
234 <space>
235 No corrections needed
236
237 - Jitter correction required
238
239 + Unreported loss of streaming/other error in read
240
241 ! Errors found after stage 1 correction; the drive is making the
242 same error through multiple re-reads, and cd-paranoia is having
243 trouble detecting them.
244
245 e SCSI/ATAPI transport error (corrected)
246
247 V Uncorrected error/skip
248
249
251 The span argument specifies which track, tracks or subsections of
252 tracks to read. This argument is required. NOTE: Unless the span is a
253 simple number, it's generally a good idea to quote the span argument to
254 protect it from the shell.
255
256 The span argument may be a simple track number or an offset/span speci‐
257 fication. The syntax of an offset/span takes the rough form:
258
259 1[ww:xx:yy.zz]-2[aa:bb:cc.dd]
260
261 Here, 1 and 2 are track numbers; the numbers in brackets provide a
262 finer grained offset within a particular track. [aa:bb:cc.dd] is in
263 hours/minutes/seconds/sectors format. Zero fields need not be speci‐
264 fied: [::20], [:20], [20], [20.], etc, would be interpreted as twenty
265 seconds, [10:] would be ten minutes, [.30] would be thirty sectors (75
266 sectors per second).
267
268 When only a single offset is supplied, it is interpreted as a starting
269 offset and ripping will continue to the end of the track. If a single
270 offset is preceeded or followed by a hyphen, the implicit missing off‐
271 set is taken to be the start or end of the disc, respectively. Thus:
272
273
274 1:[20.35]
275 Specifies ripping from track 1, second 20, sector 35 to the end
276 of track 1.
277
278 1:[20.35]-
279 Specifies ripping from 1[20.35] to the end of the disc
280
281 -2 Specifies ripping from the beginning of the disc up to (and
282 including) track 2
283
284 -2:[30.35]
285 Specifies ripping from the beginning of the disc up to 2:[30.35]
286
287 2-4 Specifies ripping from the beginning of track 2 to the end of
288 track 4.
289
290 Again, don't forget to protect square brackets and preceeding hyphens
291 from the shell.
292
293
295 A few examples, protected from the shell:
296
297 Query only with exhaustive search for a drive and full reporting of
298 autosense:
299
300 cd-paranoia -vsQ
301
302 Extract an entire disc, putting each track in a seperate file:
303
304 cd-paranoia -B
305
306 Extract from track 1, time 0:30.12 to 1:10.00:
307
308 cd-paranoia "1[:30.12]-1[1:10]"
309
310 Extract from the beginning of the disc up to track 3:
311
312 cd-paranoia -- "-3"
313
314 The "--" above is to distinguish "-3" from an option flag.
315
317 The output file argument is optional; if it is not specified, cd-para‐
318 noia will output samples to one of cdda.wav, cdda.aifc, or cdda.raw
319 depending on whether -w, -a, -r or -R is used (-w is the implicit
320 default). The output file argument of - specifies standard output; all
321 data formats may be piped.
322
323
325 cd-paranoia sprang from and once drew heavily from the interface of
326 Heiko Eissfeldt's (heiko@colossus.escape.de) 'cdda2wav' package. cd-
327 paranoia would not have happened without it.
328
329 Joerg Schilling has also contributed SCSI expertise through his generic
330 SCSI transport library.
331
333 Monty <monty@xiph.org>
334
335 Cdparanoia's homepage may be found at: http://www.xiph.org/paranoia/
336
337 Revised for use with libcdio by Rocky <rocky@panix.com>
338
339 The libcdio homepage may be found at: http://www.gnu.org/software/libc‐
340 dio
341
342
343
344 version III release alpha 9.8 libcdio cd-paranoia(1)