R – create/modify flash video stream before streaming via RTMP

flashflash-media-serverred5streaming

Usually, flash streaming is done by capturing webcam video/audio and streaming using NetConnection and other objects to servers like FMS,Red5,Wowza etc.

I haven't found any example on how to create your own stream of images and stream as a video to the server.

I know it would be possible to convert the image to bytes and send via SharedObjects. Then decode on server and create a video file on the server (e.g. using ffmpeg), but I would rather do it in realtime on the client side if possible.

Is it possible to do it in pure Flash/Actionscript?

Thank you 🙂

Best Answer

I don't believe any libraries exist for streaming video from AS3. It's very processor-intensive, and probably couldn't be real-time. http://en.wikipedia.org/wiki/Flash_Video

You can save a .flv containing uncompressed bitmap data with this lib, but that's not going to get you what you want.. http://www.zeropointnine.com/blog/simpleflvwriteras-as3-class-to-create-flvs/

You're probably going to need some server-side code to get this goal accomplished - you'll get much better performance also if your flash app just sends the component photos across the wire (assuming this is some kind of slideshow)...

Is realtime a requirement?

Related Topic