EricSkiff.com Open Source Everything

23May/114

Example code: capturing webcam vids with flash

This file is a super-simple example of capturing a webcam up to a flash media server
You can use RED5 1.0, Wowza, or FMS for this example - there are demo recording apps
(oflaDemo for red5, vod for Wowza) included with each. Note: red5 .9xx reportedly
does not like the buffered upstream sending we're doing here.

All of the existing examples I could find simply had you "stop" the netstream object
when the user was done record, which, if you have any client-side buffer at all completely
borks the recorded FLV. This example uses a 60 second client-side buffer, which
allows you to capture high-quality webcam videos even if the upstream bandwidth
isn't perfect or consistent. Once the user is done, the buffer continues sending up
the data, and as long as you didn't overflow the client-side buffer, the video should
be perfect.

Comments (4) Trackbacks (0)
  1. Hi Chris,
    Just wondering if you had a demo project using this example out of interest? I did a bit of flash back in the day but haven’t touched it since flex/flash builder and would love to see an example of structuring a little project in flex and how it would work with the video ui?

    Cheers,
    Tom

  2. This had been a terrific read. I was captivated, something which scarcely happens to me nowadays, and I can’t wait to
    see what will come next.

  3. Hey Merely wanna remark on few garneel things, The website pattern is perfect, the content material is real excellent. Crime does not pay as well as politics. by Alfred E. Newman .

  4. It’s a weird thing. I am still not totally sure where I stand on marriage, though I do know that it’s a question for *me*, not my fucking father, and not for the entertainment of a cinema audience.


Leave a comment

No trackbacks yet.