Results 1 to 4 of 4

Thread: OpenGL Screen to AVI

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    Trivandrum
    Posts
    6

    OpenGL Screen to AVI

    Hi All

    I am trying for saving a rotating 3D object as an AVI file. The problem with me is the AVI file size is too large since I am not applying any compression. The system not permits me to give any other option rather that BI_RGB. I want to compress the bitmap information before adding the frames.

    (LPBITMAPINFOHEADER lpbi->biCompression = BI_JPEG

    If anybody knows the answer please share with me. I am considering onlyt 24Bit bitmaps.

    Thanks in advance
    regards
    Sankaran

  2. #2
    Member Contributor
    Join Date
    Oct 2001
    Location
    Germany
    Posts
    60

    Re: OpenGL Screen to AVI

    I thing this do not work.
    You give alway bmp images to the procedure and a codec compress the avi. Try to download some codecs: Divx is a good variant.

    You must first get the Code of the Codec, than make a Compressed Stream and than save in the compressed Stream.

    for more informartion check http://www.shrinkwrapvb.com/avihelp/avihelp.htm
    its in VB but Visual C has the same Avi handeling functions.

    I have an other problem. I want append images to an existing avi. How can I do this with the Visual C avi functions?

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    Trivandrum
    Posts
    6

    Re: OpenGL Screen to AVI

    Hello
    But in the Documentation (MSDN) says thet this parameter can take the value BI_JPEG. I tried that option and not works.
    By the way I am not an expert to solve your AVI append problem..Sorry.

    with regards
    Sankaran

    Originally posted by wedge:
    I thing this do not work.
    You give alway bmp images to the procedure and a codec compress the avi. Try to download some codecs: Divx is a good variant.

    You must first get the Code of the Codec, than make a Compressed Stream and than save in the compressed Stream.

    for more informartion check http://www.shrinkwrapvb.com/avihelp/avihelp.htm
    its in VB but Visual C has the same Avi handeling functions.

    I have an other problem. I want append images to an existing avi. How can I do this with the Visual C avi functions?

  4. #4
    Member Contributor
    Join Date
    Oct 2001
    Location
    Germany
    Posts
    60

    Re: OpenGL Screen to AVI

    Documentation (MSDN) says also that AVIFileOpen(pfile, filename, OF_CREATE, NULL) with OF_CREATE set the file lenght to zero if a File exist. That also do not work! *g* its MS

    you can also look here C version http://www.efg2.com/Lab/Library/UseNet/1999/0121a.txt

Similar Threads

  1. Replies: 0
    Last Post: 07-29-2009, 12:54 PM
  2. drawing onto screen not exact screen coord?
    By abraham2119 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-11-2009, 01:43 PM
  3. screen extrems of the geometry projected on the screen
    By iris_raj in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-28-2007, 05:04 PM
  4. SDL + OpenGL, nothing on screen :(
    By Incubator in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-16-2004, 05:20 AM
  5. Replies: 0
    Last Post: 09-30-2003, 08:58 AM

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