Rip music from CD

Now we’ll install abcde and flac which provides our system with the capability to rip CDs headless and convert it to a lossless compressed audio format called FLAC.

sudo apt-get install abcde flac eject

After abcde is installed we edit /etc/abcde.conf. Below you find the uncommented lines. ABCDE is configured to get CD information (artists, tracks, genre, whatever) from CDDB via internet. It rips the cd using cdparanoia from /dev/sr0 (your first CDROM) non-interactively into a temporary directory in /tmp. Output format is FLAC and the flac files are stored on your usb drive in directory /usb/media/cd-rip. After ripping is completed, the CD is ejected.

CDDBMETHOD=musicbrainz
CDDBPROTO=6
HELLOINFO="`whoami`@`hostname`"
NOSUBMIT=y
FLACENCODERSYNTAX=default
CDROMREADERSYNTAX=cdparanoia
PADTRACKS=y
INTERACTIVE=n
LAME=lame
FLAC=flac
ID3=id3
ID3V2=id3v2
CDPARANOIA=cdparanoia
EJECT=eject
METAFLAC=metaflac
CDSPEED=eject
LAMEOPTS='--preset extreme'
FLACOPTS="-f --best"
ACTIONS=cddb,read,encode,tag,move,clean
CDROM=/dev/sr0
OUTPUTDIR=/media/usb/cd-rip
WAVOUTPUTDIR=/tmp
OUTPUTTYPE=flac
OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
VAOUTPUTFORMAT='Various/${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'
ONETRACKOUTPUTFORMAT=$OUTPUTFORMAT
VAONETRACKOUTPUTFORMAT=$VAOUTPUTFORMAT
LOWDISK=n
PLAYLISTFORMAT='${ARTISTFILE}/${ALBUMFILE}.${OUTPUT}.m3u'
VAPLAYLISTFORMAT='${ARTISTFILE}/${ALBUMFILE}.${OUTPUT}.m3u'
EJECTCD=y

Voilá! Insert a CD in your CDROM drive test abcde with

sudo abcde

The tracks should be detected, ripped and stored.

Next step.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s