MP3: nothing to do with piracy. Really.

MP3: nothing to do with piracy. Really.


Mylatest blog entry began with this paragraph:

Messing with MP3 files is, for some people, a synonym for illegal use of copyrighted music. Well, actually it's not.

The reason I wrote that incipit remained unclear to many, that didn't seeany link between this first phrase and the rest of the article. I therefore decided towrite a few blog entries on the subject. This time I'll talk about theMP3 format in itself.

MP3 is a popular lossy audio compression format. In some ways, MP3 is for audiofiles what JPEG is for still images. JPEG, as you may know, is a lossyimage compression format; it's effectiveness builds on the fact that JPEGremoves information that the human eye cares less for. Similarly, MP3s removeinformation that are less audible to human hears.

A JPEG compressed image is different from the original one, and differencesare quickly spotted by a watchful eye; similarly, if you listen carefullyto an MP3 file you can feel that there are sounds somewhat degraded.

MP3 as a format owes its success to a couple of factors. The first is a very goodcompression/quality ratio; the second is our old beloved Napster, whichin 2000 made itvery easy to search for and exchange MP3 audio files;it also made peer-to-peer programs so popular that someone thought wewere at the beginning of a new frontier in internet services, despite the fact thatthe P2P paradigm in itself was quite old instead (think about theold talk UNIX utility to get an idea).

But success came at a cost: a lot of the files shared with Napster wereillegally shared copyrighted music. So, for some, MP3 became synonymous with "illegal audio files". My latest blog entry came from here: having anMP3 file doesn't mean that you have something illegal in your hands.

I could stop here telling the story of MP3, but since this isFree Software Magazine there something more that's worth saying.To cut a long story short, MP3 is not a free format, despite its widespreaduse and its being a de facto standard.Thomson holds the patents on theformat and it's actively trying to enforce those patents all over theworld.

But wait, there is more. TheFraunhofer Institutewas involved in the creation of the format since the beginning, andcreated the first MP3 encoder. Well, it holds a license that allows itto require a licensing fee for all programs that use the MP3 format(both encoders and decoders); Thomson manages all the licensingprocedures on their behalf. For more information you can have a lookat Fraunhofer'sFAQ onMP3 and at themp3licensing.com web site.

All these licensing and patent issues made the free software communitydevelop a new audio file format that's now known asOgg Vorbis. Let's cut a longstory short again, and say that Ogg is sort of a multimedia containerfile format, that is a specification for files that may contain audio and/orvideo tracks. Vorbis, in turn, it's an audio encodingformat. As you may now have guessed, Ogg Vorbis files are Vorbis audiostreams contained in Ogg containers. Ogg Vorbis combines both the advantagesof MP3 (a high compression ratio and high quality for audio files) andbeing a patent-free, open file format, something that FSM readers mayappreciate. It hasn't the same popularity of MP3, nevertheless it's supportedby many media players, both free (like XMMS) and non free (like WinAMP).It's also supported by a number ofportable audioplayers.

And that's all for this post. Next time I'll talk about legal issuesconnected to the use of MP3 files, and in particular about thelegal issues related tomyprevious post. I'll be helped in this effort byMassimo Farina, an Italianlawyer and a dear friend of mine, who's specializing in legal issuesrelated to new technologies. Until then, enjoy FSM!

Category: 

Comments

Terry Hancock's picture

The biggest problem with Ogg format is that not many portable/embedded players support it. This means that if you store your compressed audio in Ogg format, and you want to listen to it on cheap embedded players, you will have to transcode the data to MP3 anyway.

Which is a pain. So many people choose to just keep their music in MP3 format.

This isn't much of an issue for me, because I just don't have any embedded compressed-music players! But every time I think about buying one, I agonize over the process of finding a good one that supports Ogg (not much luck at the Walmart -- I'd have to buy something online, probably).

Obviously, one reason for MP3's success over Ogg is that it's been around longer. But of course, WMA is newer than either, and many new players support it, but not Ogg. One might suspect a conspiracy!

However, I have learned that at least part of the problem is (or at least was) technical: Ogg apparently uses a floating-point based algorithm to do its compression, whereas both MP3 and WMA use integer-based math. This has a significant impact on the CPU requirements for hardware that processes them. The Ogg format was designed, I believe, with Intel-based PCs in mind, as the most efficient way to use that hardware for compression (and many people seem to think that Ogg files produce better fidelity/compression performance than MP3), but they didn't really accomodate the needs of embedded devices.

Thus many devices just don't have the CPU cycles needed to process Ogg.

IIRC, however, there were some improvements in this direction (an integer-based algorithm for Ogg files), but I haven't kept up with that.

Mitch Meyran's picture

Vorbis does indeed use a floating point encoding process - and so do WMA and MPEG-1 Layer 3 (mp3). Encoding the files is one thing; decoding them is another, and you can actually decompress MP3 files with integer based processes. But so can you Vorbis! The 16-bit integer based decoder is free and is called Tremor. In matters of CPU cycles, Vorbis demand isn't as high as you'd think. Hovever, and contrary to mp3, it requires a few more kilobytes of fast RAM (32kb if I'm not mistaken) for the actual decompression - something which can actually be hard to allocate on embedded devices (mp3 requires 4kb if I'm not mistaken).
mp3 starts with cutting off the higher frequency range and muffles the sound the higher the compression ratio is; it is bitrate-based, although an abuse of its format definition allows it to work in a quality based (variable bitrate) compression scheme (see LAME). It includes several filter passes so as to remain audible (though eventually muffled) in high compression.
WMA 'simplifies' the sound wave 'appearance' until it reaches the required bitrate. It is extremely fast due to almost no filters being applied - which provokes ringing, metallic noises and general nasty harmonics to be generated in, say, 64k/sec compression (while an MP3 compressed at this rate will be automatically downsampled to 22 kHz and muffled, but much easier on the ear)
Vorbis won't reach 64 k/sec if you require quality to remain high (it is a variable bitrate encodig process) but on comparable sound quality it'll beat WMA by 10-15% and variable bitrate MP3 by 20%. It won't encode non stereo, lower-than-CD quality efficiently though.
---
A computer is like air conditioning: it becomes useless when you open windows.

Terry Hancock's picture

Wow. Thanks for coming up with the facts on Ogg/WMA/MP3. I feel greatly enlightened! :-)

Mauro Bieg's picture
Submitted by Mauro Bieg on

I'm looking forward to your next blog post! Maybe you'll also want to write something about so called 'piracy', legal issues and what 'intelectual property' does to creative works.

Please have a look at the political Pirate Party which formed in Sweden around the worlds largest BitTorrent Tracker The Pirate Bay and the anti-copyright organisation Piratbyran.

This is a movement which aims to reform todays restrictive copyright system with ideas of for example Lawrence Lessigs Free Culture in mind. A lot of the ideas of the Free Culture Movement are actually derived from the ideals of the free software movement.

Rom Feria's picture
Submitted by Rom Feria on

Well, I guess the very nature of Ogg, i.e. open, is the hindrance to adoption. Since it is open, I dread to see a DRM slapped on it so that recording companies can make sure that their music is difficult to pirate. The reason why AAC with Apple's Fairplay and WMV of Microsoft with their own DRM are gaining advantage over open formats.

Another file format that I have encountered is FLAC, which uses lossless compression. Although I have yet to see a device supporting it, it may also be a good alternative to other proprietary file formats.

Mitch Meyran's picture

...there are players that support Vorbis and/or FLAC. The problem with the latter is the much longer encoding process required, and the lower compression ratio (highest compression will yeld a file that is around 60-80% smaller than uncompressed, while Vorbis will result in 90% smaller files that still sound extremely good in a fraction of the time).
FLAC is an excellent compressor for sound archival, Vorbis is much better at consumer playback.
DRM isn't really a concern, as a matter of fact: MP3 doesn't support it, and no players these days can do without MP3 playback; Vorbis is a MP3 replacement that happens to have much better quality than WMA or AAC, but which is not commercially enforced. It all comes down to marketing.
---
A computer is like air conditioning: it becomes useless when you open windows.

Author information

Marco Marongiu's picture

Biography

Born in 1971, Marongiu graduated in applied mathematics in 1997; he's now a full-time system administrator for a well known software company in Oslo, Norway. He's also a Perl programmer and technical author and lecturer by passion.
Marongiu has been a Debian User since version 1.1.10 and he helped found the GULCh Linux Users Group (Gruppo Utenti Linux Cagliari), the first one in Sardinia.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!