PDA

View Full Version : OpenGL Screen to AVI



psankaranv
01-21-2002, 06:29 PM
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 http://www.opengl.org/discussion_boards/ubb/wink.gif

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

Thanks in advance
regards
Sankaran

wedge
01-21-2002, 10:30 PM
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?

psankaranv
01-21-2002, 11:27 PM
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?

wedge
01-22-2002, 01:48 AM
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