Original Post
Hi, I need to implement a video capture feature into the game I'm working on, primarily for debugging purposes (so for example, if someone else can reproduce a bug that I can't, they can send me a video of it happening, along with any other log files created by the program). Here's kinda what I'm looking for: - Suggestions which will work cross-platform are preferable. I'm developing the game on Windows, but I'd like to be able to port (and test) the game on other operating systems, so Windows-centric code isn't likely to help much. I'm rendering with OpenGL, for what it's worth. - I'd much prefer a software solution, written into my game code than a solution which requires all kinds of video capture card setups and stuff. - Having the game save out as readymade video files (AVI, or whatever) would be preferable to spitting out individual numbered images to be stitched together into a video later, assuming that video files can be created on-the-fly whilst still maintaining playable framerates. - If I do have to spit out individual images, can anyone recommend a (ideally free) package for doing so relatively easily and flexibly? - Recording audio with the video would be nice, but is by no means essential. I dug around GameDev a bit, and found this: http://www.gamedev.net/reference/articles/article2063.asp but the code obviously never got finished. DirectX stuff and OpenGL stuff is kinda weirdly mashed together in the code example, it looks quite Windows-centric, and it crashes every time it tries to actually get a screen capture. I've not been able to find much else in the way of resources. Does anyone have any suggestions or advice?