Sign in to follow this  
gamver

how generate video from a opengl window

Recommended Posts

I have a OpenGL window and some animations in it, I want to record the animation, so convert OpenGL window's frame into a AVI file or some other file format,how can I do that? another question is can i use some offscreen renderers to render the animation and then convert the frame to video?

Share this post


Link to post
Share on other sites
If you just need a tool to do this, check out FRAPS. As for doing it programmatically yourself, you'll need a video encoding library; which one depends on the format you want the final clip to be in. Generally you'll write each frame to a BMP file (or, to save a huge amount of space, lossless JPG or PNG), and afterwards encode them in a separate pass into video. A quick Google search turns up several options for tools that can do this for you; there's an open-source one here, and probably others on SourceForge. They should at least give you a good starting point if you want to write your own code to produce the AVIs.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this