compact disc control utility
cdio program is a compact disc control
utility, with support for playing audio CDs and TAO CD writing.
If no command is given,
interactive mode, reading commands from the standard input.
The options are as follows:
- Specifies a CDDB host [default: freedb.freedb.org:cddb].
- Specifies the name of the CD device, such as /dev/rcd0c. Both absolute and relative paths to /dev filenames are possible; the raw partition name is added if needed.
- Silent mode. Do not print table headers or human-readable comments.
- Verbose mode. A second occurrence of
-vcauses even more information to be printed.
The available commands are listed below. Only as many characters
as are required to uniquely identify a command need be specified. If no
command is given, only a track number or range, then
play is assumed.
- Minimally blank the disc.
- Print the Table Of Contents (TOC) after matching the disc with the CDDB. In case of multiple matches, reissue the command with n.
- Print the disc ID that will be used for matching with the CDDB.
- Play specified tracks from disk. Unlike
play, the CD player need not be connected to an audio device; instead it rips tracks from disk and outputs audio data to the default audio(4) device or aucat(1) socket. Both individual tracks and track ranges may be specified. If range is specified in descending order tracks will be played in descending order. If the first value in the range is omitted, tracks from first track on disk to the specified one will be played. If the last value in the range is omitted, tracks from the specified track to the last track on disk will be played.
- Rip specified tracks from disk. Audio tracks are saved as WAVE sound
files. All tracks will be saved in the current working directory. If
parameters are omitted, all tracks are ripped. Both individual tracks and
track ranges may be specified, in the same format as the
- Inject the disc.
debugon | off
- Enable/disable the debugging mode of the CD device driver.
- Make devname the current CD device. This is the
equivalent of quitting
cdioand restarting with a different device.
- Eject the disc.
- A synonym for
- Print the list of available commands.
- Print the Table Of Contents (TOC). If
-vis also specified, the current features and current profile is printed. If
-vis specified twice, the complete list of supported profiles and a hex dump of each current feature is printed.
- Play the next track. If we're at the last track, stop.
- Stop playing. Do not stop the disc.
- Play from track1 to track2; an optional index point can be specified for each track. If only one track is specified, play from that track to the end of the disc. If no tracks are specified, play the whole disc.
play[[tr1] m1:s1[.f1] [tr2] [m2:s2[.f2]]]
- Play from the absolute address (MSF) defined by m1 in minutes, s1 in seconds, frame number f1, to the absolute address defined by m2 in minutes, s2 in seconds, frame number f2. If a track number is specified (trX), then the minutes, seconds, and frame numbers are relative to the start of that track. Minutes are in the range 0–99. Seconds are in the range 0–59. Frame numbers are in the range 0–74.
- Play starting from the logical block using len logical blocks.
- Play the previous track. If we're at the first track, restart.
- Quit the program.
- Replay the current track.
- Perform a hardware reset of the device.
- Resume playing. Used after the
setlba | msf
- Set LBA (lba) or minute-second-frame (msf) ioctl mode. The default is minute-second-frame ioctl mode.
- Print information about the disc: the current playing status and position, the current media catalog status, and the current values of the volume for left and right channels.
- Stop the disc.
-sspeed] trackfile ...
- [command line only] Write a track-at-once CD containing the
The options are as follows:
- Write files as audio tracks. File formats of audio tracks may be CDDA or WAVE with 2 channels of PCM audio, signed 16-bit (little endian) values sampled at 44100 Hz.
- Write files as data tracks (the default).
- Specify a write speed for tracks. speed may be a numerical value between 1 and the maximum speed supported by the media and drive, or one of the literal strings “auto” or “max”, meaning the optimal or maximum speed detected. The default speed is “auto”.
- Set the volume of the left channel to left_channel and the volume of the right channel to right_channel. Allowed values are in the range 0–255.
- Respectively: play the left subtrack on both left and right channels; play the right subtrack on both left and right channels; set mono mode; set stereo mode; turn the sound off.
- Specifies the name of the CD device to use. If both
DISCtakes precedence. If neither
CDROMare set, the default is cd0. See also the
- Name of the aucat(1) socket to connect to, or path to the audio(4) device to use.
aucat(1), audioctl(1), mixerctl(1), audio(4)
cdio command is based on
cdcontrol, which first appeared in
Jean-Marc Zucconi, Andrey A. Chernov, Serge V. Vakulenko, Marc Espie