OpenBSD manual page server

Manual Page Search Parameters

CDIO(1) General Commands Manual CDIO(1)

cdiocompact disc control utility

cdio [-sv] [-d host:port] [-f device] [command args ...]

The cdio program is a compact disc control utility, with support for playing audio CDs and Track-At-Once (TAO) CD writing.

If no command is given, cdio enters interactive mode, reading commands from the standard input.

The options are as follows:

host:port
Specifies a CDDB host [default: gnudb.gnudb.org:8880].
device
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 -v causes 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.
[n]
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.
[track1-trackN ...]
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 device. 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.
[track1-trackN ...]
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 cdplay command.
Inject the disc.
on | off
Enable/disable the debugging mode of the CD device driver.
devname
Make devname the current CD device. This is the equivalent of quitting cdio and restarting with a different device.
Eject the disc.
A synonym for quit.
Print the list of available commands.
Print the Table Of Contents (TOC). If -v is also specified, the current features and current profile is printed. If -v is 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.
[track1[.index1] [track2[.index2]]]
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.
[[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.
[#block [len]]
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 pause command.
lba | 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.
[-ad] [-s speed] trackfile ...
[command line only]  Write a TAO CD containing the specified trackfile.

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).
speed
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”.
left_channel right_channel
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.
left | | | |
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.

, CDROM
Specifies the name of the CD device to use. If both DISC and CDROM are set, DISC takes precedence. If neither DISC nor CDROM are set, the default is cd0. See also the -f option, above.
Name of the aucat(1) socket to connect to, or path to the audio(4) device to use.

/dev/rcd0c
 

aucat(1), audio(4), audioctl(8), mixerctl(8)

The cdio command is based on cdcontrol, which first appeared in FreeBSD 2.1.

Jean-Marc Zucconi, Andrey A. Chernov, Serge V. Vakulenko, Marc Espie

March 31, 2022 OpenBSD-7.1