• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "What's the easiest way to put a video in an HTML page?"

Collapse

  • VectraMan
    replied
    Just been having a look at the HTML5 on YouTube in Chrome (obviously Firefox doesn't work). I finally found something in HD to compare with Flash in IE, and not suprisingly they worked more or less the same. The volume control is broken for HTML5, and there's no full screen option (why - isn't that an obvious thing?), and Chrome was using slightly more CPU than Flash in IE. Seeking was generally much slower, and in fact I crashed it completely by trying to seek.

    DailyMotion has HTML5, they even have the cheek to say:

    The future is open. To watch this video without a proprietary plugin, download a more advanced browser.
    Which would be nice except when you look at the HTML5 version it's strinking how much lower quality it is than the Flash equivalent That does work in Firefox, so they must be using Theora.

    Also found this:

    http://www.osnews.com/story/19019/Theora-vs.-h.264/

    This guy doing a comparison of H264 vs Theora, and the latter is noticeably lower quality, especially when the camera pans. Interestingly Theora also took twice as long to encode - odd because normally higher quality means longer encoding times.

    Leave a comment:


  • NickFitz
    replied
    Opera have just published an article by Bruce Lawson and Patrick Lauke (who are both jolly good chaps and worth going out on the ale with) about Opera's forthcoming support for HTML5 <video>. It does a good job of explaining the current cross-browser state of play, and includes a link to Kroc Camen's excellent article Video for Everybody! which explains in exhaustive detail how to implement QuickTime and Flash fallback purely in HTML (no JS required).

    Leave a comment:


  • NickFitz
    replied
    Originally posted by VectraMan View Post
    Did you edit your post to include that Flash supported MP4 containers? I didn't know that - okay, two formats. Two is bad enough, and if Firefox users start refusing Flash, there'll be no other way but to provide two copies of everything.
    I mentioned it in the final paragraph, but missed it from the penultimate one - that was the edit.

    A good proportion of Firefox users already use a Flash blocker; it shows you that Flash content is available, and if it's something you actually want to see rather than an ad, you click on it to load it. I think the better ones would also allow you to whitelist sites, or possibly even specific Flash-hosting servers.

    Originally posted by VectraMan View Post
    Regarding image tags, PNG's adoption was very slow, in fact the web is still full of creaky old 256-colour GIFs that would be much better as PNGs or MNGs. Perhaps if the format had been part of the official standard, web designers would have been more inclined to rely on it. As it is doubts over browser support means we end up with the lowest common denomonator.
    The point is that the <img> element was specified in HTML 2.0 (Sep 1995) before PNG was (Oct 1996), so it couldn't have been part of the standard if the standard specified particular file formats.

    The fact that there's a lot of legacy content using GIFs is irrelevant, just as the existence of HTML 3.2 or even HTML 2 legacy content is irrelevant to the adoption of HTML 4.01. PNG's adoption was actually pretty rapid, the main issue being IE6's lack of support for alpha transparency without various wretched hacks. Most web designers/developers of my acquaintance were using PNG as their preferred format in the early 2000s or even the late 1990s (except when JPEG made more sense, obviously).

    Leave a comment:


  • VectraMan
    replied
    Originally posted by NickFitz View Post
    Twice, or once if you use Flash for those browsers that don't (yet) support H.264 natively. Even Mozilla may support H.264 one day: remember, GIF used to be patent-encumbered too.
    Did you edit your post to include that Flash supported MP4 containers? I didn't know that - okay, two formats. Two is bad enough, and if Firefox users start refusing Flash, there'll be no other way but to provide two copies of everything.

    Regarding image tags, PNG's adoption was very slow, in fact the web is still full of creaky old 256-colour GIFs that would be much better as PNGs or MNGs. Perhaps if the format had been part of the official standard, web designers would have been more inclined to rely on it. As it is doubts over browser support means we end up with the lowest common denomonator.

    Leave a comment:


  • NickFitz
    replied
    Originally posted by VectraMan View Post
    Well that's just stoopid. What's the point of having a standard if you don't know what format to encode your video in, or worse have to write browser specific code to access different formats?
    The specification of the <img> element doesn't prescribe what format your image files should be in. This proved to be a good thing, as it meant support for new image formats such as PNG and animated GIF could be incorporated into browsers without having to either go back and rewrite the standard, or implement non-standard support. Who knows what amazingly efficient video encodings may become available in the future?

    Originally posted by VectraMan View Post
    As you say you have to encode the same video three times to support the common browsers (and who's to say another might not do something different again?).
    Twice, or once if you use Flash for those browsers that don't (yet) support H.264 natively. Even Mozilla may support H.264 one day: remember, GIF used to be patent-encumbered too.

    Leave a comment:


  • VectraMan
    replied
    Originally posted by NickFitz View Post
    HTML5 doesn't prescribe specific codecs.
    Well that's just stoopid. What's the point of having a standard if you don't know what format to encode your video in, or worse have to write browser specific code to access different formats?

    The main benefit of Flash is that it works the same everywhere, regardless of what it's running on or relying on codecs installed on the host OS. HTML5 video can't be said to replace it if the same isn't true. As you say you have to encode the same video three times to support the common browsers (and who's to say another might not do something different again?).

    I think the non-HD Youtube video is On2 VP6, which is something that's been built into Flash for a while.

    Leave a comment:


  • NickFitz
    replied
    Originally posted by VectraMan View Post
    Back on the subject of video, is H264 going to be adopted by HTML5? It seems unlikely, because of the patent issues - meaning anybody using it on a commercial website, or a paid for website, or for an internal coroporate system will have to pay a royalty to MPEGLA*. I understood that's what the argument was about currently, and Google were especially against it. Which means from the start HTML5-YouTube is going to have to use the inferior open source codec (I forget the name) and will have lower video quality that the previous Flash version. Progress again.
    On the contrary, YouTube now uses H.264 for its HD video, served to desktop machines via Flash (leaving aside the HTML5 beta, which is opt-in only). Although desktop machines receive its non-HD content in some other encoding (possibly MP4), it also serves that content to mobile devices as H.264, so presumably it could switch to all-H.264 at some point.

    HTML5 doesn't prescribe specific codecs. There's a detailed list of the current state of web video in the book I originally linked to, but basically:

    Google Chrome, and Google Android phones, support H.264. It's also the only format used in the YouTube <video> beta. They also support Ogg.

    Safari supports H.264, as do iPhone and iPad, but not Ogg.

    Mozilla are holding out against H.264 because of the need to maintain the purity of their licensing model. Firefox currently only supports Ogg.

    Opera hasn't yet implemented <video> support; nor has Microsoft.

    Flash supports H.264 in its .flv container format, and MP4.

    The bottom line: if you use H.264 video with AAC audio in an MP4 container, you support Chrome, Safari, mobile devices from Apple, Google, and others, and Flash (9.0.60.184 upwards). With the Flash support, you can then serve the same file to IE, Opera, and Firefox as you serve to the others, using the fallback mechanism specified by HTML5. If you want to give Firefox users native HTML5 video, you have to re-encode the content using Ogg with Theora video and Vorbis audio.
    Last edited by NickFitz; 10 February 2010, 11:00.

    Leave a comment:


  • VectraMan
    replied
    Originally posted by NickFitz View Post
    The primary purpose of HTML5 is to address those incompatibilities such that cross-browser problems are eradicated. This is why the vast majority of the spec relates to precisely defining the rules for parsing content, as they are currently implemented in browsers (which includes various odd behaviours that date back as far as Netscape Navigator 2). <snip>
    Indeed, and if it succeeds that'll be good. But it's taken a long long time to get there, and to some extent it's too late as we've already had the huge explosion of the internet. If everybody had adopted Flash for everything 10 years ago, none of this would be necessary, because Flash simply defines where things are and what they look like. It's the fundamental problem with HTML, i.e. that it's an interpreted description language that's why we have browser incompatibilities, and why there's this long painful process to agree on standards and get the browser developers to adhere to them.

    And you know that several years after HTML5 becomes an official standard (which presumably will be several years), there'll still be people running IE6 that you'll have to think about when designing your web page.

    I'm sure a lot of people have got very rich off the back of the fact that doing anything for the internet is far more complicated than it needs to be, all thanks to the adoption of HTML for everything.

    Actually I'm not saying Flash is fantastic, because it has its flaws and its origins as an animation format show when you tried to do something more interactive. And of course it's proprietary, which isn't ideal. I'd quite like to see a serious open source alternative that could be an "official" standard and finally shut up the dissenters. Then Apple would have to come up with a different excuse as to why they'd not allow it on the iFad.

    Back on the subject of video, is H264 going to be adopted by HTML5? It seems unlikely, because of the patent issues - meaning anybody using it on a commercial website, or a paid for website, or for an internal coroporate system will have to pay a royalty to MPEGLA*. I understood that's what the argument was about currently, and Google were especially against it. Which means from the start HTML5-YouTube is going to have to use the inferior open source codec (I forget the name) and will have lower video quality that the previous Flash version. Progress again.



    *To be clear, the same applies to Flash.

    Leave a comment:


  • d000hg
    replied
    Off to Light Relief with you. Shoo.

    Leave a comment:


  • lightng
    replied
    Originally posted by NickFitz View Post


    There are some good people at MS who are serious about web standards and embrace the concept of the open web. They sometimes have to do a fair bit of fighting against the tide, though.
    [ThrowAwayComment style="bracing for yet another court appearance"]By chance, I just finished watching a film about some good Nazis. Erm, not that its anything to do with your paragraph about MS. Just thought I'd mention that completely unrelated fact.[/ThrowAwayComment]

    Leave a comment:


  • NickFitz
    replied
    Originally posted by d000hg View Post
    A pro-MS post, Nick - did I drop into a parallel dimension?


    There are some good people at MS who are serious about web standards and embrace the concept of the open web. They sometimes have to do a fair bit of fighting against the tide, though.

    Leave a comment:


  • d000hg
    replied
    A pro-MS post, Nick - did I drop into a parallel dimension?

    Leave a comment:


  • NickFitz
    replied
    Originally posted by VectraMan View Post
    Unfortunately I fear that you're right. Then we'll have a very big complicated, clunky, slow, innefficient combination of technologies all with several different slightly-incompatible implementations across platforms, that only somebody such as yourself will have a chance of being able to construct something simple with.
    The primary purpose of HTML5 is to address those incompatibilities such that cross-browser problems are eradicated. This is why the vast majority of the spec relates to precisely defining the rules for parsing content, as they are currently implemented in browsers (which includes various odd behaviours that date back as far as Netscape Navigator 2).

    In addition, whereas 1990s W3C specs tended to be ambiguous or under-specified, leading to more incompatibilities, the emphasis of the HTML5 effort is that new stuff should also be so clearly and unambiguously specified that implementations can only fail to be interoperable by explicitly deviating from the spec.

    Some parts of HTML5 have already been implemented in IE8, and Microsoft have provided comprehensive test suites to the wider development community, whilst also making use of test suites developed outside Microsoft. Microsoft, Opera, Apple, Google, and Mozilla are all actively involved with the development of the HTML5 spec.

    As far as CSS is concerned, Microsoft created and open-sourced the most comprehensive CSS2.1 test suite yet seen as part of their work on IE8; as they have already announced IE9 support for many of those parts of CSS3 that are already supported in other browsers, they will probably do the same there.

    On the JS front, MS have been working on a definitive list of ways their implementation (JScript) and those of others differ from ECMAScript 3rd edition (PDF, linked from near the end of this blog post); again, the development of ECMAScript 5th edition (standardised late last year) is something to which all the browser vendors have contributed, and MS's work on JScript is indicative of their intention to become fully conformant to ES 5th edition, as is also the intention of all the other browser vendors.

    I think the browser vendors have all accepted that interoperability and conformance to industry-standard specification backed by accepted test suites is essential for the future of the web. Rather than competing on the number of new, non-standard tags they can introduce with each version, they are now focused on improving the usability of and adding features to their applications, while competing to provide the best performance from their rendering and scripting engines.
    Last edited by NickFitz; 9 February 2010, 20:51.

    Leave a comment:


  • VectraMan
    replied
    Originally posted by NickFitz View Post
    I don't think Apple are scared of it: I think they just don't care about it. It will be irrelevant soon anyway, and good riddance. A combination of HTML5, SVG, CSS3 and compiled JS will render Flash unnecessary for just about every single thing it's currently used for.
    Unfortunately I fear that you're right. Then we'll have a very big complicated, clunky, slow, innefficient combination of technologies all with several different slightly-incompatible implementations across platforms, that only somebody such as yourself will have a chance of being able to construct something simple with.

    It won't be possible to have a simple authoring tool that any normal person can use, because the million and one subtleties will make anything generic impossible. That's progress for you.

    The resistance to Flash on the internet reminds me of the resistance to commercial interests on the internet many a year ago. I'm sure it's the same people. They were against Amazon, they were against Google, they probably hated the idea of animated GIFs, hated JPEGs because that gave rise to porn, which they also hated, they would have been horrified by the idea of forums (because the internet should only be about publishing documents), and if any hadn't had an annuerism yet they'd have probably had one at the thought of video on the net.

    Fortunately, others see progress as a useful thing. Incidentally IIRC IE4 had the ability to embedd video. No doubt you'd have been upset by the non-standard'ness of it all back then, but now, 15 years I guess later, everybody's building it into their browsers (well they would if they could agree).



    You are right about the amount of bad Flash out there, but you have to admit there's an awful lot of bad HTML/Javascript/CSS too.

    Leave a comment:


  • NickFitz
    replied
    Originally posted by VectraMan View Post
    Meanwhile if Flash does die off, then we'll have lost the best and most widely available cross-platform application platform there's ever been. No wonder Apple are scared of it: Flash exposes their platform as no better than anybody else's, because Flash is the same on every platform (H264 hardware acceleration notwithstanding).
    I don't think Apple are scared of it: I think they just don't care about it. It will be irrelevant soon anyway, and good riddance. A combination of HTML5, SVG, CSS3 and compiled JS will render Flash unnecessary for just about every single thing it's currently used for.

    One thing that annoys me, although it isn't really Adobe's fault, is how broken the usability and accessibility of 99% of Flash content is. I realise that it is in fact possible to make Flash apps that exhibit great usability and accessibility, but the number of Flash developers who manage that is vanishingly small. It's particularly annoying when they do things like implement their own scrollbars, but only get about 30% of the interaction right: scrollwheels (or trackpad drags) don't work, or paging doesn't page by the correct amount, or they do something utterly imbecilic like scrolling on mouseover... still, there are a majority of incompetent fsckwits developing for any platform; Flash just seems to attract more of them than most, probably because it makes it too easy for people who don't really have sufficient depth of knowledge to con themselves into thinking they're competent "interaction designers", or whatever this month's buzzphrase is.

    Leave a comment:

Working...
X