为什么在运行 AForge.Video.FFMPEG 时出现 BadImageFormatException 错误?

问题描述

我正在尝试使用 C# 编辑视频,我找到了库 AForge.Video.FFMPEG,它看起来很完美:对于我的使用来说足够简单和完整,但是,当我尝试运行代码时:

using AForge.Video.FFMPEG;

namespace VideoTries
{
    class Program
    {
        static void Main(string[] args)
        {
            VideoFileReader vFReader = new VideoFileReader()
        }
    }
}

我有一个错误

Unhandled exception. System.BadImageFormatException: Could not load file or assembly 'AForge.Video.FFMPEG,Version=2.2.5.0,Culture=neutral,PublicKeyToken=03563089b1be05dd'. Attempting to load an incorrectly formatted program.

我真的不知道该怎么做,我尝试了许多其他库,但没有找到适合我想要的库,我什至认为该库不是免费的(因此是 PublicKeyToken)但显然那不是不是这样。

我真的不知道该怎么办,如果您知道什么可以帮助您,谢谢。

祝你有美好的一天:)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)