Slashdot Mirror


A Skeptical Comparison of HTML5 Video Playback To Flash

gollum123 writes "Think we'd all be better off if HTML5 could somehow instantly replace Flash overnight? Not necessarily, according to a set of comparisons from Jan Ozer of the Streaming Learning Center website, which found that while HTML5 did come out ahead in many respects, it wasn't exactly a clear winner. They did find that HTML5 clearly performed better than Flash 10 or 10.1 in Safari on a Mac, although the differences were less clear cut in Google Chrome or Firefox. On the other hand, Flash more than held its own on Windows, and Flash Player 10.1 was actually 58% more efficient than HTML5 in Google Chrome on the Windows system tested. As you may have deduced, one of the big factors accounting for that discrepancy is that Flash is able to take advantage of GPU hardware acceleration in Windows, while Adobe is effectively cut out of the loop on Mac." gollum123 also links to additional tests indicating that Flash "does not perform consistently worse on Mac than on Windows."

11 of 391 comments (clear)

  1. Re:GPU acceleration and Opera by shutdown+-p+now · · Score: 3, Informative

    Unless a biggie like Google /MS /Apple back on HTML5 i don't see why it would replace incumbent standard

    Both Google and Apple are heavy HTML5 backers. Not only they're on the W3C working group for it, but their respective browsers already implement large parts of it (including, specifically, HTML5 video).

  2. Re:Why compare? by shutdown+-p+now · · Score: 3, Informative

    HTML5 hasn't even settled on a video codec

    They aren't goint to settle on it. It will be unspecified, just as image formats were in past HTML specs.

    how can there even be a real comparison here?

    You compare both platforms with the same codec, of course.

    Of course HTML5 can't take advantage of GPU acceleration yet, they don't even know what they'll be accelerating yet!

    If they don't know, how do they play it today?

    In fact, they do know. A de facto standard is already in place (Flash played a part in that as well), and it's called H.264.

    HTML5 hasn't had the chance to implement GPU acceleration and that maybe they should consider it as part of their criteria in their codec selection process.

    HTML5 doesn't implement acceleration, browser vendors do. It's not any harder for them to do so than it is for Adobe, so presumably, if Flash can hardware-accelerate, so can the browser. It's just that they didn't get to that point yet.

  3. Check your sources... by diamondsw · · Score: 3, Informative

    gollum123 also links to additional tests indicating that Flash "does not perform consistently worse on Mac than on Windows."

    Yes, tests provided by... Mike Chambers of Adobe. I'm sure that they're completely impartial.

    When I turn on HTML5 video support at YouTube, the exact same clip in the exact same browser on the exact same OS on the exact same session runs at a third of the CPU power. Sure, it's an anecdote - and one that's been observed by hundreds if not thousands of others, consistently over the years. But according to Adobe, nope, no problems at all. Emperor's clothes look really chic.

    Fuck off, Adobe. You had years to improve your damn plugin, and we'll all be better off when it and its horrid performance and security record are no more.

    --
    I don't know what kind of crack I was on, but I suspect it was decaf.
  4. Re:GPU acceleration and Opera by shutdown+-p+now · · Score: 4, Informative

    Well, I can't speak for Google, but Apple was one of three companies (two others being Mozilla and Opera) which founded WHATWG, thus putting a start to HTML5 development.

    Also, it doesn't make sense for them to "comply with the standard" when there's no standard yet. As it is, both Google and Apple (and others) are writing the standard, and implementing the current drafts. Google also provides HTML5 beta of YouTube. If, as you say, there is no real business case for them to promote HTML5, they wouldn't do either thing.

    The reason why Google touts Flash support in Android at the same time is because Flash is still relevant today, and because this is a major competitive advantage that Android has over iPhone. It would be foolish of them not to raise that point.

  5. Re:I've yet to see HTML5 video work by AresTheImpaler · · Score: 3, Informative
  6. Re:This is early days for the video tag by marcansoft · · Score: 3, Informative

    That's H.263, which is a horrible piece of crap. It's what youtube used before H.264 and they still do for the low-quality version of videos. There's no question that Theora beats the old flv H.263.

  7. Not a crap article by Macka · · Score: 3, Informative

    The author implies that adobe can't use gpu for flash on mac. Why not?

    It's not a crap article because it's true. If you look at the 10.1 public beta release notes it says:

    In Flash Player 10.1, H.264 hardware acceleration is not supported under Linux and Mac OS. Linux currently lacks a developed standard API that supports H.264 hardware video decoding, and Mac OS X does not expose access to the required APIs. We will continue to evaluate adding the feature to Linux and Mac OS in future releases.

    How Apple react to this will be a good litmus test of how fair Steve J is prepared to be with Adobe. Will he make the APIs available to benefit his customers but risk making HTML5 less attractive, or will he just ignore them and play hard ball.

    As for Linux, the historical lack of a unified approach to solving this (that includes all interested parties) is going to leave us out in the cold for some time yet. Let's hope that Gallium3D sticks, gains enough traction and doesn't get dropped for something else a few years down the road. That will make a nice change!

    1. Re:Not a crap article by TheRaven64 · · Score: 5, Informative

      It's not quite true on OS X. There is a standard way of playing back H.264 using hardware acceleration: use QuickTime. Adobe can't use this because they ship their own H.264 implementation (which is slower than the QuickTime one and ffmpeg), rather than using the supplied one. There aren't hooks for adding GPU acceleration to arbitrary CODECs, unless you use OpenCL, but there are APIs for playing back H.264.

      --
      I am TheRaven on Soylent News
  8. Re:Halp! I are teh stupidness! by flyingfsck · · Score: 3, Informative

    MPEG2 compresses by a factor of about 5 to 10, while H.264 AVC compresses by a factor of about 20 to 30 and the subjective quality is better too, being not blocky.

    --
    Excuse me, but please get off my Pennisetum Clandestinum, eh!
  9. Re:GPU acceleration and Opera by IntlHarvester · · Score: 4, Informative

    I wasn't particularly impressed with the Youtube HTML5 beta (using Chrome) and ended up opting out. Playback wasn't very smooth, the video controls are slightly buggy, and HD videos seemed to take more time buffering. As of right now, the Flash player provides a far better experience.

    (And Youtube's player controls are probably far better than anything the average developer could come up with.)

    Internet nerds are predicting that HTML5 will be the death of Flash Video, but IMO it still looks like it has a long way to go.

    --
    Business. Numbers. Money. People. Computer World.
  10. Re:GPU acceleration and Opera by Runaway1956 · · Score: 5, Informative

    Super cookies, yes. Maybe you have some? Read:

    http://www.imasuper.com/66/technology/flash-cookies-the-silent-privacy-killer/

    http://www.fightidentitytheft.com/blog/new-breed-super-cookie-defies-removal-almost

    http://lifehacker.com/5245418/betterprivacy-prevents-tracking-by-flash-other-super+cookies

    In short, if you don't know any better, Adobe enables web sites to install a cookie that your browser doesn't even know about, let alone manage. And, those cookies persist forever, tracking anything that the website chooses to track.

    --
    "Windows is like the faint smell of piss in a subway: it's there, and there's nothing you can do about it." - Charlie Br