简体   繁体   中英

Problem with cvCreateVideoWriter in OpenCv. Again )

I know, that the issue had been widely discussed before, but after 5 hours of inefficient googling I guess I deserve to ask :) By the way, all such problems concerned earlier versions of OpenCV, so..

I've compiled fresh OpenCV 2.1. from source under Ubuntu 9.10. It works fine except of cvCreateVideoWriter, which returns null to the following request:

CvVideoWriter *writer = cvCreateVideoWriter("video.avi", 
CV_FOURCC('M','J','P','G'), fps, size, 0);

I've walked through the OpenCv folders - it even seems to have ffmpeg inside. I've also installed it on the system to make sure. I've changed CV_FOURCC('M','J','P','G') to -1 - all worthless.

I would appreciate your help soo much!

我再次从源代码重新编译了OpenCV和ffmpeg,现在看来工作正常。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM