Skip to main content
Participant
September 30, 2009
Question

How to record a webcam video together with stage content?

  • September 30, 2009
  • 1 reply
  • 1018 views

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 has been closed for replies.

    1 reply

    September 30, 2009

    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.

    piotrrrAuthor
    Participant
    September 30, 2009

    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!

    September 30, 2009

    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.