cd2mp3.sh is a little script I wrote to aid in using LAME . It works in both OSX and Linux.
Here is the help screen:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cd2mp3.sh v1.02 - rip CDs to MP3s easily using LAME
Usage: ./cd2mp3.sh [options]
Directives:
-f <cd folder> (mount point for your media - e.g. /Volumes/Bach)
-r <artist>
-a <artist name>
-y <year>
-g <genre> (e.g. Rock, Classical, etc..)
Options:
-q [LAME quality string] (e.g. "-V 1 --vbr-new -q0 --lowpass 19.7")
-d [disc number] (e.g. -d 3)
-c [comment]
-i [image file name]
-n (no arguments used here - if present LAME will set the track numbers)
Examples:
cd2mp3.sh -r “Ulrich Schnauss” -a “A Strangely Isolated Place” -y 2003 -g “Electronic” -i a_strangely_isolated_place.jpg -f “/Volumes/A Strangely Isolated Place” -n
or in the case of a two disk set, with comments, and a custom quality string:
cd2mp3.sh -r "Ulrich Schnauss" -a "Far Away Trains Passing By" -y 2005 -g "Electronic" -i ./far_away_trains_passing_by.jpg -f "/Volumes/Far Away Trains Passing By" -c "Encoded using LAME 3.98.2" -n -q "-V 2 --vbr-new -q0 --lowpass 19.7" -d 2
You can download it here: cd2mp3v102.zip
For Linux, you will need to download cdda2wav first, extract the audio tracks from your audio cd onto your hard disk, and then rip the audio wav files to mp3.
Use the command:
sudo cdda2wav -alltracks -cddb=1 -cddbp-server=freedb.freedb.org -cddbp-port=8880
This will place all the tracks into files such as audio_01.wav, audio_02.wav, etc..
You can then run cd2mp3.sh on these tracks.