问题描述
我使用Visual C#2008,想从写序列BMP AVI文件。
我发现AForge.Video.VWF但它只是为vmw3或DIB 编解码器,我想用AForge.Video.FFMPEG但它得到误差
例如我刚代码:
使用系统;
使用System.Collections.Generic;
使用System.Linq的;
使用System.Text;
使用AForge.Video.FFMPEG;
命名空间ConsoleApplication4
{
类节目
{
静态无效的主要(字串[] args)
{
VideoFileWriter VFW =新VideoFileWriter();
}
}
}
不过,我得到这个 FileNotFoundException异常
{指定的模块找不到。(从HRESULT异常:0x8007007E):空}
为了使用AForge.Video.FFMPEG正确,你必须确保包括FFmpeg的dll的到你的输出文件夹。最简单的方法是将它们添加到您的VS项目,继续它们的属性和设置复制到为Always。
使用AForge FFmpeg的二进制文件输出目录选项可以在AForge.NET的外部文件夹中,通常的 C:\Program文件(x86)\AForge.NET\Framework\Externals\ffmpeg\bin 的
I use Visual C# 2008 and want to write AVI file from bmp sequences.
I found AForge.Video.VWF but it's just for "vmw3" or "DIB " codecs and I want to use AForge.Video.FFMPEG but it got 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}
In order to use AForge.Video.FFMPEG correctly, you have to be sure to include the FFmpeg dll's into your output folder. The easiest way is to add them into your VS project, go on their properties and set the Copy to Output Directory option to "Always".
The FFmpeg binaries used by AForge can be found on the AForge.NET's external folder, typically in C:\Program Files (x86)\AForge.NET\Framework\Externals\ffmpeg\bin
这篇关于AForge.Video.FFMPEG在C#中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!