解决opencv310 ffmpeg、ippicv_windows_20151201.zip无法下载问题

ffmpeg文件无法下载

CMake错误

CMake Warning at cmake/OpenCVUtils.cmake:872 (message):
  Download: Local copy of opencv_ffmpeg.dll has invalid MD5 hash:
  3a56b0b26c0d56457a990eb00d87f889 (expected:
  89c783eee1c47bfc733f08334ec2e31c)
Call Stack (most recent call first):
  3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
  cmake/OpenCVFindLibsVideo.cmake:206 (include)
  CMakeLists.txt:536 (include)

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

  for file: [D:/opencv/310/opencv/sources/3rdparty/ffmpeg/downloads/89c783eee1c47bfc733f08334ec2e31c/opencv_ffmpeg.dll]
      expected hash: [89c783eee1c47bfc733f08334ec2e31c]
        actual hash: [56c56445ab47e8ff52bda82ce1c0a798]
             status: [28;"Timeout was reached"]

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

CMake Error at cmake/OpenCVUtils.cmake:899 (message):
  Failed to download opencv_ffmpeg.dll.  Status=28;"Timeout was reached"
Call Stack (most recent call first):
  3rdparty/ffmpeg/ffmpeg.cmake:10 (ocv_download)
  cmake/OpenCVFindLibsVideo.cmake:206 (include)
  CMakeLists.txt:536 (include)


Configuring incomplete, errors occurred!
See also "D:/opencv/310/mybuild/CMakeFiles/CMakeOutput.log".
See also "D:/opencv/310/mybuild/CMakeFiles/CMakeError.log".

下载的文件保存在 sources\3rdparty\ffmpeg\downloads目录下,由于下载不成功导致以上错误
在sources\3rdparty\ffmpeg\ffmpeg.cmake中有下载网址和文件的MD5

下载网址如下
https://raw.githubusercontent.com/Itseez/opencv_3rdparty/8aeefc4efe3215de89d8c7e114ae6f7a6091b8eb/ffmpeg/opencv_ffmpeg.dll
https://raw.githubusercontent.com/Itseez/opencv_3rdparty/8aeefc4efe3215de89d8c7e114ae6f7a6091b8eb/ffmpeg/opencv_ffmpeg_64.dll
https://raw.githubusercontent.com/Itseez/opencv_3rdparty/8aeefc4efe3215de89d8c7e114ae6f7a6091b8eb/ffmpeg/ffmpeg_version.cmake

自行下载这三个文件,注意要检查哈希值,哈希值检查小工具
opencv_ffmpeg.dll的MD5:89c783eee1c47bfc733f08334ec2e31c
opencv_ffmpeg_64.dll的MD5:35fe6ccdda6d7a04e9056b0d73b98e76
ffmpeg_version.cmake的MD5:8606f947a780071f8fcce8cbf39ceef5
为了防止官网抽风,这里提供自己上传的文件(MD5已验证):ffmpeg文件打包

将opencv_ffmpeg.dll放在目录

sources\3rdparty\ffmpeg\downloads\89c783eee1c47bfc733f08334ec2e31c

将opencv_ffmpeg_64.dll放在目录

sources\3rdparty\ffmpeg\downloads\35fe6ccdda6d7a04e9056b0d73b98e76

将ffmpeg_version.cmake放在目录

sources\3rdparty\ffmpeg\downloads\8606f947a780071f8fcce8cbf39ceef5

ippicv无法下载

在sources\3rdparty\ippicv\downloader.cmake中有下载地址和MD5

下载地址如下
https://raw.githubusercontent.com/Itseez/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_windows_20151201.zip
https://raw.githubusercontent.com/Itseez/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_macosx_20151201.tgz
https://raw.githubusercontent.com/Itseez/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_linux_20151201.tgz

为了防止官网抽风,这里提供自己上传的文件(MD5已验证):
ippicv_windows_20151201.zip
ippicv_macosx_20151201.tgz
ippicv_linux_20151201.tgz

windows平台,将ippicv_windows_20151201.zip放在

sources\3rdparty\ippicv\downloads\windows-04e81ce5d0e329c3fbc606ae32cad44d

macosx平台,将ippicv_macosx_20151201.tgz放在

sources\3rdparty\ippicv\downloads\macosx-4ff1fde9a7cfdfe7250bfcd8334e0f2f

linux平台,将ippicv_linux_20151201.tgz放在

sources\3rdparty\ippicv\downloads\linux-808b791a6eac9ed78d32a7666804320e

将所有需要下载的文件都放到相应的目录,在开始CMake即可

你可能感兴趣的:(opencv)