CDDA2WAV
Defines the command to extract WAV data from the CD. The default value is cdda2wav.
Extract cd audio tracks and encode them
cdda2ogg [options]
[dev=device]
[file
prefix]
[ogg
opts]
cdda2mp3 [options]
[dev=device]
[file
prefix]
[lame
opts]
cdda2ogg is a script that uses the cdda2wav command to extract all audio tracks with the cdda2wav command and encode them using the oggenc(1) Ogg Vorbis encoder.
cdda2mp3 is a script that uses the cdda2wav command to extract all audio tracks with the cdda2wav command and encode them using the lame(1) MP3 encoder.
There is no CDDB support yet.
-help
print a short online usage message and exit.
dev=deviceThe device to read the data from. If there is only one CD-ROM drive in the system, the dev= option may be omitted. For possible values of the device parameter, see the cdrecord(1) man page.
-*
Any other option beginning with a '-' sign is passed to the cdda2wav program.
Any other option past the file prefix argument and beginning with a '-' sign is passed to the encoder program.
The following environment variables may be used to change the behavior of the cdda2ogg and the cdda2mp3 command:
CDDA2WAV
Defines the command to extract WAV data from the CD. The default value is cdda2wav.
CDDA2WAV_OPTS
Defines the options passed to the CDDA program while extracting from the CD. The default value is -H -q.
MP_CODER
The encoder program used to compress the audio data. The default value is oggenc for cdda2ogg and lame for cdda2mp3.
MP_OPTIONS
Options passed to the encoder program. The default is empty.
FILEPREFIX
The base filename part of the resulting audio files. The default file name is $TRACK-$FILEPREFIX.ogg for cdda2ogg and $TRACK-$FILEPREFIX.mp3 for cdda2mp3 if no file prefix argument was given on the command line.
If the following files are present, then the scripts source them to set up local defaults:
/etc/default/cdda2ogg
To set up default values for cdda2ogg.
/etc/default/cdda2mp3
To set up default values for cdda2mp3.
The content may be set up to modify environment variables or to set up local defaults.
If a CD contains a hidden audio track before track 1, a file name with track number 00 is created with the content of the hidden track.
The program oggenc(1) is part of the vorbis-tools project See http://www.vorbis.com for more information.
The program lame(1) is part of the lame project. See http://lame.sourceforge.net/ for more information.
13 releases since Debian 3.0 (Woody); the text changed 3 times.
-* since Arch Linux 2026-11-01;
-help since Arch Linux 2026-11-01.