Rubyripper and OggOpus

From Hydrogenaudio Knowledgebase

This page describes how to securely rip audio cds to the lossy compression format Opus on GNU/Linux operating systems.

Software Needed

rubyripper
may be the most mature secure cd ripping application for GNU/Linux systems. See rubyripper#Installation for installation instructions.
opus-tools
are a set of command-line utilities to encode, inspect, and decode Opus files. Get them via package manager from your distributor's standard repositories if you're using something like Ubuntu 12.10 or later or recent Fedora already. Otherwise install from source. (You'll have to install opus runtime library first.)
cdrdao
Not strictly necessary but you may want to be able to rip to disk images with cue sheet and detect pregaps and pre-emphasis. cdrdao should be available from your distribution's default package repositories.

Configuration

  1. Look up the read offset of your CD-ROM drive in AccurateRip offset database. (Command line tool lshw may help you find out what cd drive you have. The “Ripping status” displayed during a ripping process and the log file created after a ripping process also contain the name of the used drive model.)
  2. Click “Preferences” and insert the drive offset.
  3. Go to the “Codecs” tab and tick the “Other” box (and maybe untick other boxes like the preselected “Vorbis” box). Enter the path to the Opus encoder (e.g. /usr/bin/opusenc) followed by  --bitrate 128 %i %o.opus in the field behind the “Other” box. Adjust the proposed “128” kbit/s to your desired bitrate.

“Rip cd now!”

  1. Enter a cd into the drive
  2. Optionally enter metadata or edit automatically fetched metadata
  3. Click the button “Rip cd now!”.

After the ripping process is finished you'll find the files in a subfolder named “other” inside your home directory.