C# ffmpeg unable to load dll avcodec

0

I downloaded project to controlling AR Drone from this site:

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

This project is old. Then I downloaded ffmpeg.autogen library from this site

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

This is old version of ffmpeg because of old version AR.Drone. I has to be .NET Framework 4.0 version.

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();
c#
ffmpeg
avcodec
asked on Stack Overflow Feb 8, 2018 by Robert

1 Answer

0

I would advice to clone the project including submodules. Here is the quote from 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.

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. It will auto pickup the ffmpeg binaries by convention.

answered on Stack Overflow Feb 8, 2018 by Ruslan Balanukhin • edited Feb 9, 2018 by Ruslan Balanukhin

User contributions licensed under CC BY-SA 3.0