0

I made a screen recorder that relies on the AForge.Video.FFMPEG.dll. After getting the package AForge.Video from the NuGet package manager I find it doesn't include the AForge.Video.FFMPEG.dll, just the AForge.Video.dll. I decided to manually add the FFMPEG.dll into my program folder and make a reference to it.

However now I get this error message:

My error message

I have tried following many solutions, but they don't seem to refer to my issue.

(Just because i know this will be the top suggestion, yes it is running in x86)

Thanks to anyone who can help!

Martin Zikmund
  • 38,440
  • 7
  • 70
  • 91
Simkoo
  • 74
  • 1
  • 10
  • I would love to provide more information, I just don't know what. So if you need it to solve the issue i would gladly provide it. – Simkoo Nov 19 '18 at 08:33
  • Afaik you should now use `Accord.Video` and `Accord.Video.FFPMEG` – marsze Nov 19 '18 at 08:36

1 Answers1

3

AForge.NET is now basically deprecated and replaced by Accord.NET. As Wikipedia says about Accord.NET:

The project was originally created to extend the capabilities of the AForge.NET Framework, but has since incorporated AForge.NET inside itself. Newer releases have united both frameworks under the Accord.NET name.

So if you are looking for the FFMPEG capabilities, you should reference Accord.Video.FFMPEG package from NuGet.

Install-Package Accord.Video.FFMPEG -Version 3.8.0 

If you for some reason have to keep using AForge, try to follow the steps in this SO answer to include the DLL properly in the project.

Martin Zikmund
  • 38,440
  • 7
  • 70
  • 91
  • 1
    When trying with version 3.8.0 shows exception "System.IO.FileLoadException: 'Could not load file or assembly 'Accord.Video.FFMPEG, Version=3.8.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7' or one of its dependencies. Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x80131019)'" – user2431727 Mar 29 '19 at 06:20