Why OpenCV's `cvCreateCameraCapture` and `cvCreateFileCapture` do not work?

烈酒焚心 提交于 2019-12-04 18:34:07

I found, by stepping into the openCV code, that I needed to ensure the fmpeg dll was present in the current working directory at runtime:

opencv_ffmpeg200d.dll

OpenCV doesn't shed any warning if this dll is not found, instead the capture create call just returns NULL.

hth

Si

Check the video format. OpenCV can be picky in which codecs it supports; it doesn't work with Xvid, for example. You can find a list of supported codecs on the OpenCV wiki

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!