views:

27

answers:

1

Everyone knows that recording a video with the user's webcam is possible with flash in the browser - but all the solutions I found until now involve a rmtp server that accepts a stream from the flash app. Is there a way to use webcam recording without such an extra media server?

The usecase I want to implement is the following:


Show the user the output of his webcam on the screen. The user can hit a record button which will trigger the flash app to record 5 seconds of video material. The recorded video should be sent to the server as .flv file where it can be processed later.


Since the video will only be a few seconds long the amount of data is not a problem. But my actual question is: Is this somehow technically possible to do in Flash?

+1  A: 

You could use a jpg encoder (adobe core libs) to store a small series of jpgs as bytedata, zip it up (also adobe core libs) and send that to your server to be uncompressed and turned into an FLV. Warning, this could lead to quite large memory consumpsion if either the length is too long or the frame rate is high!

Gary Paluk
Thanks, thats a nice idea. But I think not implementable for real videos with framerates of ~25/sec.
Gregor Müllegger
Yeah, that's what I suspected, I think the only way is to use a media server then. Red5 etc.
Gary Paluk