4 ms·
I've grown increasingly annoyed with Thom over the last two years. The man is an ego-maniac. The problem is that there's no standard codec for HTML5. The main
by godDLL 17y ago
I've grown increasingly annoyed with Thom over the last two years. The man is an ego-maniac.
The problem is that there's no standard codec for HTML5. The main contestants are H264 and Theora, and so far, it seems like on the browser side of things, Theora is winning out; with a Theora video you can cover Firefox, Chrome, and Opera users - whereas with H264 you miss out on Firefox and Opera users. Since Firefox is by far the largest HTML5 browser, encoding your video in H264 alone is shooting yourself in the foot.
Theora isn't in any position remotely favourable. And definitely not "winning out".
It helps that H264-specific chips are available on just about any mobile device, whereas Theora (or other possible patent-free contestants, like Dirac) does not have this luxury.
Dedicated mobile hardware is a necessity, not a luxury, not until li-ion batteries are superseded by a new breed of whatever with 10 times the charge.
- jrockway 17y agoHow much web video do you watch on your phone? If you're going to pay $10 for a full-length movie, then the H.264 licensing cost is worth it to not have to recharge your phone on the flight. But if you are watching kitteh videos on Youtube, the freedom from cost is worth the tiny additional power draw. Are you really going to watch cat videos for 5 hours?
- houseabsolute 17y agoNo, but I'd also prefer my five minute cat video to not eat ten percent of my iPhone's battery. To me, the extra freedom is not worth the extra battery, even if it only quadruples my usage while watching video. Anyway, it's a moot point. H.264 has "won" in the sense that if HTML5 video happens, most of it will probably be available in that format. The battle was, in my opinion, basically decided when YouTube led with H.264 in their HTML5 experiment. What Mozilla does at this point is relevant only to people who might want to both watch HTML5 video and use Firefox (i.e. they may not be able to do both depending on Mozilla's choice, and on whether a dual-content model is feasible and desirable for most web developers -- hint: probably not). This is not that big of a deal. There are at least two other no-cost browsers on the important operating systems that will support HTML5 video, three on Windows.
- Groxx 17y agoQuite simply (IMO): Youtube + iPhone = win for h.264. Hardware decoders are an extra bonus, and h.264 is definitely superior quality-wise to theora. Given all that, Firefox without h.264 is likely to lose significant ground to Chrome for that reason alone.
- Groxx 17y agoIf you've got an iPhone? Probably a fair amount. But consider that the battery argument holds for every battery-powered device. Laptops, the iPad / iPhone, and even (to get nitpicky) your electrical bill. It likely also will extend to future gaming handhelds, likely to have a hardware decoder (and why not use h.264? high quality and small size) and run on batteries. The market that is effected is (if not now, likely to be soon) in the hundreds of millions of people, with many many hours each. I'll be incredibly conservative, and say "a billion hours". Might that be worth reducing power use?
- ZeroGravitas 17y agoH.264 is not more power efficient than Theora. It compresses better so that it's got higher quality per bit, but it achieves that by using more computing power on both the encode and decode end. Consider gzip vs bzip for a very rough analogy, more "cleverness" means smaller files but also more computation time. Or think of the CABAC feature that makes your H.264 file 10% smaller but unable to play on iPhones or other low power devices (http://en.wikipedia.org/wiki/CABAC http://en.wikipedia.org/wiki/CABAC). H.264 does have "hardware" assisted decode on iPhones but that's a choice made by Apple not a universal law. Despite the constant repetition of the "fact" that H.264 decode is done in custom silicon, it's simply not true. The same DSP or generic video decode units are used for other codecs (inc VC-1, MPEG-2, MPEG-4 part 2, RealVideo). There's no reason Theora can't be accelerated in the same way and it already has been for the OMAP3 chips (as used in N900s, Palm Pre and the Droid). Here's a link to a company selling software that decodes High Profile H.264 (amongst many other codecs) on OMAP3 SoCs. How would that be remotely possible if H.264 implementations were entirely custom silicon, unchangeable and non-upgradeable?: http://www.ittiam.com/pages/news/pres-rel-20100215-omap3-720p.htm http://www.ittiam.com/pages/news/pres-rel-20100215-omap3-720...
- KirinDave 17y agoWho said that H.264 encoding is entirely custom silicon? And why can't there be custom silicon if other less "hardware" (why do you keep putting it in quotes?) acceleration strategies exist? You've been pushing this hardware angle hard, and the point is well taken. Yes, you can accelerate Theora if you write some new software. Not every mobile producer has the luxury of letting a third party do that (or putting the resources to do it themselves). But yes, it is possible. So now all we're left with is that Theora is an inferior codec: worse quality, worse encoding options, more investment required to make it power efficient on mobile. The industry has decided—with or without Mozilla—long before this question was ever asked. When Youtube started converting everything to H.264, the biggest player moved over. Now you see other smaller players moving to H.264 as well. All MozillaCo's refusal is doing is ensuring that Flash continues to exist as a video solution for Firefox, playing H.264 and not giving HTML5 video support. The decision has already been made by the big sites!
- FooBarWidget 17y agoI've always found the mobile hardware argument a bit strange. I've never watched any full-length movies on my smartphone, the screen is simply too small to be comfortable. I might watch short Youtube videos once in a while but does it really drain the battery significantly if 3 minutes of video is not hardware accelerated? I find that hard to believe, especially considering that Wifi and 3G already drain tons of battery. I'd rather watch full-length movies on my laptop, which has a programmable GPU meaning that it's possible for someone to make a hardware accelerated Theora decoder.
- ZeroGravitas 17y agoThey can write software to give you "hardware" accelerated Theora decoders on your phone too, as long as the phone maker lets them. Apple doesn't. Nokia (who are actively campaigning against Theora) do, so voila: http://www.schleef.org/blog/2009/11/11/theora-on-ti-c64x-dsp-and-omap3/ http://www.schleef.org/blog/2009/11/11/theora-on-ti-c64x-dsp...
- tomh- 17y agoWell in countries like South Korea and Japan, they watch live TV, TV shows or movies on their cellphone all the time, so there are plenty of people who would benefit from having hardware acceleration in their mobile devices.
- butterfi 17y agoConsider expanding your definition of a mobile device. I watch stuff daily on my iTouch, and I suspect lots of people will use a tablet device for the same.
- lurch_mojoff 17y agoThom's arguments tend to be based on his personal biases (this company good, that company bad; open source good, closed source bad; etc.) and as a result he sometimes says the stupidest shit to defend them. The thing you quoted about Theora winning out is a perfect example of this, especially the last sentence: Since Firefox is by far the largest HTML5 browser, encoding your video in H264 alone is shooting yourself in the foot. Saying so completely disregards the fact that a lot of, maybe even the majority of, the video on the web now is already in h.264 alone, because that's one of the encodings that the Flash plugin supports. And when we add to that the fact that for the foreseeable future there will continue being a non-insignificant portion of people using browsers that do not implement HTML5 at all, meaning video sites which go HTML5 will still have to provide a some form of a fallback - most logically through a Flash player - a fallback that can easily be served to Firefox and Opera users, exactly the opposite of Thom's statement becomes obvious. Not encoding your video in h.264 alone is shooting yourself in the foot - you'd be more than doubling your storage cost and your video transcoding cost and even increasing your bandwidth bill, for no good reason whatsoever.