Name

cdda2wav

Synopsis

    cdda2wav [options] [output.wav]

Convert Compact Disc Digital Audio (CDDA) to the WAV format. This process is often called “ripping” a CD-ROM, and is generally performed before using an encoder to convert the file to a compressed music format such as OGG or MP3. By default, cdda2wav reads data from the /dev/cdrom device and outputs one WAV file per track.

Options

Some of the following options use sectors as a unit of measurement. Each sector of data on a CD represents approximately 1/75 second of play time.

-adivider, --dividerdivider

Set rate to 44,100 Hz/divider. To get a list of possible values, use the -R option.

-Adrivename, --auxdevicedrivename

Specify a different drive for ioctl purposes.

-bn, --bits-per-samplen

Set the quality of samples to n bits per sample per channel. Possible values are 8, 12, and 16.

-B, --bulk, --alltracks

Copy each track into its own file.

-cchannels, --channelschannels

Set recording channels. Use 1 for mono, 2 for stereo, or s for stereo with both channels stopped.

-Cendianess, --cdrom-endianessendianess

Set the endianess of the input samples to endianess. Possible values are little, big, or guess.

-damount, --durationamount

Set to a number followed by f for frames (sectors) or s for seconds. Set time to zero to record an entire track. For example, to copy two minutes, use 120s.

-Ddevicename, --devicedevicename, dev=devicename

Specify the device. The device must be able to work with the -I (--interface) setting.

-e, --echo

Copy audio data to a sound ...

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.