Results 1 to 5 of 5

Thread: Saving opengl output to video files

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2002
    Location
    Hyderabad, Andhra Pradesh, India
    Posts
    1

    Saving opengl output to video files

    hi,

    i am trying to save my opengl animations as video files in windows. I tried it with avi, but the rendering quality is horrible and it is too slow.

    Can anybody suggest me a suggest me a method to encode the opengl animation sequence into a video format which does not compromise much on quality, at the same time having some amount of compression and ease of use.

    Thank you.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: Saving opengl output to video files

    Hi,

    I've tryed this :
    http://www.atomixbuttons.com/vsc/

    But the program slows my OpenGL program too much ...

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: Saving opengl output to video files

    Are you wanting this done in real time?
    Unless you have a really fast CPU, it is going to be slow.
    Also from what I understand, is that even if you have 3D hardware on your video card. The card was optimized to have data sent to it not back out. So reading the video buffer from the card will slow's rendering process down thus the frame rate.

    If you don't mind waiting, just render to single images files, then use a video editing program to turn the single frame images into a MPG or AVI.

    Originally posted by pramod_reddy:
    hi,

    i am trying to save my opengl animations as video files in windows. I tried it with avi, but the rendering quality is horrible and it is too slow.

    Can anybody suggest me a suggest me a method to encode the opengl animation sequence into a video format which does not compromise much on quality, at the same time having some amount of compression and ease of use.

    Thank you.

  4. #4

    Re: Saving opengl output to video files

    glReadPixels()? Using this call, you can read pixels from the video buffer in RGB format, then save them, say, to a sequence of TGA files (raw, uncompressed RGB888 format), and then use an MPEG/AVI/Bink/Smacker/DivX compressor to achieve desired compression... Just have enough disk space - each 640x480 RGB screen is about 900 kilobytes, if your target animation fps is 50, it is about 45 megabytes per second and 2.8 gigabytes per minute.

    You will probably have to adjust your code to use a fixed time scale (rather than a variable time scale based on system time), since grabbing and writing each screen will take quite some time.

  5. #5
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    Re: Saving opengl output to video files

    Try the quicktime libs

Similar Threads

  1. Saving OpenGL output as Fixed Dimension JPG
    By miztaken in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 05-28-2010, 07:35 AM
  2. Saving OpenGL output as OBJ file
    By miztaken in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-28-2010, 07:31 AM
  3. Replies: 3
    Last Post: 01-16-2004, 08:33 AM
  4. Saving Register Combiner Output
    By zroobavela in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-11-2002, 06:48 AM
  5. saving opengl displays as image files
    By in forum OpenGL: macOS
    Replies: 3
    Last Post: 05-14-2001, 03:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean