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

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?

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:
[b]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?[/b]

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