I'd like to know, what would be best way to encode/compress images in phone RAM to mpeg/avi/3gp or other movie format.

I know there is CVideoPlayerUtility etc what can save video directly, but thats not what i want.

I want first capture frames to RAM for archiving better FPS
(I think i can save 15 seconds of 15fps/176x144 video to phone 8-9MB ram and then compress somehow...)