Principles Of MP3
Principles Of MP3
Written by Harry Fairhead   
Article Index
Principles Of MP3
The Licensing Problem

The licensing problem

You might well think that the only real legal problems with MP3 are the lawsuits aimed at stopping people swapping music for free but there is another side to the story.

As an end user MP3 appears to be free but there are some hidden costs. The MP3 standard was ratified by the ISO and some source code, “the reference source code”, was issued to let programmers see exactly how to implement MP3. The source code is free to download – but don’t compile it or you will trigger a patent and have to pay a royalty!

The point is that the Fraunhofer Institute did most of the development work on MP3 and it has patents on some of the key technologies, even though they are part of the ISO standard.

Under these patents the Fraunhofer Institute (in co-operation with Thompson) says that you can look at the ISO source code but you can’t compile it and you can’t distribute binaries that result from compiling it.

You can use it to develop your own decoders and give these away but if you charge for the decoders, hardware or software, you have to pay $0.75 per sale In the case of encoders the charge is $2.5 to $5 per encoder distributed, irrespective of whether you give it away or charge for it. Finally, if listeners have to pay for music in MP3 format then the royalty is 2% per sale.

So as you can see MP3 isn’t free and this is the reason that Microsoft doesn’t include an MP3 decoder with every copy of the Media Player up to version 9 even though a decoder is available. Version 10 and higher include an official Fraunhofer decoder.

If you want to create an MP3 player and give it away then you could do it without a licence, subject to a few conditions, but you have always needed a licence to even give away an encoder. However this doesn’t stop many programmers giving away MP3 encoders/decoders as freeware – presumably they just go unnoticed.

There are lots of free MP3 encoders. Just do a web search and you will find ten or twenty. The best known is LAME,, which is an open source MP3 encoder. (See our project .NET MP3 for details of how to run the LAME encoder under the control of .NET.) If you want a plug-in for the, admittedly old, Windows Media player 9, however, the cost is around $9.00.

The patent situation is so complicated that it is difficult to even predict when all of the significant patents will expire. It was estimated that MP3 could be patent free by 2012 but licencing of MP3 continues. 

Beyond MP3

There are a number of alternatives to MP3, which is now considered an old technology.

Microsoft offers its alternative WMA, Windows Media Audio, as part of the Media player and you can save files in this format. In response MP3 was upgraded to MP3Pro, which gives a 2x improvement on MP3 compression ratios – with the huge advantage of backward and forward compatibility. You can play an MP3Pro file on an MP3 player and vice versa. Of course, you don’t get the benefits of MP3Pro unless you use an MP3Pro player but at least it works.

There is also the strangely named Ogg Vorbis ( This is an open source audio compressor that has no royalty or licensing problems at all.  It is also supposed to be better than MP3, MP3Pro or WMA for the same sort of compression ratios. Given its licence conditions, or rather lack of them, you would think that the music industry would be falling over itself to make use of it. Not so because the Ogg Vorbis has no rights control which stops people from copying music Napster style. However, WMA does and this, or something like it, is more attractive to the music industry, which seems to worry more about pirating than licensing.

In this day of very large storage it might seem that lossy compression for audio isn't essential and if you want maximum quality then a lossless compression should win out every time. However so far this hasn't happened. Recent attempts to create "high end" digital audio haven't really taken off and perhaps the reason is that users who are really interested in high quality audio have retreated to vinyl!

Related Articles


Data Compression The Dictionary Way

Information Theory       

Claude Shannon - Information Theory And More       

Google Zopfli - Nice Compression Shame About The Speed       

Coding Theory       


To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, FacebookGoogle+ or Linkedin,  or sign up for our weekly newsletter.




Recursion is often said to separate real programmers from the pack. What is it that makes it so powerful? What is it that makes it so difficult? What is the "shape" of recursion as a flow of control?

 [ ... ]

Introduction To The Genetic Algorithm

Genetic algorithms pop up all over computer science and applied computing. They are simple, easy to apply and easy to understand. What mystery remains is why they work at all? How can something seemin [ ... ]

Other Articles




blog comments powered by Disqus









RSS feed of all content
I Programmer - full contents
Copyright © 2017 All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.