views:

3448

answers:

7

I want embed a video in a webpage.
I don't want to use flash because it's unavailable for a huge number of platforms.
I'm reluctant to use HTML5 becase it's not too standard yet (It IS standard, but most people don't have browsers that support it)

Is there any other way? Or should I stick to HTML5 and a HUGE banner telling people to upgrade their browser?

+6  A: 
David Dorward
I've never come across this. What plays the video in this tag? Do mayor browsers actually have a plug-in that makes this work, or is this a 5%-of-the-people thing?
Hugo
It is standard HTML 4.01. Whatever plug-in registers itself to handle video/ogg (in this example) data handles it. Installing VLC gave me the support I needed for that (and Firefox prompted me to look for a plugin when it wasn't installed). I've never investigated the install base of suitable plug-ins so I don't know what the support level is like out in the wild.
David Dorward
Cool. It's a pretty good fallback for the <video> tag (or viceversa)
Hugo
There is no <video> tag.
Wahnfrieden
@Wahnfrieden Hi! Welcome to the 2009. Things might be a little different from what you are used to. http://www.w3.org/TR/html5/video.html#video
David Dorward
@David Dorward, no need to be sarcastic. I'm mistaken - the <video> tag has been left in, but the codec used is no longer specified and will vary by implementation. I thought when they dumped Ogg Theora that the tag was also removed. But it still doesn't offer a clear advantage over <object> since you still have to hope the client is using a browser that supports your codec.
Wahnfrieden
It does offer a clear advantage over <object> - a consistent API and a means to test if the video format is supported. Codecs will almost certainly standardise quickly anyway.
David Dorward
A: 

Why do you think a lot of large websites use Flash to play video? Probably not because of it's unavailability... Of course there are alternatives to embed video content in a web page, but if availability is an issue, Flash is the best way to go at the moment.

Daan
Lets just assume flash isn't an option for Hugo. What should he use?
Binary Worrier
Even if it's only 10% of the people that are left out, I want to avoid it. I have some other reasons to hate flash anyway, so I just won't use it.
Hugo
It is probably more like 0.1% of people.
David Dorward
@BW: What he should use depends on the goal / target users of the website. The general public: use a format for which *most* users have a plug-in (not sure which that would be). Specific user group / company / technical environment: use the format that is available in that context.
Daan
Probably. Even x86 linux users aren't excluded in this case.
Hugo
I want as much people as possible to be able to view this. Personally, I use an OS with no flash support, and where gnash has dropped development as well, so no chance. That fact aside, flash usually "breaks consistency" in many browsers. Browser hotkeys are unusable as flash has focus; doesn't respect accessibility (font size) settings, etc.
Hugo
@Hugo: all very true, and these are indeed shortcomings of Flash, but if Flash can make the difference between your content being available to a lot of people or not (provided that's the intention of course), it might be worth putting up with all that.
Daan
I don't think that you're going to find any in-browser video solution that has a wider availability than Flash at this time.
Wahnfrieden
+2  A: 

I've just come across Cortado. It's a Java applet that plays an OGG. I actualy have to thank David Dorward for this, since checking up HTML5's status made me come across it. Firefox suggests using something like:

 <video src="my_ogg_video.ogg" controls width="320" height="240">  
   <object type="application/x-java-applet"  
           width="320" height="240">  
      <param name="archive" value="cortado.jar">  
      <param name="code" value="com.fluendo.player.Cortado.class">  
      <param name="url" value="my_ogg_video.ogg">  
      <p>You need to install Java to play this file.</p>  
   </object>  
 </video>

Java is available to FAR MORE platforms than flash, and, in this case, if just a fallback to HTML5.

(source)

Hugo
+1  A: 

I know it's a bit late, but did you have a look at VLC ?

It can be embedded in a website, runs on Windows, Mac OS & Linux, is free, open source, supports a lot of video/audio format...

The drawback is that it doesn't have a nice GUI with play/pause/set volume/ ... functions , you have to create them yourself.

You can have a look at this article: http://www.videolan.org/doc/play-howto/en/ch04.html#id310965

chrisnfoneur
Thanks, I actually came across this the other day. I ended up using HTML5 with java fallback, but this isn't a very bad idea either. Only problem would be clients without VLC installed.
Hugo
+2  A: 

There are a few ways to combine HTML5 video with fallbacks for non-supporting browsers. A few specific solutions have been demonstrated.

One example is Video for Everybody by Camen Design, which conforms to HTML5, and uses conditional comments for IE and a nested object tag for older browsers. This should be standards-compliant, backwards-compatible, and future proof.

Michael Zajac
WOW! This totally rules, love it!
Hugo
A: 

the best way to add video to a website is to use the Flash FLV video format.Because Flash Player is found in more browsers than any other player. Flash works on MacOS X, Windows, and Linux. Flash works in Internet Explorer, Firefox, Safari, and Opera.

I use video to flash converter for mac to embed my video in webpage.Video to Flash converter for mac, a professional flash FLV and SWF maker, can convert almost all video formats to Flash, FLV, SWF on mac. The supported video formats include MOV(QuickTime), M4V, 3GP, MP4, AVI, WMV, RM, RMVB, MKV, VOB, MPG, MPEG-1, MPEG-2, MPEG-4, FLV, HD video, AVCHD, MTS, M2TS, TS, T2S, TP, TRP, DV, etc. The special feature lies in that it can automatically embed the videos in a HTML webpage with flash player. http://www.flashconverterformac.com/video-to-flash-converter-mac/

panamadany
As I said in my original question, I don't want to use flash. At that time, flash wasn't even available to 64bit browsers (in major platforms, including windows).Currently, flash is still unavailable to many, many OSs, such as OpenBSD (what I'm using ATM) and platforms.
Hugo
So you try to use the following video formats:Windows Media RealMedia Quicktime MPEG (in particular MPEG-4)
panamadany
A: 

I used Aunsoft Video Converter for Mac is a really helpful and self-explanatory assistant for converting almost all popular videos like TV shows (*.tivo, *.wtv, *dvr-ms, *.trp, *.tp, .ts, etc), 1080p/1080i/720p HD, AVCHD videos (.mod, *.tod, *.m2ts, *.evo, *.vro, *.m2t, *.mts, .tp, etc) from DVs or camcorders (JVC, Panasonic, Cannon, Sony, etc), DVDs (.vob), QuickTime videos (.mov), YouTube videos (.flv, .f4v), common videos (.avi, *.mxf, *.vp6, *.wmv, *.mkv, *.dts-hd, *.truehd, *.dts, .ac3, etc.) and even the popular Flip Video/Flip HD Video(.mp4) to MOV, MKV, WMV, MP4, H.264/AVC, MPG, MPEG, AVI, MP3, AAC, AC3, M4R, etc with pristine quality and without A/V out of sync.

Learn more : http://www.aunsoft.com/video-converter-mac/

videoiphone4
Not really relevant.
Hugo