Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Grip

REVIEW Debian Packages: grip

Figure 10.3: grip-tracks
Image grip-about Image grip-tracks

Grip is able to obtain information about your CD from the Free CD Database automatically over the web. This information includes the tack details and is displayed under the Tracks tab (see Figure 10.3). You may need to ensure the configuration for the Free CD Database server is set up—see Figure 10.4 for an example configuration. If the CD information is already available locally (because grip or some other CD utility has previously updated the database of disks in ˜/.cddb) then it will be displayed.

Figure 10.4: Here grip is configured to query the Free CD database server to find information about the CD. If this query fails then the non-free database is searched. If the CD information is found in the non-free database and not in the free database you will given the opportunity to update the free database with the information.
Image grip-config-cddbp Image grip-config-cddbs

The process of reading the WAV tracks from an audio CD is called ripping. A popular GNU/Linux ripper is cdparanoia and Grip includes cdparanoia so you do not need to install the package separately. Also supported are the separately installed rippers cdparanoia and cdda2wav. See Figure 10.5 for an example configuration.

The process of converting the WAV encoding to ogg is called encoding and again there are many alternatives. For mp3 encoding supported Debian packages include lame, bladeenc, l3enc, xingmp3enc, mp3encode, and gogo. The lame encoder is a good choice. Once again, see Figure 10.5 for an example configuration.

Figure 10.5: Configuring grip is straightforward. This setup uses cdparanoia to read the Audio CD data and lame to convert the resulting WAV files to mp3. Note also that a track number (%t) has been added to the file name.
Image grip-config-rip Image grip-config-mp3

Grip will rip and encode a CD in separate processes allowing the encoding to happen while the next track is being ripped.

Now we are ready to rip and encode an audio CD. Insert your CD into the CD-ROM drive.

The Tracks tab should list the available tracks. If what you get is a list like that in Figure 10.6 then for some reason the information is not available (probably because you are not connected to the internet or the CD is not know to the databases). In this case, enter the information yourself. This is useful because the information is then recorded in the mp3 file as the ID3 tag. This is used by various mp3 players to display track information. To enter the information yourself click on the Toggle disk editor button (the pencil icon along the bottom row of buttons). This will open up an area for you to enter the relevant information (see Figure 10.6). Once you have enetered the information be sure to share it by clicking on the Submit disc info button with the letter icon.

Figure 10.6: Grip is unable to find the information for this disk.
Image grip-noinfo Image grip-track-edit

Next select the tracks you wish to encode. Click in the Rip column heading to select all tracks. Go to the Rip tab and click on the Rip+Encode button. Sit back and wait. This process takes quite a while and is quite resource intensive (so your games may be slow while you wait). The progress bars on the Rip tab show how things are going.

For each CD a playlist is created in  /mp3 and for each track two files are created, usually somehwhere in  /mp3 as well, depending on the settings in Figure 10.5. You set the location of the playlist in the Config tab under MP3 Options (where you can also tell grip to automatically delete the temporary WAV files). The playlist is identified as an M3U file. The example configuration places both the temporary WAV file and the mp3 file in  /mp3/%a/%d/%t.%n.wav and  /mp3/%a/%d/%t.%n.mp3 respectively. That is, a folder is created having the same name as the artist (%a), and a sub-folder of this having the disc name (%d). Into this sub-folder all of the tracks are stored with names consisting of track number (%t) and track name (%n). So, for example, you might have:

~/mp3/pink_floyd/a_saucerful_of_secrets/04.corporal_clegg.mp3
This scheme works quite nicely but of course use whatever scheme suits you.

If there are problems accessing the CD make sure /dev/sg0 has the correct permissions:

  # ls -l /dev/sg0
  crw-------    1 root     root      21,   0 Mar 15  2002 sg0
  # chgrp cdrom /dev/sg0
  changed group of `/dev/sg0' to cdrom
  # chmod g+rw /dev/sg0
  mode of `/dev/sg0' changed to 0660 (rw-rw----)


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.