CD Ripping
Jump to navigation
Jump to search
OK, CD ripping has gone out of style because nobody buys Audio CDs any more, but recently I needed to do just that, so here it goes.
abcde
Install abcde:
sudo apt-get install abcde
Configure a few things:
$ cat ~/.abcde.conf LAMEOPTS="-b 320" OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM} - ${TRACKFILE}' CDSPEEDVALUE=24
Let's rip:
abcde -a cddb,read,encode,tag,move,clean -d /dev/cdrom -o mp3 -N -V
The command basically does the following:
Fetch (and parse) ID3 tags from FreeDB:
cddb-tool query http://freedb.freedb.org/~cddb/cddb.cgi 6 foo bar ...
Rip audio track to disk:
cdparanoia -d /dev/cdrom 7 foo/track7.wav
Encode to e.g. MP3:
lame -b 320 foo/track7.wav foo/track7.mp3
Tag the encoded file:
eyeD3 --set-encoding=utf16-LE --comment=:: -A Album -a 'Artist' -t 'Trackname' -Y 1970 -G 12 -n 7 -N 12 foo/track7.mp3
...cleanup and do the same for the next track.
Jack
TBD