简体   繁体   English

C# ffmpeg 无法加载 dll avcodec

[英]C# ffmpeg unable to load dll avcodec

I downloaded project to controlling AR Drone from this site:我从这个站点下载了控制 AR Drone 的项目:

https://github.com/Ruslan-B/AR.Drone

This project is old.这个项目很老了。 Then I downloaded ffmpeg.autogen library from this site然后我从这个站点下载了 ffmpeg.autogen 库

https://sourceforge.net/projects/ffmpeg-autogen/?source=typ_redirect

This is old version of ffmpeg because of old version AR.Drone.由于旧版本的 AR.Drone,这是 ffmpeg 的旧版本。 I has to be .NET Framework 4.0 version.我必须是 .NET Framework 4.0 版本。

Project has compiled, but when I run application I got an error:项目已编译,但当我运行应用程序时出现错误:

"Unable to load DLL 'avcodec': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

The error occurs in this line:错误发生在这一行:

FFmpegInvoke.avcodec_register_all();

I would advice to clone the project including submodules.我建议克隆项目,包括子模块。 Here is the quote from README.md:这是 README.md 中的引用:

git clone http://github.com/Ruslan-B/AR.Drone.git   
cd AR.Drone   
git submodule update --init   

It supposed download not only source code but compatible ffmpeg binaries as well.它不仅要下载源代码,还要下载兼容的 ffmpeg 二进制文件。

As a next step you need to build AR.Drone solution with VS2012+ it going to build all dependencies for you and then you will be able to start AR.Drone.WinApp project.作为下一步,您需要使用 VS2012+ 构建 AR.Drone 解决方案,它将为您构建所有依赖项,然后您将能够启动 AR.Drone.WinApp 项目。 It will auto pickup the ffmpeg binaries by convention.它将按照惯例自动拾取 ffmpeg 二进制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM