Off to Light Relief with you. Shoo.
- 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!
What's the easiest way to put a video in an HTML page?
Collapse
X
-
Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishing -
Originally posted by NickFitz View PostThe 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>
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.Will work inside IR35. Or for food.Comment
-
Originally posted by VectraMan View PostBack 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.
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.Comment
-
Originally posted by NickFitz View PostHTML5 doesn't prescribe specific codecs.
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.Will work inside IR35. Or for food.Comment
-
Originally posted by VectraMan View PostWell 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?
Originally posted by VectraMan View PostAs 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?).Comment
-
Originally posted by NickFitz View PostTwice, 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.
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.Will work inside IR35. Or for food.Comment
-
Originally posted by VectraMan View PostDid 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.
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 PostRegarding 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 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).Comment
-
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).Comment
-
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.
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.Will work inside IR35. Or for food.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Gary Lineker and HMRC broker IR35 settlement on the hush Today 09:10
- IT contractor jobs market sinks to four-year low in November Yesterday 09:30
- Joke of the Day Dec 9 14:57
- How company directors can offset employer NIC rising to 15% Dec 9 10:30
- Contractors, seen Halifax’s 18-month fixed rate remortgage? Dec 5 09:59
- Contractors, don’t be fooled by HMRC Spotlight 67 on MSCs Dec 4 09:20
- HMRC warns IT consultants and others of 12 ‘payroll entities’ Dec 3 09:15
- How you think you look on LinkedIn vs what recruiters see Dec 2 09:00
- Reports of umbrella companies’ death are greatly exaggerated Nov 28 10:11
- A new hiring fraud hinges on a limited company, a passport and ‘Ade’ Nov 27 09:21
Comment