Failed to load OpenH264 library: openh264-1.8.0-win64.dll Please check environment and/or download

Failed to load OpenH264 library: openh264-1.8.0-win64.dll
Please check environment and/or download library: https://github.com/cisco/openh264/releases

[libopenh264 @ 000001866c109c40] Incorrect library version loaded
Could not open codec ‘libopenh264’: Unspecified error

解决方法:

1、原因:
原生安装的OpenCV是没有H264编码器的,这就需要自己去下载配置使用。

2、下载地点:
https://github.com/cisco/openh264/releases

3、下载目标:
观察你报错中的提示:以下是我的报错,请自行代换
Failed to load OpenH264 library: openh264-1.8.0-win64.dll Please check environment and/or download_第1张图片

然后,在下载地点给出的网址里面,中找到对应下载地址,点击下载
Failed to load OpenH264 library: openh264-1.8.0-win64.dll Please check environment and/or download_第2张图片

4、下载后放置地点:
将压缩包解压后得到的dll文件,放在你oepncv->bin下面,具体地址如下:
Failed to load OpenH264 library: openh264-1.8.0-win64.dll Please check environment and/or download_第3张图片
5、执行完上述步骤再次运行结果:
在这里插入图片描述
以上全是我个人通过实验验证过的,如果有什么不对的地方,欢迎大家评论区指出。博客地址https://blog.csdn.net/qq_51116518

你可能感兴趣的:(oepncv,python实践,opencv)