本文介绍了OpenCV 3.0.0“配置"失败,ffmpeg 未下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Windows 上使用 CMAKE 配置 OpenCV 时出现以下错误:

I get the following error when trying to configure OpenCV using CMAKE on windows:

CMake Warning at cmake/OpenCVUtils.cmake:865 (message):
Download: Local copy of opencv_ffmpeg.dll has invalid MD5 hash:
d41d8cd98f00b204e9800998ecf8427e (expected:
89c783eee1c47bfc733f08334ec2e31c)

Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:193 (include)
CMakeLists.txt:527 (include)


Downloading opencv_ffmpeg.dll...
CMake Error at cmake/OpenCVUtils.cmake:888 (file):
file DOWNLOAD MD5 mismatch

for file: [C:/research/opencv300/sources/3rdparty/ffmpeg/downloads/89c783eee1c47bfc733f08334ec2e31c/opencv_ffmpeg.dll]
expected MD5 sum: [89c783eee1c47bfc733f08334ec2e31c]
actual MD5 sum: [d41d8cd98f00b204e9800998ecf8427e]

Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:193 (include)
CMakeLists.txt:527 (include)


CMake Error at cmake/OpenCVUtils.cmake:892 (message):
Failed to download opencv_ffmpeg.dll.  Status=1;"unsupported protocol"
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
cmake/OpenCVFindLibsVideo.cmake:193 (include)
CMakeLists.txt:527 (include)


Configuring incomplete, errors occurred!

我尝试手动下载 opencv_ffmpeg.dll,但配置过程不起作用.

I tried downloading opencv_ffmpeg.dll manually, but the configure process didn't work.

你能帮我解决这个问题吗?

Can you help me, how to fix that?

推荐答案

最近在使用 opencv 3.1.0 时遇到了同样的问题.通过使用 opencv 提取的 ./build/bin 目录中的相应 dll 解决了这种情况.至于 ffmpeg_version.cmake,给出的链接.替换./sources/3rd party/ffmpeg下的文件,然后重新配置cmake.

Had the same problem recently with opencv 3.1.0. Resolved the situation by using corresponding dll(s) from the ./build/bin directory of an opencv extract. As for ffmpeg_version.cmake, grabbed it from the link given. Replace the files under ./sources/3rd party/ffmpeg then reconfigure cmake.

这篇关于OpenCV 3.0.0“配置"失败,ffmpeg 未下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 15:00