Search:  
Gentoo Wiki

Rip_Audio_CDs


This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Contents

Introduction

This page explains various graphical (and two nongraphical) option for ripping mp3's on a Gentoo Linux system.

USE Flags

Now is probably a good time to enable some media USE flags. Note: You don't need the ogg USE flag enabled to rip MP3's, but if you want to rip Ogg Vorbis files ( like mp3's but sexier ) you might need that enabled. You should enable the mp3 ogg ( or whatever ) USE flags now. You can do this by editing your /etc/make.conf:

File: make.conf
USE="... mp3 ogg ..."

MP3 Rippers

Sound Juicer

Probably one of the best and easiest audio ripping applications is Sound Juicer. Using Sound Juicer is very simple and self-explanatory, so you should find it easy to use.

Adding Custom Rip-Profiles

If an MP3 Profile is not present you can create one. For that, you will need the packages:

Check if the plugins are already on your system using (adjust for version):

# gst-inspect-0.10 lame
# gst-inspect-0.10 xingmux
# gst-inspect-0.10 id3v2mux

If gst-inspect reports the plugins missing, emerge them. gst-inspect will also show you a list of parameters you can use in the gstreamer pipeline.

With that done, from your user's shell start:

# gnome-audio-profiles-properties

or call the same screen from Sound Juicer by selecting Edit->Preferences->Edit Profiles. Create a profile by using the following gstreamer pipeline for constant bit rate:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc vbr=0 bitrate=192 ! id3v2mux

Or for variable bitrate:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 vbr=4 vbr-quality=6 ! xingmux ! id3v2mux

Quick explanation of the pipeline:

Note that the profile you created / edited must be set to 'active' in order to be used by Sound Juicer. Also you might need to restart Sound Juicer in order to be able to select the new profile.

Also, I'm assuming, but haven't checked, if you are missing a plugin (such as lame, xingmux, etc.) gstreamer will just skip the step. Thus if you find your mp3 files not playable, maybe Lame isn't installed. In the same way, if the mp3's play, but there are no tags, id3v2mux is missing.

GRIP

Another application that will get the job done is grip. It's similar to sound-juicer but adds a lot of nice features for more advanced users making it a bit more confusing for the novice to use.

k3b

Ripping audio-cds with k3b is pretty straight forward.

Insert your audio-cd into your cdrom-drive, and on the left side in the application's main window you see a tree view of the filesystem just like in konqueror. So just select your cdrom-drive and k3b starts reading it and in the background it uses cddb to gather some information about the tracks. You should now see a list of your tracks in the upper mainwindow.

Select Start Ripping from the toolbar in the upper window, and in the dialog that just popped up, choose the file format you wish your tracks to be converted to, specify the base directory (where you want to store the converted files), and hit Start Ripping.

K3b will then fire up a dialog showing the progress of the rip-process.

If everything went fine you just ripped your audio-cd.

abcde

abcde (A Better CD Encoder) is highly configurable through the file /etc/abcde/abcde.conf. The file is heavily commented and should be simple to change. The most important sections are those on naming files, where the ripped files are stored and the format of files. Once it is configured ripping is simply a matter of popping a cd into your drive and typing abcde into a shell.

KAudioCreator

If you're running KDE you can find it under K Menu > Multimedia > KAudioCreator

The first time you run it, it will ask you to choose an encoder. So open the Configure KAudioCreator dialog under Settings and choose the Encoder section of the dialog. Then choose the encoder that reflects the type of media that you're trying to create.

Once you have that setup, tweak the various other options that might interest you. Then on the main window, tell it what device your ripping from. (possibly /dev/cdrom or /dev/hdc or /dev/hdd) It should automagically open the CD's playlist. And at this time it will attempt to query CDDB for track and album (etc) information.

Select the tracks that you want ripped and select Rip Selection under the File menu. It will then rip the tracks to the directory you specified in the Configuration dialog. You can watch it work by selecting the Jobs tab.

rip

Rip is a console cd ripper that has a ton of options and can rip to various formats in addition to MP3. The easiest way to use rip is to use rip -S, the so-called super lazy option. This will pull the album data out of CDDB (if you're online, of course), rip all the tracks, move them to a directory with the album's name and also generate a .m3u list for you.


Last modified: Tue, 19 Aug 2008 23:54:00 +0000 Hits: 24,376