Jump to content
  • Advertisement
Sign in to follow this  
gamver

how generate video from a opengl window

This topic is 4893 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!