Slashdot Mirror


Mozilla Considers H264 After WebM Fails To Gain Traction

HerculesMO writes with word that "Looks as though Mozilla is considering using H264, one step closer to unification of a single protocol for video encoding. It's a big deal for HTML5 traction, but it still leaves Google holding onto WebM." The article, though a bit harsh on Ogg Theora, offers an interesting look at the way standards are chosen (and adopted by the browser makers).

24 of 182 comments (clear)

  1. In Other News by American+AC+in+Paris · · Score: 4, Funny

    Word has it that you can't run Flash on the iPhone, either.

    --

    Obliteracy: Words with explosions

    1. Re:In Other News by Anonymous Coward · · Score: 5, Funny

      GP said *run*. Installed has nothing to do with it.

  2. Realmedia codec by Spy+Handler · · Score: 4, Interesting

    I remember seeing lots of little Real-encoded videos on websites back in the day... whatever happened to them?

    1. Re:Realmedia codec by X0563511 · · Score: 4, Informative

      People figured out that Real (and Realplayer) were utter pieces of garbage and stopped using them?

      Same thing I wish would happen to quicktime.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    2. Re:Realmedia codec by the_fat_kid · · Score: 5, Funny

      they are all still buffering...

      --
      -- Sig under construction...
  3. Lol editors by Lunix+Nutcase · · Score: 4, Informative

    Yes, you already posted the story about this in March. Which is the same month when the linked article is from. Good to see timithy is still at the top of his game!

  4. Dupe, old news, vanity link by Anonymous Coward · · Score: 5, Informative

    Dupe:
    http://news.slashdot.org/story/12/03/13/2027215/mozilla-debates-supporting-h264-in-firefox-via-system-codecs
    http://yro.slashdot.org/story/12/03/20/1742209/mozilla-to-support-h264

    Old news:
    March 13th, 2012 -> This particular blog's story is March 16th, 2012 -> Today is April 26th, 2012

    Vanity link:
    It's a link to AppleInsider--why on earth would AppleInsider be a novel or interesting source about internal Mozilla strategy?

    Dear editors: wake the hell up.

  5. Kind of serves them right really by DrXym · · Score: 4, Insightful
    h264 is ubquitous. It's really stupid to deny the reality that people want to use it because of politics which is what it boils down to.

    Mozilla wouldn't even have to taint itself by supporting it. Just hook the video tag to the media framework in the host OS - Quicktime, DirectShow, gstreamer etc. and invoke the default h264 codec if its present and suitable or point the user at a way to obtain it if it isn't. They could still ship Theora with the browser if they wanted.

    1. Re:Kind of serves them right really by Cow+Jones · · Score: 5, Insightful

      h264 is ubquitous. It's really stupid to deny the reality that people want to use it because of politics which is what it boils down to.

      The aren't denying reality, they were trying to shape it.
      And I'm glad they tried, even if they didn't win this time.

      --

      Ah, arrogance and stupidity, all in the same package. How efficient of you. -- Londo Mollari
  6. Re:open standard yes, open source no. by diamondmagic · · Score: 3, Informative

    There's plenty of open source encoders and decoders available. ffmpeg, x264 (produced for VLC) to start.

    The notion that H.264 is not "free" isn't a result of a development methodology, it's because people think that somehow patents make it that way, despite the fact that the software authors have no choice in the matter.

  7. H.264 is a terrible solution by ctime · · Score: 5, Informative

    The fact that one company owns the license to this technology and makes no guarantees to _not_ increase licensing costs means that once h.264 support is the be-all end-all solution to web video, this one company has a monopoly on the sole video technology that drives the web. Most people running windows/mac have probably indirectly paid for licensing fees for h.264 multiple times. Nice racket they've got there and nobody is complaining, yet.

    Here's a pretty good article:
    http://www.zdnet.com/blog/bott/a-closer-look-at-the-costs-and-fine-print-of-h264-licenses/2884
    from the article:
    To use and distribute H.264, browser and OS vendors, hardware manufacturers, and publishers who charge for content must pay significant royalties—with no guarantee the fees won’t increase in the future. To companies like Google, the license fees may not be material, but to the next great video startup and those in emerging markets these fees stifle innovation. []

    1. Re:H.264 is a terrible solution by SurfsUp · · Score: 5, Insightful

      The article is an Apple troll.

      --
      Life's a bitch but somebody's gotta do it.
  8. The justification for WebM by ShieldW0lf · · Score: 5, Insightful

    The justification for WebM is that it would allow people to freely share videos using your own infrastructure without charge and without additional cost.

    It's not about the consequence for the consumer, it's about the chilling effect it has on free culture.

    It has HUGE consequences. Mozilla knew that, that's why they tried to play hardball.

    --
    -1 Uncomfortable Truth
    1. Re:The justification for WebM by SeaFox · · Score: 3, Interesting

      Is there any reason they have to choose a side?

      No seriously, why can't they have both h264 and WebM support and let the market decide which one gets used more?

  9. Re:open standard yes, open source no. by tomhuxley · · Score: 3, Informative

    The thresholds for encoders/decoders are based on distribution quantities, not revenue thresholds. Below 100,000 units, there is no royalty fee owed. Between 100,000 and 5 million units, the cost is 20 cents per unit. Above 5 million, the cost is 10 cents per unit.

    The maximum royalty fee owed is currently capped at $6.5 million.

    Part of the license agreement specifies that the fees can't increase more than 10% per 5 year period (2011-2016 is the current period). The max cap can go up more than 10% per period, but that only affects the biggest distributors.

    Mozilla can certainly afford it, the Foundation brings in over $300 million in search engine fees alone. Smaller open source projects would probably fall under the 100,00 units. The ones most affected will be popular projects that lack an income stream like Mozilla Foundation has.

  10. Re:open standard yes, open source no. by mounthood · · Score: 4, Insightful

    The notion that H.264 is not "free" isn't a result of a development methodology, it's because people think that somehow patents make it that way, despite the fact that the software authors have no choice in the matter.

    H.264 is not free-as-in-freedom nor free-as-in-beer, and patents are the reason. IP amounts to copyright, trade secrets and patents, but the first two don't apply here. It's a patent issue.

    --
    tomorrow who's gonna fuss
  11. Re:open standard yes, open source no. by dgatwood · · Score: 3, Insightful

    Parts of MPEG-2 (AAC, for one) were not published until 1997, and some hardware codec chips might have patents that were filed much later. Similarly, there may be patents on algorithm optimizations that were filed much later, e.g. patents on ways to use pixel shaders to perform some part of the MPEG-2 decoding process. So although the format will ostensibly become free and clear of patents four years from now in its barest reference implementation, that does not necessarily mean that you can't get sued if you write your own implementation. :-)

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  12. Re:Alternative? by Anonymous Coward · · Score: 3, Insightful

    Yes, it really is that hard. I've written some of these things. It's not that the knowledge is inaccessible: most of the concepts involved are covered in a good undergrad discrete math course. It's just that 99.999% of the programmers out there either don't take the course, or forget what was taught the moment after the final is handed in.

    Look at the sorry state of linux audio, for one. Layer upon layer, library upon library, everyone's an architect slinging metaphors and objects around but very few actually know how to write a good sample-rate conversion function, for example, or to even build the filters necessary to do so.

    And video's harder. There's tons of mind-twisting buffer management issues to handle interpolated, motion-compensated frames that can take as reference past frames, future frames, and even other interpolated frames either past or future, using any of a number of different block sizes as the base motion-compensating element to which the discrete cosine transforms are applied. All with modified coefficients from the mathematically pure transforms -- powers of two to improve hardware decoding ease (even if it makes the filesize somewhat larger) -- that's what one of the key patents is about.

    So, yes, it's hard enough and arcane enough that the likelyhood of someone with both the free time and the knowledge to do so, does it.

  13. Don't bother reading TFA by steveha · · Score: 5, Insightful

    TFA is not worth your time. He says all sorts of outrageous stuff as if it were fact: apparently he knows exactly what Google was collectively thinking when it introduced WebM, for example.

    And the ending is sort of surreal. Hooray! The patent-encrusted H.264 has defeated the challenge by the free and open software! Here are my wrists; there's still room for a couple more handcuffs, put them on! (Eh, probably not a fair summary, but about as fair as his treatment of Google.)

    steveha

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
  14. Re:Harsh? by the_other_chewey · · Score: 5, Informative

    Besides, VP8 is actually more-or-less equal to H.264 in quality and compression, you can easily verify that yourself with libvpx and x264.

    It really isn't. VP8's quality is comparable to that of H.264's Main Profile.
    H.264 High Profile eats VP8 for breakfast in bitrate-limited scenarios, meaning
    about 800 kilobit/s for SD content.
    But even at around 1,5Mbit/s, it's really obvious to the trained and still visible
    to the untrained eye. Yes, I actually have done double-blind tests.

    vpxenc is still very young, so improvement will happen, in both perfomance
    and quality. But the developers themselves have stated that it is unlikely to ever
    exceed H.264 MP by much.


    I've done extensive tests to try to coax better quality out of VP8, and have pretty
    much failed. I even had help from one of the guys at google working on VP8.
    And yes, it's part of what I do for a living.

    Have a look yourself:
    x264 High Profile, 790Kb/s, 4.3MiB
    VP8, best effort, 770Kb/s, 4.2MiB (the encoder was given the same constraints as x264)
    VP8 falls completely apart on high-frequency picture content, where H.264 holds up quite well.

    As one of the x264 devolpers said when I showed this around (verbatim quote): "Holycrapbirds".

    Of course, that low a bitrate is a very harsh test. At over twice the bitrate, VP8
    still needs more bits for similar quality, but the relative difference is much smaller.
    At some point around 2Mbit/s, "quality saturation" sets in.

    But for sites doing lots of streaming to clients behind <1Mbit/s connections and aiming
    for noncrapbird quality, this is a real issue.

  15. Re:Alternative? by David+Chappell · · Score: 4, Interesting

    I suspect the bigger problem is that there are so many patents on video codecs that any better open source alternative would infringe on at least one of those patents.

    This is a controversion question. The consortium which licenses H264 has certainly expressed this opinion. They say things along the lines of: "we can't say on which of our patents it infringes but we know it must because 1) it is a modern video codec, and 2) one cannot possibly write a modern video codec without having to deal with at least some of our patents."

    The view is expressed by the developers of VP8 (WebM) is that H264 is the result of deliberately steering developement so as to intersect as many of the consortium's members' patents as possible. VP8 is supposedly the result of heading toward the same goal while steering around them.

    Whether the VP8 developers can make their codec as good as H264 without involving any of the MPEG consortium patents is still an open question. I gather that they have not achieved that goal yet.

  16. Re:open standard yes, open source no. by David+Chappell · · Score: 5, Insightful

    If patents really define what makes software "free" or not-free, then no one would be able to chose to make a free H.264 codec.

    I am not sure what you are trying to say. One can certainly write H.264 codec and distribute the source code under the GPL. But the recipient does not have the right to _use_ it unless he obtains a license. So, these implementations are not fully free and the authors cannot make them free (without offering to pay the license fees for all of the users).

    My point is it's stupid to not support a codec just because of how it was invented. It's still free software.

    At present no H.264 implementation _can_ be free software. If you use it for certain purposes or at a certain volume you have to give money to the MPEG consortium. You may think this is OK, but it is not "stupid" to be unhappy with this arrangement.

  17. Re:open standard yes, open source no. by theweatherelectric · · Score: 4, Insightful

    H.264 is not free-as-in-freedom nor free-as-in-beer, and patents are the reason. IP amounts to copyright, trade secrets and patents, but the first two don't apply here. It's a patent issue.

    No. It's a licencing issue. H.264 is not an open, royalty-free standard and that's what makes it bad choice for the web. VP8 is covered by patents but it's licenced under royalty-free terms. If H.264 was licenced under royalty-free terms for all use cases then there would be no issue.

  18. Re:Harsh? by the_other_chewey · · Score: 3, Informative

    Not that I am doubting you, but could you provide the encoding settings you used for both VP8 and H.264?

    I'm on vacation until mid next week, so don't have access to the scripts used. From memory:

    Both are two-pass encodes. x264 recommends single-pass with --crf nowadays, because it's
    faster and nearly as good, but constant quality mode and bitrate limits don't mix too well, and
    for my low-bitrate case there's still a clear advantage for longer-range precognition.

    The x264 settings are a tweaked "--preset slower", with longer rc-lookahead and added
    bandwidth limitations (vbv_maxrate and friends). x264 writes the exact settings used – including
    an expansion of a preset into its individual parameters – at the beginning of its output, so have
    a look at "strings testenc_x264.mp4 | grep x264", or use mediainfo on the file.

    For vpxenc, it's basically the same, using "--good" and "--tune=ssim", adding bitrate control
    settings and minor tweaks. No parameter logging in the output here unfortunately, so I can't give
    you any more details right now.

    The tests I have conducted myself were more-or-less of the same quality so I am curious as to whether or not I did something wrong myself.

    You probably did nothing wrong at all, you just didn't restrict the encoder as heavily as I did.
    I tried to make it clear that those examples are rather extreme: If you allow higher bitrates, VP8
    quality improves quite a bit, and everything above about 1.5Mbit/s is fine in the vast majority of cases.

    Also, the test clip used is intentionally really really hard to encode (smooth, slow-moving, weak
    gradients; rotations; low contrast; high motion; high frequency; all combined; hard cuts; etc.),
    to highlight encoder capabilities – and shortcomings. It stress-tests everything from motion
    estimation to several other predictors the encoders may or may not have, to bitrate allocation,
    so it's an excellent worst case.

    I'm not trashing VP8 or vpxenc by the way, we're still going to use it to serve video to clients and/or
    devices without H.264 support. It's just that H.264 (in its x264-encoded manifestation, there are lousy
    H.264 encoders out there, mostly the really expensive ones) really shines in low-bandwidth use cases,
    and VP8 is universally outclassed by H.264 High Profile.