I have a Opencv program under windows that create an avi file from images buffer.
the main code in Opencv to save video file is that:
IplImage* img = 0;
cvWriteFrame(writer,img); // add the frame to the file
In windows, with this :" CV_FOURCC('I','Y','U','V') " the outputed result is an raw avi file
and I can read it with VLC or WMP .
BTW the outputted avi file coming from Windows system can be too read in Linux correctly (I use Noatun)
But the problem is when I compil and run this same program in Linux (Debian), I have too an avi file (but with more small size) and this avi file can't be read correctly (only green color is seen) under Linux and under Windows. So it is like an encoding problem in Linux ?
The problem is under Linux but not in Windows seems like Opencv is not working well under Linux isn't it?
I heard that in Linux before installing Opencv we must Install ffMPEG first ! Is this maybe the reason ?
Or simply that the fourcc 'I','Y','U','V' is not compatible under Linux ?