2022-12-22 11:53:22 -08:00
|
|
|
.\" $OpenBSD: cdio.1,v 1.68 2022/12/22 19:53:22 kn Exp $
|
2003-02-18 01:42:33 -08:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1995 Serge V. Vakulenko
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\"
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by Serge V. Vakulenko.
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2000-12-24 03:34:09 -08:00
|
|
|
.\"
|
2022-12-22 11:53:22 -08:00
|
|
|
.Dd $Mdocdate: December 22 2022 $
|
1996-08-23 16:42:28 -07:00
|
|
|
.Dt CDIO 1
|
1999-06-04 18:21:16 -07:00
|
|
|
.Os
|
1996-08-23 16:42:28 -07:00
|
|
|
.Sh NAME
|
|
|
|
.Nm cdio
|
2006-06-10 07:05:45 -07:00
|
|
|
.Nd compact disc control utility
|
1996-08-23 16:42:28 -07:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm cdio
|
2000-12-24 03:34:09 -08:00
|
|
|
.Op Fl sv
|
2010-07-26 14:14:39 -07:00
|
|
|
.Op Fl d Ar host : Ns Ar port
|
1998-09-22 21:32:33 -07:00
|
|
|
.Op Fl f Ar device
|
2022-12-22 11:53:22 -08:00
|
|
|
.Op Ar command Op Ar arg ...
|
1996-08-23 16:42:28 -07:00
|
|
|
.Sh DESCRIPTION
|
1998-09-22 21:32:33 -07:00
|
|
|
The
|
1999-06-04 18:21:16 -07:00
|
|
|
.Nm
|
2006-06-10 07:05:45 -07:00
|
|
|
program is a compact disc control utility,
|
2017-03-19 11:40:11 -07:00
|
|
|
with support for playing audio CDs and Track-At-Once (TAO) CD writing.
|
1996-08-23 16:42:28 -07:00
|
|
|
.Pp
|
1998-09-22 21:32:33 -07:00
|
|
|
If no command is given,
|
1999-06-04 18:21:16 -07:00
|
|
|
.Nm
|
2006-06-10 07:05:45 -07:00
|
|
|
enters interactive mode, reading commands from the standard input.
|
1996-08-23 16:42:28 -07:00
|
|
|
.Pp
|
2000-03-04 16:28:49 -08:00
|
|
|
The options are as follows:
|
2000-11-09 09:51:53 -08:00
|
|
|
.Bl -tag -width Ds
|
2004-07-30 04:59:03 -07:00
|
|
|
.It Xo
|
|
|
|
.Fl d
|
|
|
|
.Ar host : Ns Ar port
|
|
|
|
.Xc
|
2006-06-22 04:25:01 -07:00
|
|
|
Specifies a CDDB host
|
2020-06-26 12:51:14 -07:00
|
|
|
.Bq default: gnudb.gnudb.org:8880 .
|
1998-09-22 21:32:33 -07:00
|
|
|
.It Fl f Ar device
|
2006-06-22 04:25:01 -07:00
|
|
|
Specifies the name of the CD device, such as
|
2011-06-26 16:45:26 -07:00
|
|
|
.Pa /dev/rcd0c .
|
1998-09-22 21:32:33 -07:00
|
|
|
Both absolute and relative paths to
|
|
|
|
.Pa /dev
|
2006-06-22 04:25:01 -07:00
|
|
|
filenames are possible;
|
|
|
|
the raw partition name is added if needed.
|
2004-07-30 04:59:03 -07:00
|
|
|
.It Fl s
|
|
|
|
Silent mode.
|
|
|
|
Do not print table headers or human-readable comments.
|
|
|
|
.It Fl v
|
|
|
|
Verbose mode.
|
2010-07-26 14:14:39 -07:00
|
|
|
A second occurrence of
|
2010-02-28 18:09:44 -08:00
|
|
|
.Fl v
|
|
|
|
causes even more information to be printed.
|
1996-08-23 16:42:28 -07:00
|
|
|
.El
|
|
|
|
.Pp
|
2000-03-05 12:09:19 -08:00
|
|
|
The available commands are listed below.
|
|
|
|
Only as many characters as are required to uniquely identify a command
|
|
|
|
need be specified.
|
2007-07-20 02:06:17 -07:00
|
|
|
If no command is given,
|
|
|
|
only a track number or range,
|
|
|
|
then
|
2000-03-05 12:09:19 -08:00
|
|
|
.Ic play
|
2007-07-20 02:06:17 -07:00
|
|
|
is assumed.
|
2004-07-30 05:30:33 -07:00
|
|
|
.Bl -tag -width Ds
|
2006-05-30 18:14:41 -07:00
|
|
|
.It Ic blank
|
|
|
|
Minimally blank the disc.
|
2009-06-02 17:45:59 -07:00
|
|
|
.It Ic cddbinfo Op Ar n
|
2007-11-12 12:37:42 -08:00
|
|
|
Print the Table Of Contents (TOC) after matching the disc with the CDDB.
|
2004-07-30 05:30:33 -07:00
|
|
|
In case of multiple matches, reissue the command with
|
|
|
|
.Ar n .
|
|
|
|
.It Ic cdid
|
2006-06-22 04:25:01 -07:00
|
|
|
Print the disc ID that will be used for matching with the CDDB.
|
2007-05-29 15:32:36 -07:00
|
|
|
.It Ic cdplay Op Ar track1-trackN ...
|
2007-05-25 20:00:03 -07:00
|
|
|
Play specified tracks from disk.
|
|
|
|
Unlike
|
2007-07-20 02:06:17 -07:00
|
|
|
.Ic play ,
|
|
|
|
the CD player need not be connected to an audio device;
|
|
|
|
instead it rips tracks from disk and outputs audio data to
|
2019-10-02 00:43:20 -07:00
|
|
|
the default audio device.
|
2007-05-25 20:00:03 -07:00
|
|
|
Both individual tracks and track ranges may be specified.
|
2022-03-31 10:27:13 -07:00
|
|
|
If range is specified in descending order, tracks will be played in descending order.
|
2007-05-25 20:00:03 -07:00
|
|
|
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.
|
2007-07-22 14:27:55 -07:00
|
|
|
.It Ic cdrip Op Ar 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
|
|
|
|
.Ic cdplay
|
|
|
|
command.
|
2004-07-30 05:30:33 -07:00
|
|
|
.It Ic close
|
|
|
|
Inject the disc.
|
|
|
|
.It Ic debug Ar on | off
|
|
|
|
Enable/disable the debugging mode of the CD device driver.
|
|
|
|
.It Ic device Ar devname
|
|
|
|
Make
|
|
|
|
.Ar devname
|
|
|
|
the current CD device.
|
|
|
|
This is the equivalent of quitting
|
|
|
|
.Nm
|
|
|
|
and restarting with a different device.
|
|
|
|
.It Ic eject
|
|
|
|
Eject the disc.
|
2005-01-22 02:21:26 -08:00
|
|
|
.It Ic exit
|
|
|
|
A synonym for
|
|
|
|
.Ic quit .
|
2004-07-30 05:30:33 -07:00
|
|
|
.It Ic help
|
|
|
|
Print the list of available commands.
|
|
|
|
.It Ic info
|
2007-11-12 12:37:42 -08:00
|
|
|
Print the Table Of Contents (TOC).
|
2010-02-28 18:09:44 -08:00
|
|
|
If
|
|
|
|
.Fl v
|
|
|
|
is also specified,
|
|
|
|
the current features and current profile is printed.
|
|
|
|
If
|
|
|
|
.Fl v
|
|
|
|
is specified twice,
|
|
|
|
the complete list of supported profiles
|
|
|
|
and a hex dump of each current feature is printed.
|
2004-07-30 05:30:33 -07:00
|
|
|
.It Ic next
|
|
|
|
Play the next track.
|
|
|
|
If we're at the last track, stop.
|
|
|
|
.It Ic pause
|
|
|
|
Stop playing.
|
|
|
|
Do not stop the disc.
|
2009-06-02 17:45:59 -07:00
|
|
|
.It Xo Ic play
|
2010-09-19 14:30:04 -07:00
|
|
|
.Oo
|
|
|
|
.Ar track1 Ns Op Ar .index1
|
|
|
|
.Op Ar track2 Ns Op Ar .index2
|
|
|
|
.Oc
|
2009-06-02 17:45:59 -07:00
|
|
|
.Xc
|
2009-06-09 15:20:44 -07:00
|
|
|
Play from
|
2009-06-02 17:45:59 -07:00
|
|
|
.Ar track1
|
2009-06-09 15:20:44 -07:00
|
|
|
to
|
|
|
|
.Ar 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.
|
2006-01-22 16:41:10 -08:00
|
|
|
.It Xo Ic play
|
2010-09-19 14:30:04 -07:00
|
|
|
.Oo
|
|
|
|
.Op Ar tr1
|
2009-06-02 17:45:59 -07:00
|
|
|
.Ar m1 : Ns Ar s1 Ns Oo
|
|
|
|
.Ar .f1 Oc
|
2006-01-22 16:41:10 -08:00
|
|
|
.Op Ar tr2
|
|
|
|
.Oo Ar m2 : Ns Ar s2 Ns
|
2010-09-19 14:30:04 -07:00
|
|
|
.Op Ar .f2
|
|
|
|
.Oc Oc
|
2006-01-22 16:41:10 -08:00
|
|
|
.Xc
|
1996-08-23 16:42:28 -07:00
|
|
|
Play from the absolute address
|
1999-06-04 18:21:16 -07:00
|
|
|
(MSF) defined by
|
2006-01-22 16:41:10 -08:00
|
|
|
.Ar m1
|
1999-06-04 18:21:16 -07:00
|
|
|
in minutes,
|
2006-01-22 16:41:10 -08:00
|
|
|
.Ar s1
|
|
|
|
in seconds,
|
|
|
|
frame number
|
|
|
|
.Ar f1 ,
|
|
|
|
to the absolute address defined by
|
|
|
|
.Ar m2
|
1999-06-04 18:21:16 -07:00
|
|
|
in minutes,
|
2006-01-22 16:41:10 -08:00
|
|
|
.Ar s2
|
|
|
|
in seconds,
|
|
|
|
frame number
|
|
|
|
.Ar f2 .
|
|
|
|
If a track number is specified
|
|
|
|
.Pq tr Ns Ar X ,
|
|
|
|
then the minutes, seconds, and frame numbers
|
|
|
|
are relative to the start of that track.
|
|
|
|
Minutes are in the range 0\(en99.
|
|
|
|
Seconds are in the range 0\(en59.
|
|
|
|
Frame numbers are in the range 0\(en74.
|
2009-06-02 17:45:59 -07:00
|
|
|
.It Ic play Op Ar #block Op Ar len
|
2009-06-09 15:20:44 -07:00
|
|
|
Play starting from the logical
|
2009-06-02 17:45:59 -07:00
|
|
|
.Ar block
|
1996-08-23 16:42:28 -07:00
|
|
|
using
|
2009-06-02 17:45:59 -07:00
|
|
|
.Ar len
|
1996-08-23 16:42:28 -07:00
|
|
|
logical blocks.
|
2000-03-05 12:09:19 -08:00
|
|
|
.It Ic previous
|
|
|
|
Play the previous track.
|
|
|
|
If we're at the first track, restart.
|
2004-07-30 05:30:33 -07:00
|
|
|
.It Ic quit
|
|
|
|
Quit the program.
|
2000-03-05 12:09:19 -08:00
|
|
|
.It Ic replay
|
2007-03-26 04:46:07 -07:00
|
|
|
Replay the current track.
|
2004-07-30 05:30:33 -07:00
|
|
|
.It Ic reset
|
|
|
|
Perform a hardware reset of the device.
|
2000-03-05 12:09:19 -08:00
|
|
|
.It Ic resume
|
|
|
|
Resume playing.
|
|
|
|
Used after the
|
|
|
|
.Ic pause
|
1996-08-26 01:22:00 -07:00
|
|
|
command.
|
2004-07-30 05:30:33 -07:00
|
|
|
.It Ic set Ar lba | msf
|
|
|
|
Set LBA
|
|
|
|
.Pq Ar lba
|
|
|
|
or minute-second-frame
|
|
|
|
.Pq Ar msf
|
|
|
|
ioctl mode.
|
|
|
|
The default is minute-second-frame ioctl mode.
|
|
|
|
.It Ic status
|
|
|
|
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.
|
2000-03-05 12:09:19 -08:00
|
|
|
.It Ic stop
|
1996-08-23 16:42:28 -07:00
|
|
|
Stop the disc.
|
2006-05-30 18:14:41 -07:00
|
|
|
.It Xo Ic tao
|
2006-06-01 00:55:10 -07:00
|
|
|
.Op Fl ad
|
2008-06-30 16:35:39 -07:00
|
|
|
.Op Fl s Ar speed
|
2006-05-30 18:14:41 -07:00
|
|
|
.Ar trackfile ...
|
|
|
|
.Xc
|
2006-06-01 00:55:10 -07:00
|
|
|
.Bq command line only
|
2017-03-19 11:40:11 -07:00
|
|
|
\ \&Write a TAO CD containing the specified
|
2006-06-01 00:55:10 -07:00
|
|
|
.Ar trackfile .
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
2006-06-22 04:25:01 -07:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Ds -compact
|
2006-06-01 00:55:10 -07:00
|
|
|
.It Fl a
|
2008-06-23 00:04:50 -07:00
|
|
|
Write files as audio tracks.
|
2008-06-24 07:00:01 -07:00
|
|
|
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.
|
2006-06-01 00:55:10 -07:00
|
|
|
.It Fl d
|
|
|
|
Write files as data tracks (the default).
|
2008-06-30 16:35:39 -07:00
|
|
|
.It Fl s Ar speed
|
|
|
|
Specify a write speed for tracks.
|
|
|
|
.Ar speed
|
|
|
|
may be a numerical value between 1 and
|
|
|
|
the maximum speed supported by the media and drive,
|
|
|
|
or one of the literal strings
|
|
|
|
.Dq auto
|
|
|
|
or
|
|
|
|
.Dq max ,
|
|
|
|
meaning the optimal or maximum speed detected.
|
2011-07-09 11:10:24 -07:00
|
|
|
The default speed is
|
|
|
|
.Dq auto .
|
2006-06-01 00:55:10 -07:00
|
|
|
.El
|
2000-03-05 12:09:19 -08:00
|
|
|
.It Ic volume Ar left_channel Ar right_channel
|
1999-06-04 18:21:16 -07:00
|
|
|
Set the volume of the left channel to
|
1998-09-22 21:32:33 -07:00
|
|
|
.Ar left_channel
|
1999-06-04 18:21:16 -07:00
|
|
|
and the volume of the right channel to
|
|
|
|
.Ar right_channel .
|
2015-02-28 13:51:56 -08:00
|
|
|
Allowed values are in the range 0\(en255.
|
2006-05-31 13:59:32 -07:00
|
|
|
.It Xo Ic volume
|
2015-02-28 13:51:56 -08:00
|
|
|
.Ic left | right | mono | stereo | mute
|
2006-05-31 13:59:32 -07:00
|
|
|
.Xc
|
|
|
|
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.
|
2000-07-05 21:06:53 -07:00
|
|
|
.El
|
2006-06-22 04:25:01 -07:00
|
|
|
.Sh ENVIRONMENT
|
2009-04-10 11:51:44 -07:00
|
|
|
.Bl -tag -width "AUDIODEVICEXXX"
|
2006-10-12 13:38:03 -07:00
|
|
|
.It Ev DISC , CDROM
|
|
|
|
Specifies the name of the CD device to use.
|
|
|
|
If both
|
|
|
|
.Ev DISC
|
|
|
|
and
|
|
|
|
.Ev CDROM
|
|
|
|
are set,
|
|
|
|
.Ev DISC
|
|
|
|
takes precedence.
|
|
|
|
If neither
|
|
|
|
.Ev DISC
|
|
|
|
nor
|
|
|
|
.Ev CDROM
|
|
|
|
are set,
|
|
|
|
the default is
|
|
|
|
.Pa cd0 .
|
|
|
|
See also the
|
2006-06-22 04:25:01 -07:00
|
|
|
.Fl f
|
2006-10-12 13:38:03 -07:00
|
|
|
option, above.
|
2009-04-10 11:51:44 -07:00
|
|
|
.It Ev AUDIODEVICE
|
|
|
|
Name of the
|
|
|
|
.Xr aucat 1
|
|
|
|
socket to connect to, or path to the
|
|
|
|
.Xr audio 4
|
|
|
|
device to use.
|
2006-06-22 04:25:01 -07:00
|
|
|
.El
|
1996-08-23 16:42:28 -07:00
|
|
|
.Sh FILES
|
2011-06-26 16:45:26 -07:00
|
|
|
.Bl -tag -width /dev/rcd0c -compact
|
1998-07-17 16:35:44 -07:00
|
|
|
.It Pa /dev/rcd0c
|
1996-08-23 16:42:28 -07:00
|
|
|
.El
|
2004-07-30 04:59:03 -07:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr aucat 1 ,
|
2020-04-21 22:37:00 -07:00
|
|
|
.Xr audio 4 ,
|
2020-04-21 14:32:26 -07:00
|
|
|
.Xr audioctl 8 ,
|
2020-04-21 22:37:00 -07:00
|
|
|
.Xr mixerctl 8
|
1996-08-23 16:42:28 -07:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
1999-06-04 18:21:16 -07:00
|
|
|
.Nm
|
1996-08-23 16:42:28 -07:00
|
|
|
command is based on
|
|
|
|
.Nm cdcontrol ,
|
2001-08-17 04:13:57 -07:00
|
|
|
which first appeared in
|
|
|
|
.Fx 2.1 .
|
2003-06-10 02:12:09 -07:00
|
|
|
.Sh AUTHORS
|
2014-09-07 18:27:54 -07:00
|
|
|
.An -nosplit
|
|
|
|
.An Jean-Marc Zucconi ,
|
|
|
|
.An Andrey A. Chernov ,
|
|
|
|
.An Serge V. Vakulenko ,
|
|
|
|
.An Marc Espie
|