[ INFO:0] global F:\opencv\opencv\sources\modules\videoio\src\videoio_registry.cpp (223) cv::`anonymous-namespace’::VideoBackendRegistry::VideoBackendRegistry VIDEOIO: Enabled backends(8, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); MSMF(970); DSHOW(960); CV_IMAGES(950); CV_MJPEG(940); UEYE(930)

[ INFO:0] global F:\opencv\opencv\sources\modules\videoio\src\backend_plugin.cpp (383) cv::impl::getPluginCandidates Found 3 plugin(s) for FFMPEG

[ INFO:0] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load E:\project_ling\CameraApp\debug\opencv_videoio_ffmpeg454d.dll => FAILED

[ INFO:0] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_videoio_ffmpeg454d.dll => FAILED

[ INFO:0] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_videoio_ffmpeg454.dll => FAILED

[ INFO:0] global F:\opencv\opencv\sources\modules\videoio\src\backend_plugin.cpp (383) cv::impl::getPluginCandidates Found 2 plugin(s) for GSTREAMER

[ INFO:0] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load E:\project_ling\CameraApp\debug\opencv_videoio_gstreamer454d.dll => FAILED

[ INFO:0] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_videoio_gstreamer454d.dll => FAILED

[ INFO:0] global F:\opencv\opencv\sources\modules\videoio\src\backend_plugin.cpp (383) cv::impl::getPluginCandidates Found 2 plugin(s) for INTEL_MFX

[ INFO:0] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load E:\project_ling\CameraApp\debug\opencv_videoio_intel_mfx454d.dll => FAILED

[ INFO:0] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_videoio_intel_mfx454d.dll => FAILED

[ INFO:1] global f:\opencv\opencv\sources\modules\core\src\parallel\registry_parallel.impl.hpp (96) cv::parallel::ParallelBackendRegistry::ParallelBackendRegistry core(parallel): Enabled backends(3, sorted by priority): ONETBB(1000); TBB(990); OPENMP(980)

[ INFO:1] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load E:\project_ling\CameraApp\debug\opencv_core_parallel_onetbb454d.dll => FAILED

[ INFO:1] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_onetbb454d.dll => FAILED

[ INFO:1] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load E:\project_ling\CameraApp\debug\opencv_core_parallel_tbb454d.dll => FAILED

[ INFO:1] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_tbb454d.dll => FAILED

[ INFO:1] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load E:\project_ling\CameraApp\debug\opencv_core_parallel_openmp454d.dll => FAILED

[ INFO:1] global f:\opencv\opencv\sources\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_openmp454d.dll => FAILED

找到解决办法:

第一查看

cmake路径 会有日志: 下载错误问题是因为需要翻墙

cmake_x86\CMakeDownloadLog.txt

#use_cache “F:/opencv/opencv/sources/.cache”CD39BDF0C2E1CAC9A61101DAD7A2413E
#do_unpack “ippicv_2020_win_ia32_20191018_general.zip” “cd39bdf0c2e1cac9a61101dad7a2413e” MD5

下载路径

“https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_win_ia32_20191018_general.zip” “F:/opencv/opencv/build/cmake_x86/3rdparty/ippicv” 存放路径
#check_md5 “F:/opencv/opencv/sources/.cache/ippicv/cd39bdf0c2e1cac9a61101dad7a2413e-ippicv_2020_win_ia32_20191018_general.zip”
#mismatch_md5 “F:/opencv/opencv/sources/.cache/ippicv/cd39bdf0c2e1cac9a61101dad7a2413e-ippicv_2020_win_ia32_20191018_general.zip” “d41d8cd98f00b204e9800998ecf8427e”
#delete “F:/opencv/opencv/sources/.cache/ippicv/cd39bdf0c2e1cac9a61101dad7a2413e-ippicv_2020_win_ia32_20191018_general.zip”
#cmake_download “F:/opencv/opencv/sources/.cache/ippicv/cd39bdf0c2e1cac9a61101dad7a2413e-ippicv_2020_win_ia32_20191018_general.zip” “https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_win_ia32_20191018_general.zip”
#try 1
# timeout on name lookup is not supported
# getaddrinfo(3) failed for raw.githubusercontent.com:443
# Could not resolve host: raw.githubusercontent.com
# Closing connection 0
#

#match_hash_in_cmake_cache “OCV_DOWNLOAD_ADE_HASH_3rdparty_ade_v0_1_1f_zip” C2F9A897D464A2DCE2286F8067AD9D90
#do_copy “opencv_videoio_ffmpeg.dll” “c2f9a897d464a2dce2286f8067ad9d90” “https://raw.githubusercontent.com/opencv/opencv_3rdparty/40b4666d1aa374205fd61373496e15d92ecd5313/ffmpeg/opencv_videoio_ffmpeg.dll” “F:/opencv/opencv/build/cmake_x86/3rdparty/ffmpeg”
#missing “F:/opencv/opencv/build/cmake_x86/3rdparty/ffmpeg/opencv_videoio_ffmpeg.dll”
#check_md5 “F:/opencv/opencv/sources/.cache/ffmpeg/c2f9a897d464a2dce2286f8067ad9d90-opencv_videoio_ffmpeg.dll”
#mismatch_md5 “F:/opencv/opencv/sources/.cache/ffmpeg/c2f9a897d464a2dce2286f8067ad9d90-opencv_videoio_ffmpeg.dll” “d41d8cd98f00b204e9800998ecf8427e”
#delete “F:/opencv/opencv/sources/.cache/ffmpeg/c2f9a897d464a2dce2286f8067ad9d90-opencv_videoio_ffmpeg.dll”
#cmake_download “F:/opencv/opencv/sources/.cache/ffmpeg/c2f9a897d464a2dce2286f8067ad9d90-opencv_videoio_ffmpeg.dll” “https://raw.githubusercontent.com/opencv/opencv_3rdparty/40b4666d1aa374205fd61373496e15d92ecd5313/ffmpeg/opencv_videoio_ffmpeg.dll”
#try 1
# timeout on name lookup is not supported
# getaddrinfo(3) failed for raw.githubusercontent.com:443
# Could not resolve host: raw.githubusercontent.com
# Closing connection 0
#

#do_copy “opencv_videoio_ffmpeg_64.dll” “878a4e8fe5a4d68f18c9cdde543b9ead”878A4E8FE5A4D68F18C9CDDE543B9EAD “https://raw.githubusercontent.com/opencv/opencv_3rdparty/40b4666d1aa374205fd61373496e15d92ecd5313/ffmpeg/opencv_videoio_ffmpeg_64.dll” “F:/opencv/opencv/build/cmake_x86/3rdparty/ffmpeg”
#missing “F:/opencv/opencv/build/cmake_x86/3rdparty/ffmpeg/opencv_videoio_ffmpeg_64.dll”
#check_md5 “F:/opencv/opencv/sources/.cache/ffmpeg/878a4e8fe5a4d68f18c9cdde543b9ead-opencv_videoio_ffmpeg_64.dll”
#mismatch_md5 “F:/opencv/opencv/sources/.cache/ffmpeg/878a4e8fe5a4d68f18c9cdde543b9ead-opencv_videoio_ffmpeg_64.dll” “d41d8cd98f00b204e9800998ecf8427e”
#delete “F:/opencv/opencv/sources/.cache/ffmpeg/878a4e8fe5a4d68f18c9cdde543b9ead-opencv_videoio_ffmpeg_64.dll”
#cmake_download “F:/opencv/opencv/sources/.cache/ffmpeg/878a4e8fe5a4d68f18c9cdde543b9ead-opencv_videoio_ffmpeg_64.dll” “https://raw.githubusercontent.com/opencv/opencv_3rdparty/40b4666d1aa374205fd61373496e15d92ecd5313/ffmpeg/opencv_videoio_ffmpeg_64.dll”
#try 1
# timeout on name lookup is not supported
# getaddrinfo(3) failed for raw.githubusercontent.com:443
# Could not resolve host: raw.githubusercontent.com
# Closing connection 0
#

#do_copy “ffmpeg_version.cmake” “8862c87496e2e8c375965e1277dee1c7″8862C87496E2E8C375965E1277DEE1C7 “https://raw.githubusercontent.com/opencv/opencv_3rdparty/40b4666d1aa374205fd61373496e15d92ecd5313/ffmpeg/ffmpeg_version.cmake” “F:/opencv/opencv/build/cmake_x86/3rdparty/ffmpeg”
#missing “F:/opencv/opencv/build/cmake_x86/3rdparty/ffmpeg/ffmpeg_version.cmake”
#check_md5 “F:/opencv/opencv/sources/.cache/ffmpeg/8862c87496e2e8c375965e1277dee1c7-ffmpeg_version.cmake”
#mismatch_md5 “F:/opencv/opencv/sources/.cache/ffmpeg/8862c87496e2e8c375965e1277dee1c7-ffmpeg_version.cmake” “d41d8cd98f00b204e9800998ecf8427e”
#delete “F:/opencv/opencv/sources/.cache/ffmpeg/8862c87496e2e8c375965e1277dee1c7-ffmpeg_version.cmake”
#cmake_download “F:/opencv/opencv/sources/.cache/ffmpeg/8862c87496e2e8c375965e1277dee1c7-ffmpeg_version.cmake” “https://raw.githubusercontent.com/opencv/opencv_3rdparty/40b4666d1aa374205fd61373496e15d92ecd5313/ffmpeg/ffmpeg_version.cmake”
#try 1
# timeout on name lookup is not supported
# getaddrinfo(3) failed for raw.githubusercontent.com:443
# Could not resolve host: raw.githubusercontent.com
# Closing connection 0
#

解决办法就是下载后修改对应的名字 需要校验MD5

下载 ffmpeg_version.cmake

而是直接打开了ffmpeg_version.cmake,可以右键网页选择另存为 ffmpeg_version.cmake.txt,然后再改为ffmpeg_version.cmake。这里如果自己新建一个txt,然后直接将网页上的内容拷进去,然后再该后缀为.cmake是不行的,会提示md5不匹配

下载好的顺便发出来了:https://download.csdn.net/download/qq_42095701/87710691

需要的自取