Skip to main content
Participant
Sep 30, 2009 1:52 PM UTC
Question

How to record a webcam video together with stage content?

Hello,

I hava an application that captures video from webcam and renders some additional elements on its display (augmented reality).

Now I need to record this video and stream it to FMS. How can I do it? What Adobe products do I need and where can I read more?

Thanks in advance,

Piotr Gwizdała

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Sep 30, 2009 2:34 PM UTC

    The only way I can think of doing that is sending bitmap data as bytearrays across an FMS application (you can't render screen content to video, you'd need to create a bitmap of the display objects), but I suspect the process would be slow and horribly bandwidth intensive.

    The better option would be to publish the webcam stream, and send actionscript messages across the stream so the additional display elements can be rendered by each client. You can do all of that with Flash/Flex and FMS.

    Translate
    piotrrrAuthor
    Participant
    Sep 30, 2009 3:42 PM UTC

    Thanks for your help!

    So I need to record a direct stream from webcam to FMS together with some additional information about when and where to display additional elements and later use a client player to render them on the video, is it right?

    How can I add some information assosiated to the video? Is it good idea to use data-frames if I have almost 100 bytes of data every second or third frame?

    Too bad I will be limited to use just dedicated player and won't be able to have it all in one .flv file

    Greets!

    Translate
    Sep 30, 2009 5:49 PM UTC

    800 bytes every few seconds is no problem at all.

    See the docs for the NetStream.send method. The idea here is that you'll send actionscript data that describes what needs to happen with the display objects (x,y,z,tranform data ,etc), and the subscribing client will handle the rendering. The video would remain a separate asset.

    Translate