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.
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.
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.
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