RSS

How to convert MP3s to OGG Vorbis (and more) in Ubuntu/Debian

Tue, Feb 27, 2007

ArsGeek, Linux, Ubuntu, howto

Talk about it in our Forums

Here’s two ways to convert your mp3’s (which are in a proprietary format) into .ogg files. Ogg Vorbis is a free and open format. You could use these files in just about any linux media player and in lots of the more grown up players for other operating systems.

The first way is via command line. You’ll need to install a few tools if they’re not already present. Lets go to Applications-> Accessories-> Terminal and type the following:

sudo apt-get update
sudo apt-get install mpg321 vorbis-tools

Once that’s done, you’ll have everything you need to convert your files!

Now, move to the directory where your music is. In my case, it’s in /media/sda4/music

cd /media/sda4/music

I have an mp3 called lameband.mp3 that I want to convert. Type the following to convert it:

mpg321 lameband.mp3 -w raw && oggenc raw -o output.ogg

After a bit of thinking, your computer will spit out the file in Ogg Vorbis format.

Here’s a bit more graphical way to do this via Nautilus Scripts.

Again, we’ll have to install the script. Once we do that, we’ll enable it. Back in a terminal session:

sudo apt-get install nautilus-script-audio-convert

Once that’s done, we’ll enable it by typing:

nautilus-script-manager enable ConvertAudioFile

Now, open up a new Nautilus session by going to Places -> Wherever_your_music_is_at

Once there, right click on a file, choose Scripts -> ConvertAudioFile. This will bring up some options for you to choose.

The first will ask you what extension you want. Choose ogg.

Next it will ask you what to do with the Metatags. If you’re not sure, choose “Pass the metatags on to the new files“.

Last, it will ask you about sound quality. The higher the number, the better the quality.

Enjoy your music!

Technorati Tags: , , , ,

Click the icon, share the link:
  • Digg
  • del.icio.us
  • MisterWong
  • Furl
  • Reddit
  • Technorati
  • BlinkList
  • feedmelinks
  • PopCurrent
  • Blogosphere News
  • Facebook
  • Fark
  • Mixx
  • Slashdot

This post was written by:

arsgeek - who has written 1980 posts on ArsGeek.


Contact the author

4 Comments For This Post

  1. JMC Says:

    Keep in mind that the resulting ogg file’s quality will be degraded due to going from one lossless codec to another.

  2. Robert Says:

    Have you thought about using sound converter? I like using the command line but sometimes I’m lazy.

    http://soundconverter.berlios.de/

  3. Bjørn Says:

    This really is a horrible idea, you should only transcode from one lossy format to another if you _REALLY_ have to.

    http://wiki.hydrogenaudio.org/index.php?title=Transcoding

  4. kemar Says:

    i don’t understand what to do

1 Trackbacks For This Post

  1. Free your MP3s « 0ddn1x: tricks with *nix Says:

    [...] Free your MP3s Filed under: Uncategorized — 0ddn1x @ 2007-03-03 14:42:33 +0000 http://www.arsgeek.com/?p=1044 [...]

Leave a Reply