A Better CD Encoder (ABCDE) is a frontend command-line utility that grabs tracks off a CD, encodes them to ogg or mp3 format, and builds a corresponding playlist.
Install it the Gentoo way:
emerge lame
emerge mpg123
emerge abcde
Configuration data is found in /etc/abcde/abcde.conf
and users can have a local $HOME/.abcde.conf configuration file.
ABCDE is a shell script that bases on
A good way to see what the abcde front-end does
is to look at the running processes: ps -ax.
You can check if an audio disc is inserted with: cd-discid /dev/cdrom.
Get CDDB info:
abcde -a cddb -N
This displays information retreived from the CDDB
and creates a local directory abcde.<nnnnnnnn> with various files.
Rip the CD:
abcde -a cddb,read -N
Rip the two first tracks:
abcde -a cddb,read -N 1-2
This creates .wav files which can be played by aplay.
As you might have guessed cddb can be omitted.
Encode the tracks:
abcde -a cddb,encode -N
The compression format and parameters are set in the configuration file.
The compressed files can no more be played by aplay.
Ogg Vorbis files can be played by ogg123 -d oss <track>.ogg
(ogg123 -d alsa doesn't work).
The action encode implies read, if this hasn't been done yet.
Actions are executed in parallel: the first track is encoded as the second one is read.
Tag the tracks:
abcde -a tag -N
This add artist, album, title, ... in the sound file.
The action tag implies cddb and encode.
Order the sound files:
abcde -a move -N
This orders the sound files in a directory tree as specified in the configuration file.
The action move implies tag.
Clean the work directory:
abcde -a clean
This removes the directory abcde.<nnnnnnnn>.
It is the default action when abcde is called with no -a parameter.