如何用C#中的图像制作视频 [英] how to make videos from images in C#

查看:155
本文介绍了如何用C#中的图像制作视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人请帮我解决这个问题。

当我试图在项目中添加'BytescoutImageToVideo.dll'时我得到了这条消息。

更高版本或不兼容的程序集无法添加到项目中。

i使用.Net Framework 4.5。

someone please help me to solve out this.
when i tried to add ' BytescoutImageToVideo.dll ' this in the project i got this message.
A reference to a higher version or incompatible assembly cannot be added to the project.
i am using .Net Framework 4.5.

推荐答案

这清楚地表明您的dll文件 .NET 4.5不兼容 。所以你可以使用该dll文件的.net 4.5版本,也可以使用该dll文件支持的特定.net版本。
That clearly indicates that your dll file isn't compatible with .NET 4.5. So you could either use .net 4.5 version of that dll file or could use a specific .net version that is supported by that dll file.


实际上,这些问题很好地解决了开源FFmpeg或libavcodec:

http://en.wikipedia.org/wiki/Ffmpeg [ ^ ],

< a href =http://ffmpeg.org/> http://ffmpeg.org/ [ ^ ],

http://en.wikipedia.org/wiki/ Libavcodec [ ^ ],

http://libav.org/ [ ^ ]。



在这两种情况下,您都可以获得免费的开源实用程序事情,包括从框架图片组装你的视频。



现在,如何在.NET应用程序中以编程方式使用它?首先,您可以使用 System.Diagnostics.Process.Start 运行它来使用可用的实用程序:

http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx [ ^ ]。



如果这还不够好,你可以自己将库包装在.NET程序集中,或找到合适的包装器。请参阅:

http://www.ffmpeg-csharp.com/ [ ^ ],

http://sourceforge.net/projects/sharpffmpeg/ [ ^ ],

http://vbffmpegwrapper.codeplex.com/ [ ^ ]。



毕竟,尝试找一些: http://bit.ly/VpboUJ [ ^ ]。



如果你想工作在你自己的包装但不知道如何,问一个问题,我会给你基本的想法(使用P / Invoke或C ++ / CLI混合模式项目)。



祝你好运,

-SA
In practice, such problems are solved very well by open-source FFmpeg or libavcodec:
http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].

In both cases, you can get free open-source utilities which can make nearly everything, including assembling your video from frame pictures.

Now, how to use it programmatically in a .NET application? First, you can use the available utility by running it using System.Diagnostics.Process.Start:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx[^].

If this is not good enough, you can wrap the library in a .NET assembly by yourself or find appropriate wrapper. Please see:
http://www.ffmpeg-csharp.com/[^],
http://sourceforge.net/projects/sharpffmpeg/[^],
http://vbffmpegwrapper.codeplex.com/[^].

After all, try to find some more: http://bit.ly/VpboUJ[^].

If you wish to work at such wrapper by yourself but don't know how, ask a question, I'll give you the basic ideas (using P/Invoke or C++/CLI "mixed-mode" project).

Good luck,
—SA


这篇关于如何用C#中的图像制作视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆