views:

92

answers:

1

I need to compress video image data (lets say a display object) in AS3 to a Byte Array with high compression at runtime. Framerate only needs to be around 5 but 1024x768 video needs to go to < 40 Kilobyte per Second without the quality beeing tooo bad. I wrote a custom encoder and got it to around 80-100 Kilobyte per Second for 1024*768 which still is too much and i dont see a lot of improvements to be mad to my encoder.

Using JPG or PNG Encoder gives way higher KB/s. Is there any open source way to to decode and encode video in as3 at runtime ? E.g. a H.264 as3 encoder and decoder ? Or other codecs ?

Or maybe a C# source code of h.264 encoder and decoder ? I think i could port it to as3...

EDIT: Doesnt need to be h.264, just something with good quality when running at 5 Frames/Sec and 40 Kilobyte...

+1  A: 

ffmpeg is the only open source encoder/decoder I know of. I don't think it is C#. Due to licensing and patent issues around H.264, I'd be very surprised if an open source encoder didn't get sued into oblivion. this is why, for example, Firefox doesn't support H.264 in their HTML5 initiative.

www.Flextras.com