开发者

Recording video with flash and send videofile to server

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 hi开发者_C百科s 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?


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!


You can use a third-party service in the cloud. In that case you don't need to have a media server yourself. You could probably use an online service like Nimbb to record and then move the FLV file to Amazon S3 or your own server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜