I need to compress video data (say, a display object) in AS3 into a high compression byte array at runtime. The frame should only be around 5, but the 1024x768 video should go at <40 Kilobytes per second without quality beeing tooo bad. I wrote my own encoder and got it at about 80-100 kilobytes per second for 1024 * 768, which is still too much and I don’t see many improvements to go crazy for me.
Using JPG or PNG Encoder gives higher KB / s. Is there any open source way to decode and encode video in as3 at runtime? For instance. H.264 as3 encoder and decoder? Or other codecs?
Or maybe the C # source code for the h.264 encoder and decoder? I think I could port it to as3 ...
EDIT: No need to be h.264, just something with good quality when working at 5 frames / sec and 40 kilobytes ...
source
share