如何在Visual Studio 2010中使用ffmpeg支持编译OpenCV 2.3
问题描述:
我在网上搜索了两天的教程,以在Windows下编译带有ffmpeg支持的OpenCV 2.3,但未找到任何内容.我在VS2010中使用的是OpenCV的预构建版本,但无法从网络摄像机读取内容,这就是为什么我需要ffmeg支持的原因.
It's two days I'm search around the web for a tutorial to compile OpenCV 2.3 with ffmpeg support under windows, but nothing found. I'm using pre-built version of OpenCV in VS2010 but I cannot read from network camera, it's why I need ffmeg support.
答
使用CMake从源代码构建OpenCV.选择USE_FFMPEG标志.
Build OpenCV with CMake from sources. Choose USE_FFMPEG flag.