mp3 2 ogg converter

Description

mp3 2 ogg converter is a PHP based mp3 to ogg batch (mass) converter, which supports relative quality and copies ID3 tags.

screen shots
long description (from the blog)

Relative Quality

Relative quality means, that the quality of the outputed ogg is relative to the quality (kbps) of mp3.

And why relative quality?

Simple, there are many times, especially if you have lots of mp3s, that you have different qualities (kbps) of them (320, 192, 128,...).
And as you know, 128 kbps ogg has greater quality of 128 kbps mp3. So if you use a static quality for outputing oggs, then you will loose quality in high quality mp3s and loose filespace in low quality mp3s, so the solution is to make the quality relative.

So if we for example encode the files using in normal quality (-nq), an 128 kbps mp3 is equivalent to a 90* kbps ogg (ogg q2) and a 192 kbps mp3 becomes a 128* kbps ogg (ogg q4).

* average bitrate

Why convert to ogg?

Pros
  • smaller filesize
  • patent free codec
  • advanced tags
  • superior quality to mp3 at same kbps (if converting from a loseless codec - flac, wav)
  • is still listenable even at very low qualities
Cons
  • less supported (especially portable hardware players)
  • loss of quality (if converting from another lossy codec - mp3, wma)

Development

Changelog

v 0.1.2 # 14.4.2005
fixed bug: cannot delete file, file not found, when using -d

v 0.1.1 # 13.4.2005

added -ulq (ultra low quality)
added -d (delete mp3 after conversion)

fixed bug: quality lower than -1
fixed bug: where filename started with ( or )
			

Todo

switch to rename files relative to their id3s (artist/title)
switch to set the same (id3) genre to files
support for other files
ability to resume the work
show progress (how much files, percent, time elapsed, time remaining)
implementation with windows shell - right click on a mp3/dir (.reg file)
linux support
alternative decoders
make documentation
			

Download

Whole package (win32)
including php, oggenc, lame, getid3

Only the script