开发者

Recording a flv from an air window. Is it possible.

Is it possible to record and stream an air window to flv?

I would like to be able to use multiple video inputs and use text and graphics. To create a video mixer, pictu开发者_运维知识库re in picture, key in graphics, etc. I'm able to do this on the display but would like to be able to record and stream it as well. I would also like to retain HD resolution. Recording the window maybe a dirty method. Is there another way?

Can anyone point me to any classes or search terms?


Lee Felarca has created an FLVEncoder class for AS3 that is very easy to use. For each frame, you can draw your AIR window or rendered frame to a BitmapData using BitmapData.draw and then feed this to the encoder. Unfortunately, it uses the very simple screen video codec and produces very large video files, which probably isn't suitable for HD.

For a more robust solution, you could try piping the frames to FFmpeg using AIR's NativeProcess APIs. You'd draw your rendered frame to a BitmapData as above, but feeding it to FFmpeg will give you a great boost in speed and allow you to use any video container, codec, and compression settings you'd desire.

Finally, you could always try something like Fraps to simply record the screen. You might also be able to launch Fraps using NativeProcess.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜