Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Capturing OpenGL Output to Movie

  1. #1
    Intern Newbie
    Join Date
    Jan 2006
    Posts
    30

    Capturing OpenGL Output to Movie

    I need to capture the output of my OpenGL app to a movie.

    The solution needs to work on Windows and OS X.

    Is there some sample code showing how to do this anywhere?

    Also, what video formats are recommended? I'm currently leaning towards Quicktime but I'm open to suggestions.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Aug 2007
    Location
    USA
    Posts
    243

    Re: Capturing OpenGL Output to Movie

    The way I've created movies from my OpenGL programs in the past is to output each frame to a file (using PBOs and glReadPixels), then compile the frames into a movie using mencoder.

  3. #3
    Intern Contributor
    Join Date
    Nov 2006
    Location
    Peru
    Posts
    95

    Re: Capturing OpenGL Output to Movie

    How?

  4. #4
    Junior Member Regular Contributor
    Join Date
    Aug 2007
    Location
    USA
    Posts
    243

    Re: Capturing OpenGL Output to Movie

    I have a directory called "frames" which contains TGA files, then I run:

    mencoder mf://frames/*.tga -mf fps=60 -ofps 60 -o out.mpg -ovc x264 -x264encopts bitrate=5000

    This is no programmatic solution, but mencoder is available for multiple platforms...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •