Re: Adding a data in Live OR Saving Stream on Server side.
Narendra Sisodiya <[email protected]>
| Newsgroups | gmane.comp.audio.icecast.devel |
|---|---|
| Message-ID | <CAB80A68T0kzahiBC-RezUjHVkVdWSsfmaAB0D0hBDaXJGL7ZAA@mail.gmail.com> |
On Tue, Sep 20, 2011 at 10:17 PM, Odin <[email protected]> wrote: > On Tue, Sep 20, 2011 at 3:33 PM, Narendra Sisodiya > <[email protected]> wrote: >> What data I want to add ? >> basically on my website there are various images. each image having a >> number. While I deliver my lecture I want to send image number too. >> Now I can send this number using http PUSH/PULL but I do not know How >> it will be synchronised ? Because AFAIK in streaming mode the HTML5 >> video element do not have TOTAL LENGTH parameter. >> So Hom I can embed the image number in stream itself and get this data >> on client side browser ? > > Hey Narendra. > > We've spoken before because we're working on basically the same thing. > > Now that you're trying to do live stuff, you've run into the same > problems as me. There are currently no good way to sync slides and > live streaming media in the web browsers today. However, based on a > discussion we had in WHATWG, we added an element called > startOffsetTime, which will make it possible once browsers implement > it. > > However, I guess it'd be easier to fake syncronization with audio, as > Icecast won't have to buffer as much of it, and normally the clients > can get all the information quite quickly. > > You can just "guesstimate" how much the client is lagging behind the > "real" feed, and then just add so many seconds delay to the serverside > PUSH for a new image. > > > Anyway, -- this isn't really much related to Icecast. Other than > wanting to get down the buffering as low as possible, in order to have > people seeing closer to the real, live stream, and not lag too far > behind. > Thanks Again, I can think for another trick then.. == with video == in Video frames , we can use first 16 Pixel to encode slide number. We can use CANVAS API to process individual frames ( https://developer.mozilla.org/En/HTML/Canvas/Pixel_manipulation_with_canvas ) each 16 pixel can be 0 or 1 (black and white). We can generate slidenumber at client side. I need to find a way where I can push slide number information in pixel. Let me redefine my question again. I want to generate a video where I can modify pixel information of each frame. kind of dynamic filter. So first 16 pixel Or may be just first pixel will carry the info. Also, I know that compression lossy so I do not know what will happen to this trick == With audio == Audio can be mixed/merged with a lossless video of 16x1 or 1x1 dimension. Trick can work successfully. I use ffmpeg to to audio streaming with icecast. now I need to search for generating 1x1 video frames. Any suggestion? -- ┌─────────────────────────┐ │ Narendra Sisodiya │ http://narendrasisodiya.com └─────────────────────────┘ _______________________________________________ Icecast-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/icecast-dev