cdda2ogg, cdda2mp3 — extract audio CD audio tracks and encode them





cdda2ogg is a simple script that uses the icedax <fileprefix> command to extract all audio tracks with the icedax <fileprefix> command and encode them using the ogg123 respective <censored> MP3 encoder. The scripts are not intended to be full-featured music archiving programs, but only for quick storing of few audio data. It does not use databases like CDDB or have any extra features. You may look at icedax if you need them.

ogg123 is provided by the vorbis-tools which needs to be installed separately. See for more information.


cdda2ogg and cdda2mp3 have predefined values for reading and labeling of the target files. You can overwrite them with following environment variables:

Source device specification to get the data from.


List of track numbers to be read, separated by spaces.


Defines the command to run the cdda2wav program


Miscellaneous options passed to $CDDA2WAV.


The encoder program.


Additional options passed to $MP_CODER.


The base part of the filename of resulting audio files. This can also be specified as the first argument to the script.

See cdda2ogg (cdda2mp3) script file to get the default values

System administrator can also set default values by creating of a shell include file, defining the variables for the POSIX shell, and storing them as /etc/default/cdda2ogg (resp. cdda2mp3).


CDDA_DEVICE=/dev/cdrom1 cdda2ogg
just stores every track in this device in audiotrackNUMBER.ogg

LIST="1 5 7" cdda2ogg PartsOfBestOfFoo
stores the selected tracks from the default cdrom device as 01-PartsOfBestOfFoo.ogg, 05-PartsOfBestOfFoo.ogg, 07-PartsOfBestOfFoo.ogg.




This manpage describes the program implementation of cdda2ogg as shipped by the cdrkit distribution. See for details. It is a spinoff from the original program distributed by the cdrtools project. However, the cdrtools developers are not involved in the development of this spinoff and therefore shall not be made responsible for any problem caused by it. Do not try to get support for this program by contacting the original authors.

If you have support questions, send them to

If you have definitely found a bug, send a mail to this list or to

writing at least a short description into the Subject and "Package: cdrkit" into the first line of the mail body.

This manual page was written by Eduard Bloch ( for the Debian GNU/Linux system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 as published by the Free Software Foundation.

More Linux Commands

roma(1) - compile a TEI ODD specification into schemas and d
This manual page is not meant to be exhaustive. There is some more information in the help files for the web version of Roma, and plenty of background data abou

XRRConfigRotations(3) - X Resize, Rotate and Reflection exte
Xrandr is a simple library designed to interface the X Resize and Rotate Extension. This allows clients to change the size and rotation of the root window of a

item_count(3menu) - make and break connections between items
The function set_menu_items changes the item pointer array of the given menu. The array must be terminated by a NULL. The function menu_items returns the item a

gnutls_x509_crl_get_crt_serial(3) - API function (Man Page)
This function will retrieve the serial number of the specified, by the index, revoked certificate. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwi

Tcl_UniCharLen(3) - routines for manipulating UTF-8 strings
These routines convert between UTF-8 strings and Tcl_UniChars. A Tcl_UniChar is a Unicode character represented as an unsigned, fixed-size quantity. A UTF-8 cha

auparse_get_filename(3) - get the filename where record was
auparse_get_filename will return the name of the source file where the record was found if the source type is AUSOURCE_FILE or AUSOURCE_FILE_ARRAY. For other so

Tcl_GetEncodingNameFromEnvironment(3) - procedures for creat
Tcl_GetEncoding finds an encoding given its name. The name may refer to a built-in Tcl encoding, a user-defined encoding registered by calling Tcl_CreateEncodin

wclear(3ncurses) - clear all or part of a curses window.....
The erase and werase routines copy blanks to every position in the window, clearing the screen. The clear and wclear routines are like erase and werase, but the

XkbLookupKeySym(3) - Find the symbol associated with a key f
XkbLookupKeySym is the equivalent of the core XLookupKeySym function. For the core keyboard, given a keycode key and an Xkb state state, XkbLookupKeySym returns

glGetLightiv(3gl) - return light source parameter values....
glGetLight returns in params the value or values of a light source parameter. light names the light and is a symbolic name of the form GL_LIGHT$i$ for 0 &lt;= $i$

pcre_jit_exec(3) Perl-compatible regular expressions........
This function matches a compiled regular expression that has been successfully studied with one of the JIT options against a given subject string, using a match

ul(1) - do underlining (Commands - Linux manual page).......
ul reads the named files (or standard input if none are given) and translates occurrences of underscores to the sequence which indicates underlining for the ter

We can't live, work or learn in freedom unless the software we use is free.