Eyes Above The Waves

Robert O'Callahan. Christian. Repatriate Kiwi. Hacker.

Monday 4 August 2008

Why Ogg Matters

Matt Asay doesn't understand why shipping Ogg Vorbis and Theora in Firefox is important. The answer is simple. Our goal is to enable unencumbered, royalty-free, open-source friendly audio and video playback on the Web. Shipping Vorbis and Theora will achieve that for over 100M Firefox users --- not everyone yet, but a good start! To reach the rest, we will keep turning people into Firefox users, and pressure Apple, Microsoft and other vendors to support Vorbis and Theora. Vendor pressure must come from content providers dedicated to making compelling content available in free formats (coupled with a superior playback experience in Firefox). Wikimedia has stepped up and hopefully others will follow.

In fact, we'd love to be able to ship open-source codecs for H.264 and VC-1, but that can't happen until the MPEG LA's patents expire, or MPEG LA decides to give up its patent licensing fees, or software patents are struck down by the US Supreme Court (and possibly other jurisdictions). It would be unwise to wait.

Let me provide a mini-FAQ covering some of the other questions that have been asked:

Isn't Theora inferior to H.264, so no-one will use it? Theora isn't bad on an absolute scale --- look at some demos to see for yourself. There is ongoing work to improve the encoder so it's even better. Even if it's slightly lower quality than H.264 at some bit rates, it's still going to be very useful to people who favour free formats on principle, or who need an open-source solution, or who want a solution that Just Works across platforms without plugins, or who just want a solution without licensing fees --- for example, if you just want a convenient way to use a video clip in a Web app. Look at modern bank ATM interfaces, for example, to get an idea of what people could be doing in Web apps.

Since people can already play Vorbis and Theora in the browser by downloading a plugin, why is having them in Firefox important? Because the value to content providers and the pressure on other vendors depend entirely on these codecs being available to a lot of users --- and most users don't download codec plugins.

This is a great example of why Mozilla and Firefox are important. The Web needs a high-market-share browser vendor committed to free software and open standards across the board.

Will you get your pants sued off? We've taken legal advice. I don't know if we will talk about the results, but our actions speak loudly enough. Cutting Ogg support remains as a last-resort option.



Comments

John Drinkwater
I’m fully behind Mozilla’s decision to include Ogg, Theora and Vorbis support. I also expect from Monty’s work to have near-H.264 quality encoding by the end of the year. Perfect timing for 3.1!
And here’s the important thing: nothing needs to change in the decoders for improvements in the encoder, the binary format is already set.
Please don’t let a few pundits put you off…
John Sousa
Robert, thanks so much for writing this little piece. I've had a hard time explaining my friends why Mozilla's move was so important for the future of the Web -- now I can simply direct them here.
Jeff Schiller
Out of curiosity, does anyone know of any web services that do video file hosting for Ogg Theora format a la YouTube? (I know Wikipedia hosts their own video files in that format, but I was talking about user-contributed files)
Matt
How come you chose Theora over Dirac?
AFAIK Dirac is supposed to be higher quality and patent free, but was there some question about that? Or did you just go with Theora because it's currently in wider use?
Robert O'Callahan
Dirac is less mature and its legal situation would require more analysis --- Theora seems like a safer choice at the moment. However, adding support for Dirac is definitely something we'll consider in the future.
Robert O'Callahan
Actually, if someone did the work to get Dirac integrated into liboggplay, we could probably take the code into our tree immediately. But we wouldn't be able to enable it and ship it until we've had time to do more analysis.
bvk-chaitanya
Thank you for your effors Mozilla :-)
AjitK
With faster and better internet its imperative that we use open technology on the web. Its time for multimedia(-zilla) to roam freely and wildly on the web.
Noble effort coming from Mozilla. Thank You!
ant
@Matt: Dirac has enormous processing requirements. Most users wouldn't be able to watch a youtube-sized video without problems.
Hannes
Thank you so much for this. I was afraid some "bad" codec would become the standard. Thanks!
an0n1 m0us
What's wrong with the BBC's Dirac?
http://en.wikipedia.org/wiki/Dirac_(codec)
Ajay
Will mobile phones need ogg playback at hardware level for better battery life if this becomes a standard?
Mozilla leads the way in ensuring a free and open standard internet. Thank you Mozilla team
kL
You're not alone - Opera pushes Ogg too (and in Europe they have significant market share, not to mention mobile market)
Jayjay2
Just a question - why would you get your pants sued off? Isn't it a free format, or did I miss something?
Ben Hayes
This is great news. But philosophically it's 180% from the MNG decision. The arguments against including MNG were:
* it's not Mozilla's job to evangelise
* it's not a standard
* it's not significantly used on the net
* its codesize is too big
* other stuff is good enough
all of which can be said, in spades, for Theora.
So what's changed? Has, since 2003, Mozilla become a free-format-evangelising, standard-leading project (which is, done smartly, a very good thing), and not just a sheepish IE follower?
cpach
Jeff Schiller: Have a look at http://blip.tv
Michael G.R.
Glad they're doing it. Ogg Vorbis is pretty great for audio. Never really used theora for video much, but maybe now because of this I will.
Simetrical
"(I know Wikipedia hosts their own video files in that format, but I was talking about user-contributed files)"
Just to nitpick: all files on Wikipedia are user-contributed. It's just that if you upload something not deemed to be of educational value, or otherwise helpful in achieving the goals of the Wikimedia Foundation, it will be deleted. So it's not comparable to YouTube, true.
Aaron
I don't understand why the "pants sued off" Q & A was included. Obviously, there are always submarine patent issues that can crop up - but that is the case with any technology. Are there specific cases where companies have threatened to sue, or something along those lines?
Brendan Eich
Ben Hayes: sorry, MNG with its diagonal gradients and other excesses does not compare to Theora as decoded by liboggplay. But I will point out one thing apart from the apples and oranges you try to compare that has changed since 2003: Firefox's (then Phoenix's) market share.
I've been clear on MNG and other such marginal causes celebre: it makes no sense to take code footprint and attack surface on something that we alone probably can't cause to rise from insignificance to prominence on the web. Theora has Mozilla, Opera, and Wikimedia among others backing it.
Since Firefox has gained market share, and is still gaining share, we should think about other unencumbered and open formats that we could help. We are supporting application/xml+xhtml at higher q now. We're investing in SVG, as roc's blog shows. But MNG still doesn't make the list.
/be
MeToo
Yes, Ogg/Theora are already being pushed by Opera, as kL said. I'm pretty sure these formats are specifically mentioned in the HTML5 standard as examples, but I may be wrong (
It is interesting, though, how the Firefox contingent always ignores (at best) or ridicules (at worst) the Opera team's efforts, but when Firefox finally starts to catch up to them it's called "innovation" and "important for the web."
Maian
I don't care about MNG, but now that someone pointed it out, it does seem rather hypocritical for Mozilla to support Theora, yet not support MNG. I vaguely recall that MNG support is available with a patch that's been constantly synced with the trunk for years.
Robert O'Callahan
I neither ignore nor ridicule Opera's efforts. I consistently praise their work.
However, Chris has been working on Ogg support at least as long as they have, he published experimental builds before Opera did, and we've announced plans to ship Vorbis and Theora while they haven't yet. By no means is it a case of "finally catching up" to Opera.
Maik Merten
The reason why Mozilla (and Opera) would have an interest in evangelizing free media formats is that if they don't do that others will happily push media formats into the web which are incompatible with open source software (e.g. codecs that need patent licensing - like all MPEG codecs (H.264 being the current incarnation)).
If non-free codecs happen to become an important part of the browsing-experience, Mozilla would be either left out in the cold (won't decode that content) or would have to ship with binary components, leaving those building from source out in the cold (and Mozilla would even have to pay for the privilege of getting screwed).
So let's push free formats now to avoid getting in trouble later on.
Tristan
Robert: you wrote
> Shipping Vorbis and Theora will achieve that for over 100M Firefox users
The last official number I have is 180 million active users per month, but I'm pretty sure we've passed the 200 million mark, even if it's not yet official.
Toe
MeToo: You've apparently missed that whole WHATWG business, which was co-founded by Mozilla, Opera, and Apple.
The inclusion of the Ogg family stemmed from WHATWG's plans for a element in HTML5. Mozilla never ignored or ridiculed Opera's plans to include Ogg, to the contrary, the two groups have been working together on it from the beginning!
Robert O'Callahan
Tristan: yes. Sometimes I'm a bit conservative :-).
Dan
I only just heard about this, brilliant news, I was getting concerned the future was going to be owned by Adobe Air/Flash or Microsoft Sliverlight, with Ogg support we can push the boundaries of the web further, in an open (competitive) way. Much like we've gone so far.
There's much to be done in this area though, I'm wondering whether JavaFX will have ogg/theora support included. I'm really hoping it does. Has anyone given thought to a standards based way off accessing the users webcam/mic... I predicting (wildly) that it might be important going forward.
If JavaFx is opensource (is it?) could it be included in Firefox or bundled?
Brendan Eich
All: please don't feed the Opera trolls (as my Norwegian pal Lars Thomas Hansen, formerly of Opera, says -- speaking as a Norwegian -- "we invented them").
Maian: do your homework before vaguely recalling and spouting off about MNG, or at least read what I wrote carefully. 2008 is not 2003. Firefox market share now is not Phoenix share then. And MNG is not comparable to Theora.
Of course the MNG patch has rotted many times, but that is beside the point. MNG is not going to emerge as a dark horse alternative to some or all of GIF, APNG, Canvas, SVG, and CSS animations.
Hypocrisy may be "the tribute that vice pays to virtue" (La Rochefoucauld), but there is nothing virtuous in demanding that MNG support be added to Gecko. It looks more like vice at this point (wrath, envy, pride, and sloth, to be specific).
And there's no vice in our support for Theora. It represents a lot of hard work by cdouble and others, a calculated risk on our part at Mozilla, and a move in favor of open formats that people actually use, and may yet use more.
/be
skierpage
I never understood the obsessive angry demeanor of MNG fans until I realized it's the file format for MAME video game captures.
Nicolas Mailhot
Is there a reason FLAC is not included too? Unlike Dirac, it's pretty mature. And it compares well to other lossless audio formats.
Sebastian Redl
Lossless audio has a much lower demand in internet streams than video. Having a video codec is definitely more important than having a lossless audio codec, when a very good lossy codec is supported.
pd
FWIW: I say congratulations on choosing the appropriate option. I queried why Dirac was not chosen merely because I was interested. It's great to see that there is some thought towards Dirac being implemented in the future.
My understanding is that the video tag will support whatever codecs are already on a user's system anyway, or at least those codecs shoehorned into GStreamer, DirectShow or the crApple multimedia layer (don't care/can't remember the name atm). Is this still going to be the case? Perhaps this point is getting lost?
Sure distributing a codec with Firefox gives that codec more support than codecs the user must install however it's only a leg-up, it's not the be-all and end-all. User's can still install (GStreamer, DirectShow) codecs of their choice that will be supported by Firefox, can't they?
Robert O'Callahan
People are working on GStreamer/DirectShow/Quicktime integration but it's lower priority than the Ogg work and may or may not be enabled for Firefox 3.1.
Diracinfo
@AjitK: Actually Dirac doesn't have enormous processing requirements as will be seen with its forthcoming inclusion in VLC Player.
John Dowdell
re: Dirac, Erik Huggers of BBC had some mention of it today:
"Some people may ask: why are you not using your own Dirac codec? I am fully committed to the development and success of Dirac, but for now those efforts are focused on high-end broadcast applications. This autumn, we intend to show the world what can be achieved with these technologies."
http://www.bbc.co.uk/blogs/bbcinternet/2008/08/open_industry_standards_for_au.html
jd/adobe
Donovan
VLC supports decoding Dirac video via the schroedinger library as of 29th June 2008.
http://diracvideo.org/wiki/index.php/Schroedinger_and_VLC
Josh Cogliati
MPEG-1 Video with Layer 1 or 2 Audio is patent unencumbered so far as I know. At least, I have not been able to find any place online that lists any unexpired patents required to implement it (including the ISO patent database). Since the near complete draft standard was published in 1991, if there are any patents they should be close to expiring. Click my name for more details.
Wallace Jackson
YES! Now if we can just get momentum behind OGG MNG we will have open source new media that Mind Taffy Design can deliver via HTML5 to our internetional brand clientele. Will OGG support i3D as well? Will FireFox 3.6 include native O3D rendering pipelines? WJ.
dragonbite
Go Mozilla, Go! It's about time companies start standing up for higher standards around here, and sticking to a moral compass unlike the suspected greed that caused the economy into its current situation.
I just read about it and think that now is the best time for Mozilla to go for it. Firefox has a large enough userbase to make a difference and while some will decide to switch to Chrome or something else there is still time for them to be educated as to what they are moving from and moving to.
Especially with the world going more web (cloud) focus, openness needs to be pushed NOW!
I applaud Mozilla.
Anonymous
Are you KIDDING us? First of Firefox is a horrible browser that requires us to waste countless hours clubbing it to work. Secondly you don't have 100m users. 100 million downloads does not = users. When was the last time you saw ANYONE use Ogg Video? Never! That's when. FF upgrades break sites. Adopt mp4 and be DONE with it!