Saturday, 23 January 2010

Writing and reading AVI files with OpenCV

If you write an AVI file using CvVideoWriter() and the option CV_FOURCC('D','I','B',' ') it is not possible to read this AVI file correct with the function cvCreateCaptureFromFile() the file will not be interpreted correct.

By using the FFmpeg interface, which is included in the OpenCV library, it is possible to read this files with cvCreateCaptureFromFile_FFMPEG().

Edit: this sample has been used with opencv 1.0

No comments:

Post a Comment