Video Capture in iOS
Posted: Thu Jan 17, 2013 3:31 pm
Hi,
I am running OGRE 1.8 in my iOS 6 application and am investigating ways that I can record the rendered display into a video file on the device. I have checked through some material online and on these forums and found that the relevant methods may not be working correctly on iOS. I saw some work has been done on copyContentsToMemory for a RenderTarget and therefore it should work on iOS but I am experience constant errors when I try to call this method on my RenderWindow.
I have currently tried to implement a RenderTargetListener (attached to the main window) and call the writeContentsToFile method to test if I can capture the rendered content this way but everytime I run the method I get a SIGBAR error
I have a feeling this may to do with timing but would be greatful if anyone could point me in the right direction to being able to record the frames when using iOS.
Thanks,
William
I am running OGRE 1.8 in my iOS 6 application and am investigating ways that I can record the rendered display into a video file on the device. I have checked through some material online and on these forums and found that the relevant methods may not be working correctly on iOS. I saw some work has been done on copyContentsToMemory for a RenderTarget and therefore it should work on iOS but I am experience constant errors when I try to call this method on my RenderWindow.
I have currently tried to implement a RenderTargetListener (attached to the main window) and call the writeContentsToFile method to test if I can capture the rendered content this way but everytime I run the method I get a SIGBAR error
Code: Select all
void OgreFrameRecorder::postRenderTargetUpdate (const Ogre::RenderTargetEvent &evt){
evt.source->writeContentsToFile("/var/mobile/Applications/47C021C1-E8BC-43B4-98E9-6497438FB4E4/Documents/test1.bmp");
}
Thanks,
William