GetCdTimes -- Get Audio CD Timings

Bob van der Poel

14 March 2006

Version 1.2

Getcdtimes Scans an audio CD and returns the cddb ID, track offset data and track timings. It was written to return data to the Vmusic Database program.

Table of Contents

Synopsis

getcdtimes [ -i -t -f -c -s -v -h ] [ device ]

Description

Getcdtimes was written to get CD timing information and return it to the Vmusic database. It is necessary since I could not figure a way to do this in Python.

Options

-i Does not display the CDDB id.

-t Does not display the track timings.

-f Does not display the frame information.

-c Displays the grand total for the timing.

-s Displays time in seconds (default is MIN:SEC).

-v Displays the program name and version.

-h Displays a brief help message.

device The device to use to read from. By default, this is /dev/cdrom.

Installation

Installing this program is easier than this section might indicate. In an ideal world you would just let the ``make install'' routine copy the binary to the destination directory. The copy will work, but the program may not. Here's what you need to do (unfortunately, you'll have to be ``root'' for these steps to work).

The problem you have is that getcdtimes accesses hardware via the /dev/cdrom device. Normal Linux conventions say that a normal user shouldn't be able to do things like that.

Oh, and before we start, things are even more complicated. On most systems /dev/cdrom is a link to a real device; probably /dev/hdc or /dev/scd0. If this is the case, translate ``/dev/cdrom'' in the following discussion to the appropriate device. (For example, if it says ``chmod 666 /dev/cdrom'' you'll probably end up using ``chmod 666 /dev/scd0''.)

So, there are three ways to get it working:

Program Operation

Insert a disk in your CD ROM drive and enter the command getcdtimes. The disc will be scanned and the following information will be displayed on stdout:

Bugs

None that I know of. Please report any problems to me: bvdpoel@kootenay.com

License

The program getcdtimes was written by Bob van der Poel in 1998-2002 and is copyright Robert van der Poel, 1998-2002.

It can be freely distributed according to the terms of the GNU General Public License (see the file ``COPYING'').

If you enjoy the program, make enhancements, find bugs, etc. send me a note:
bvdp@xplornet.com

Or a postcard (or even money) to PO Box 355, Porthill, ID 83853.

Current version maintained at: http://users.xplornet.com/~bvdp

This document was auto generated with Latex2man from LaTeX source.