Hello,
I'm trying to save a video to a file using OpenCV. But when I want to use more advanced codecs like DIVX or something I get the following error as soon as i call operator <<. For example the following snippet will bring up the error:
cv::VideoWriter testwriter("C:\\test.avi", CV_FOURCC('D', 'I', 'V', 'X'), 25, cv::Size(500,500));
cv::Mat img(500,500,CV_8UC3);
if (testwriter.isOpened()){
testwriter << img;
}
The error message is:
Unhandled exception at 0x659c1f45 (opencv_ffmpeg210d.dll) in main.exe: 0xC0000005: Access violation reading location 0x00000000.
Other Codecs like MPG-1 (CV_FOURCC('P', 'I', 'M', '1')) also produce the error. It seems it works only with RAW RGB or IYUV.
Any ideas?
Thanks!!