How to capture Iphone Gameplay Screen as like talking tom app using cocos2D?
use AVAssetWriter for your work.. For more info..
http://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVAssetWriter_Class/Reference/Reference.html
Hope this helps. :)