Feb 08 2008

Convert your MP3 files to Ogg Vorbis with mp32ogg

Published by Jon at 9:35 pm under Linux

Recently, I wanted to convert all my MP3 music library to the more open Ogg Vorbis format. I also wanted to reduce the bitrate (from 320 kbps to 156 kbps) so I can stream my music over the internet even with a low speed connection. I know, I know, converting from a lossy format to another lossy format is not recommended and it decreases the audio quality. Anyway, it did a pretty good job and I am very pleased with the results.

So I searched the web and found a very useful script called mp32ogg. That script can convert a whole directory tree recursively. You can choose the desired quality and it will also transfer the meta information (artist, album, track, song title, etc). It even lets you change the file name according to the meta information and will also delete the old mp3 files if you want to. It is a simple Perl script and it is easy to modify to fit your needs if you need to. Here is how to do it in under Ubuntu.

First you need to install it

sudo apt-get install mp32ogg

Then just use the script on the directory containing files you want to convert. The following command will also delete old mp3 files:

mp32ogg --delete --quality=5 <path-to-mp3-directory>

That’s it, you are done. Just wait for the script to finish converting all your library. For more options, just type:

mp32ogg --help

Have fun!

4 responses so far

4 Responses to “Convert your MP3 files to Ogg Vorbis with mp32ogg”

  1. Jatnika says:

    You made some good points there. I did a search on the topic and found most people will agree with your blog.

  2. donagorr says:

    I congratulate, your idea is brilliant

  3. bandsxbands says:

    My friend and I were recently talking about how modern society has evolved to become so integrated with technology. Reading this post makes me think back to that debate we had, and just how inseparable from electronics we have all become.

    I don’t mean this in a bad way, of course! Societal concerns aside… I just hope that as the price of memory decreases, the possibility of downloading our brains onto a digital medium becomes a true reality. It’s a fantasy that I daydream about all the time.

  4. Chris says:

    try http://www.oggconvert.com

    online tool, nothing to download

Leave a Reply