Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Having just looked at the HTML5 video compatibility table on wikipedia, it would seem that HTML5 video has a big problem: Namely that there is no single video format supported by all major browsers.
There is a secondary problem: That a significant fraction of web browsers currently in use do not support HTML5. I've got Firefox 8 right now and It doesn't support quite a few features -- notably mpeg4 and h.264. The situation looks pretty grim.
Does anyone have advice about handling video in HTML5 rather than Flash? I'm inclined to either use Flash (again) or rely on Youtube or Vimeo for hosting my video.
Actually, it looks like only one major browser company, Microsoft, has a philosophical problem with supporting multiple codecs, because apparently they are concerned about the poor customer getting tied up by intellectual property rights!
So yes, you have a quandry; you have to predict the future of that browser.
But for now, if you want to support all the major browsers, you have to serve the video in multiple codecs, or provide both html5 and flash (as youtube does), or do flash only, or use a third party host who does one of these for you, or put up an annoying message saying 'please upgrade your browser'.
Last edited by neonsignal; 11-29-2011 at 06:39 PM.
I don't think M$ is entirely to blame here. According to the compatibility table, Firefox doesn't support H.264 or MPEG-4 and Safari only supports H.264 and Chrome is going to remove H.264. And publishing 4 different video formats for every video is just STUPID.
Any tips on how to detect video support for a given browser via Javascript so that I know when to put up that 'please upgrade' message? Seems to me like I'll have to manually maintain a database of browser video support and that this database is likely to change frequently.
Any tips on how to detect video support for a given browser via Javascript so that I know when to put up that 'please upgrade' message? Seems to me like I'll have to manually maintain a database of browser video support and that this database is likely to change frequently.
You shouldn't use a browser database, because this will fail for people who have manually installed plugins, or who run a browser that isn't in your database.
You can just put up multiple source statements inside the video tag, and let the user agent decide. You can also listen to the error event (MEDIA_ERR_SRC_NOT_SUPPORTED) on the last source element with a script, and decide what to do then. You might also be able to use the 'canPlayType' method. The W3C page has some details http://www.w3.org/TR/html5/video.html.
I don't know why you would need to have four codecs; either VP8 or Ogg Theora coupled with H.264 would cover all the bases. Of course, if this is a commercial project, you may need to pay royalties to encode the H.264 versions.
Last edited by neonsignal; 11-29-2011 at 07:11 PM.
I don't know why you would need to have four codecs; either VP8 or Ogg Theora coupled with H.264 would cover all the bases. Of course, if this is a commercial project, you may need to pay royalties to encode the H.264 versions.
In this case, video that is not "free to end users" or is not distributed over the internet.
Quote:
All the bases? Android? Blackberry?
Both of these support HTML5 to some extent (Blackberry using Webkit). Not sure how well it works, but I think you will find that codec-wise recent Android versions support VP8, and Blackberry supports H.264. Though you will need to be careful about encoding specifics if you are planning to support these lower end devices.
Last edited by neonsignal; 11-29-2011 at 08:38 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.