I've searched around and haven't information on how to easily convert from ogg to mp3 in Linux. This is what I've found out.
ogg2mp3.pl
I once ran across this script. I searched around and found it. I probably downloaded it from http://marginalhacks.com/bin/ogg2mp3. You can also download it from my copy ogg2mp3.pl. It has some minor modifications. You will probably need to download a few things.
You will need:
lame (or notlame). For debian you can get lame from the marillat repository. You can read up on my Debian Tips page.
- ogg123 (comes wtih vorbis-tools in debian)
- ogginfo (also part of vorbis-tools)
- id3tool (same name in debian)
ogg2mp3.pl is a simple script, it doesn't really deal with recursive directories. I'll probably write a small script to go over my collection.
Drawbacks
Converting from one lossy format (ogg) to another lossy format (mp3) will degrade the (already degraded) quality of your music. The best solution is to re-rip the music. However, when the first encoding was done at high quality and the second will probably not be used for a high end system you can get away with it. For example if you enconde some of your oggs to mp3 to carry on a portable mp3 player while you bike.