README for auto-ripping package

What you need:

cddb.pl Perl script (here: cddb-modified.pl)
cdparanoia
lame (or notlame/toolame/other encoder, but with more changes in cddb.pl)

I've used and modified the cddb.pl script, mainly in the subroutine for
writing lame output. Check there. There is also changes in the user part,
so that user input is not needed (check the config{input} variable).

Run the autorip.sh shell script, it runs the cddb-modified.pl Perl script,
with switch "-l" for lame output. It keeps the Perl script running in an
infinite loop, with 60 seconds of delay between invoking it.

The cddb Perl script will just exit if there is no cd in the tray (or the
tray is open). The script does not mount the disc, therefore the tray should
not close automatically.

It will eject the tray and then exit if the cd could not be matched in cddb
(freedb).

If there is a cd in the tray, the tray is closed and the cd is matched in
cddb (freedb), it outputs cdparanoia/lame commands to "run-<discid>.sh",
and the Perl script runs this shell script. It also begins with checking the
file "ripped.log", so that the disc-id has not been already ripped.

Furthermore, it creates the directory structure (artist/album) from the point
standing. The cdparanoia/lame shell script then cd:s into it, and after ripping
it cd:s out of it. At the end, an entry is written to ripped.log. The run-
shell script is kept as is for debug/manual running.

---
#!/bin/sh
cd Earthbound/Earthbound_CD#1
cdparanoia 1; lame --vbr-new --ta "Earthbound CD#1" --tl "Earthbound" --tt "Everyone" cdda.wav 01_Everyone.mp3; rm -f cdda.wav
---[extract of the shell script produced by the Perl script]

So, typical usage:

1. Insert an audio disc into the cd-rom drive. Close the tray.
2. Run "autorip.sh".

3. Ripping or rejecting of audio cd will take place.
4. Tray is ejected.
5. Replace with a new audio disc at any time. Close the tray.
6. Back to point 3, until user breaks the autorip.sh script.

Whenever you don't want to rip any more audio cd:s, just abort the autorip.sh
shell script with Ctrl-C.

In the archive rip-1.07.tar.gz you will find the program/script called "rip".
It includes two Perl modules: CDDB_get and MP3-info. The CDDB_get module creates
the cddb.pl script that I've modified.

2003-04-17

Rolf Johansson,
<rojo@nocrew.org>

