Hi
I had some code to save stream of images into a video file using cvWriteToAVI function (from OpenCV) in c++ and my OS was Ubuntu and it worked perfectly,
But because of some problems I reinstalled ubuntu and installed all needed things(I think so):
OpenCV , codeBlocks , Buildessential , libavformat-dev and other libs
but that same code doesn't work now, I mean other parts are okay except cvWriteToAVI() function
in my code I first create the video file(which works too)
code :
CvSize size = cvSize(640,480);
int codec = CV_FOURCC('M', 'J', 'P', 'G');
CvVideoWriter* writer = cvCreateVideoWriter("video",codec,30,size);
IplImage* image = ardrone.getImage();
cvShowImage("camera", image);
cvWriteToAVI(writer,image);
any help would be appreciated