Monday, 15 September 2008

Tip of the Day: Rip FLAC and WAV to Ogg Vorbis

Ogg Vorbis is a free lossy audio encoder developed by, and it has the advantage over MP3 to have a better quality and smaller size (at least for files encoded at a low bitrate), and it's not governed by any patent. I always loved this format and my entire music collection is consisted of Vorbis files. They can be read by any player by default (like Amarok, Rhythmbox, Banshee and so on) without the need to install codecs for proprietary formats.

To install the package which contains the encoder, along with several other Vorbis tools and an Ogg Vorbis player, use:

sudo apt-get install vorbis-tools

This package contains the following tools:
- oggenc: the encoder
- oggdec: the decoder
- ogg123: Ogg Vorbis player
- ogginfo: tool to display Ogg information
- vcut: tool to split Ogg files
- vorbiscomment: tool to edit tags for Ogg Vorbis files

To rip FLAC (Free Lossless Audio Codec) files, use for example:

oggenc -b 192 file.flac


oggenc -q 6 *.flac

The first one will encode file.flac into Ogg Vorbis at an average bitrate of 192 kbps, while the second command will rip all the files ending in .flac in the current working directory using the quality factor of 6. For more details, use oggenc --help or man oggenc.

The same goes for WAV files:

oggenc -b 128 *.wav

Related articles
Tip of the Day: Split FLAC or WAV Files Using a CUE File

Updated: Sep 16, 2008

1 comment:

Dan Craciun said...

Also, a while ago I wrote a more comprehensive tutorial for working with audio files using CLI tools, here.