HTML5 live video "hack"
Asked Answered
T

3

6

For the last two month I have been trying to "fool" safari into thinking that it's looking at a file on the server, which in fact is a live video stream from a camera encoded and muxed upon request using Gstreamer into a format that is supported by the browser. Since HTML5 supports progressive video downloads this should at least be possible in theory.

My conclusion is that this gets quite complicated considering that browsers make a partial content request when downloading video files in HTML5, mainly for the sake of seeking. If the server lacks support for this feature the video is not played until the file is completely downloaded.

Have anyone else tried this approach with more success? Or should I just give up and wait for true live video support like RTSP to be integrated into browsers.

Cheers.

Tess answered 6/10, 2010 at 11:8 Comment(0)
I
2

This article provides some useful tips: https://developer.mozilla.org/en/Configuring_servers_for_Ogg_media

Are you serving the X-content-duration header?

Isodimorphism answered 25/2, 2011 at 13:55 Comment(0)
P
2

You have two possibilies.

With H.264 you can emulate a file with fragmented structure: ISO container (.mp4) with movie fragment atoms (MOOF's).

The other option is Google's WebM. Clients can "join in" the stream any time thanks to MKV file's structure. For best results the first frame transmitted to the client should be akeyframe.

Persecution answered 28/2, 2011 at 22:39 Comment(0)
B
0

If you only need video but not audio, "Motion JPEG" can do it. It's not HTML5 but a Netscape-era feature.

http://en.wikipedia.org/wiki/Motion_JPEG#M-JPEG_over_HTTP

Babirusa answered 26/11, 2010 at 6:34 Comment(2)
Motion JPEG is definitely an option, although it requires too much bandwidth. In overall there are a few other options to choose among (Flash, java applet, Http live streaming) all of them with some drawbacks. To try to "fool" safari (and perhaps other browsers) was just an attempt to add another option to that list.Tess
Great, interesting to know if there is any real solution.Babirusa

© 2022 - 2024 — McMap. All rights reserved.