1 TITLE: Ripping CDs into MP3 and OGG
2 LFS-VERSION: any (tested on 3.0)
3 AUTHOR: Adam Ottley <aottley@shaw.ca>
6 This hint covers how to setup the tools for ripping and encoding CDs
7 into MP3 or Ogg Vorbis format using the GTK-based Grip frontend. All that is
8 needed for this hint beyond the base system is for XFree86 to be installed.
11 Jan 03/02: Update to new vorbis & LAME versions, add curl.
15 The packages you'll need:
17 curl-7.9.2.tar.bz2 (http://curl.haxx.se/)
18 libao-0.8.2.tar.gz (http://www.vorbis.com/)
20 libvorbis-1.0rc3.tar.gz
21 vorbis-tools-1.0rc3.tar.gz
22 lame-3.91.tar.gz (http://www.mp3dev.org/mp3/)
23 cdparanoia-III-alpha9.8.tar.gz (http://www.xiph.org/paranoia/)
24 gtk+-1.2.10.tar.gz (http://www.gtk.org/)
25 glib-1.2.10.tar.gz (http://www.gtk.org/)
26 grip-2.96.tgz (http://www.nostatic.org/grip/)
35 Curl is a very powerful multi-protocol file-transfer utility. Curl is used by
36 ogg123 from the vorbis-tools package for http access.
38 Build and install curl using the following commands:
40 ./configure --prefix=/usr &&
45 ----------------------------
50 Vorbis is a next-gen audio codec with much better quality than MP3 and no
51 patent strings attached.
53 NOTE: libvorbis may cause a compiler error if compiled with a high level of
54 optimization. If you get a fatal compiler error, try using this patch:
56 http://homepage.usask.ca/~aco907/vorbisrc3.patch
58 First build libao, then libogg, then libvorbis, then vorbis-tools, each with
59 the following commands:
61 ./configure --prefix=/usr/local &&
66 NOTE: Some programs that link to the vorbis libraries for vorbis encoding will
67 encode incorrectly when using rc3 instead of rc2. One such program is KDE's
68 audiocd:/ ioslave. A patch for KDE 2.2.2 that corrects the problem is
71 http://homepage.usask.ca/~aco907/audiocd-vorbisrc3.patch
73 To use this patch, follow these instructions in the kdebase directory:
74 (assuming you already have KDE installed and only want to update the ioslave)
76 patch -Np1 -i ../audiocd-vorbisrc3.patch &&
77 ./configure <your configure options> &&
78 cd kioslave/audiocd &&
83 ----------------------------
86 lame 3.91 (http://www.mp3dev.org/mp3/)
88 After over a year and a half in beta, the LAME project finally has released a
89 new stable package. It is recommended that if you have any intent to make MP3s
90 that you install LAME - it is bar-none the best MP3 encoder there is.
92 There are a couple of optional parts to the LAME package that require other
93 packages. Particularly useful is the nasm assembler, which enables LAME to use
94 processor-specific assembler optimizations for MMX, 3DNow and SSE, speeding up
95 the encoding process. If you choose to install nasm or already have it
96 installed, add --enable-nasm to the ./configure flags for LAME, and the
97 configure script will automatically detect the optimizations that apply to your
100 Install LAME with these commands:
102 ./configure --prefix=/usr/local &&
106 Don't worry if you see that vorbis was not found during the configure step.
107 LAME only builds with Vorbis support using very old versions of the Vorbis
111 ----------------------------
114 cdparanoia III 9.8 (http://www.xiph.org/paranoia/)
116 cdparanoia is the best-known error correcting audio CD ripper in the Linux
119 Install cdparanoia with these commands:
121 ./configure --prefix=/usr/local &&
125 This will set up both shared and static libs plus the command-line ripper.
126 Keep the cdparanoia source directory; you'll need it for compiling Grip.
129 ----------------------------
134 Glib is a library of C functions.
137 Install glib using the following commands:
139 ./configure --prefix=/usr &&
144 ----------------------------
149 The GIMP ToolKit is a popular C GUI toolkit.
152 Install gtk+ using the following commands:
154 ./configure --prefix=/usr &&
159 ----------------------------
164 Grip is a GTK+-based ripping and encoding frontend. It supports the
165 command-line lame and oggenc encoders, and can integrate the cdparanoia ripper,
166 or use the command-line cdparanoia and cdda2wav rippers. The cdda2wav program
167 is a part of the cdrtools package, and install instructions can be found in the
171 Install grip using the following commands:
173 ln -s ../cdparanoia-III-alpha9.8 cdparanoia
174 make PARLIBS="-lcdda_paranoia -lcdda_interface"
175 make PREFIX=/usr/local install
178 Command explanations:
180 ln -s ../cdparanoia-III-alpha9.8 cdparanoia
181 Grip looks for the cdparanoia headers in the cdparanoia subdirectory of the
184 make PARLIBS="-lcdda_paranoia -lcdda_interface"
185 Normally, grip links statically with cdparanoia, which means that if cdparanoia
186 is upgraded grip will not benefit. Changing PARLIBS ensures grip is linked
187 with the dynamic cdparanoia libraries.
190 It's worth looking over the grip man page to find the aliases for title, artist,
191 etc for constructing filenames the way you want and for how to remove
192 underscores and capitalize the filenames. Happy ripping!