CDREAD(8) BSD System Manager's Manual CDREAD(8)NAMEcdread - Read audio data from CDR drive
SYNOPSIScdread [-v] [-f device] [-x speed] toc
cdread [-v] [-f device] [-x speed] [-p prefix] tracknum ...
cdread [-v] [-f device] [-x speed] [-p prefix] all
cdread [-v] [-f device] [-x speed] [-o outfile] [-s start] -l length
DESCRIPTION
Cdread will read the table-of-contents (TOC) or audio data from any sup-
ported CDR drive. Currently supported drives include Philips CDD-522
command set compatible and Yamaha CDR-100. HP, Kodak, IMS, and other
drives with the exception of Sony and Yamaha are typically command set
compatible with the Philips CDD-522.
The common -v, -f and -x options may be used with any of the command
forms to enable verbose output, to specify the device file for the CDR
drive, and to specify the desired read speed for the device. Some de-
vices default to reading audio and single speed, while others may default
to higher speeds which may be unrealiable. This option is not implement-
ed for all drive types.
The first form of the command (toc) prints the starting offset and length
of each of the tracks on the CD.
The second and third forms (tracknum, all) direct cdread to read the raw
audio data for the specified track(s) or all of the tracks on the disk.
The data for each track is stored in a standard .wav format audio file.
By default, files are named cdtrack-<tracknum>.wav. The default prefix
may be changed using the -p option.
The fourth and final form of the command directs cdread to read a specif-
ic section of the disk. The starting offset and the length are set ex-
plicitly on the command line. If no output file name is specified with
-o, the data will be written to the standard output.
ENVIRONMENT
CDR The default device filename. It may be overridden with -f.
DIAGNOSTICScdread will print a message beginning ``scsi status:'' if a command fails
for some reason. The error message is the actual SCSI sense error re-
turned by the drive.
SEE ALSOcdr(8), cdwrite(8)HISTORYcdread was derived from scsicmd(8).
AUTHOR
Jeff Polk <polk@BSDI.COM>
BUGS
If data is not read from Yamaha drives quickly enough, the drive may
overrun its internal buffer and abort the operation. No attempt has been
made to restart and resynchronize the transfer.
BSD/OS September 17, 1996 1