AForge.Video.FFMPEG used in C #

I am using Visual C # 2008 and want to write an AVI file from bmp sequences.

I found AForge.Video.VWF, but it's just for the "vmw3" or "DIB" codecs, and I want to use AForge.Video.FFMPEG, but it got an error.

For example, I just code:

using System; using System.Collections.Generic; using System.Linq; using System.Text; using AForge.Video.FFMPEG; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { VideoFileWriter vfw = new VideoFileWriter(); } } } 

But I got this filenotfoundexception

 {"The specified module could not be found. (Exception from HRESULT: 0x8007007E)":null} 
+7
source share
2 answers

To use AForge.Video.FFMPEG correctly, you must include the FFmpeg DLL in your output folder. The easiest way is to add them to your VS project, go to their properties and set the option "Copy to output directory" to "Always".

The FFmpeg binaries used by AForge can be found in the external AForge.NET folder, usually in C: \ Program Files (x86) \ AForge.NET \ Framework \ Externals \ ffmpeg \ bin

+11
source

This is because AForge.Video.FFMPEG.DLL is dependent on other DLLs. copy this entire dll to the output folder.

0
source

All Articles