AVI使用VB.NET加入 [英] AVI Join Using VB.NET

查看:59
本文介绍了AVI使用VB.NET加入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我想使用vb.net代码加入2个AVI文件。

我用AForge试过这个。 Net aviwriter,

但问题是它只允许1000帧。

我想加入超过AVI的文件。

我不能甚至使用FileStream对象,因为AVI文件包含AVI标题。

请给我解决方案。





非常感谢你。

Dear Friends,

I want to join 2 AVI files using vb.net code.
I have tried this using AForge.Net aviwriter,
But problem with this is that it allows only 1000 frames.
I want to join over size AVI files.
I cant even use FileStream object because AVI file contains AVI Header.
Please give me the solution on this.


Thank you very much in advance.

推荐答案

我强烈推荐libavcodec库和FFmpeg,它基于libav。请参阅:

http://en.wikipedia.org/wiki/Ffmpeg [< a href =http://en.wikipedia.org/wiki/Ffmpegtarget =_ blanktitle =New Window> ^ ],

http://ffmpeg.org/ [ ^ ],

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

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



在这两种情况下,您都可以获得免费的开源实用程序,它几乎可以制作所有内容,当然还可以加入任何视频,是否转码(在这种情况下,附加的媒体格式和属性应匹配)。



.NET有许多FFmpeg或libav包装器:

http://paulspicks.com/download/solid-ffmpeg-c-net-wrapper.aspx [ ^ ],

http://www.visioforge.com/Products/video- edit-sdk-ffmpeg-net.html [ ^ ],

http ://www.overridepro.com/2009/05/23/ffmpeg-with-net/ [ ^ ]。



搜索:http://bit.ly/124rYgx [ ^ ]。



更糟糕的是,你可以简单地执行该实用程序通过 System.Diagnostics.Process.Start http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx [ ^ ]。



你可以捕获输出使用重定向 StandardOutput 流,以及以防万一, StandardError 。你可以在这里找到重定向的代码示例:

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



祝你好运,

-SA
I would strongly recommend libavcodec library and FFmpeg, which is based on libav. Please see:
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, and certainly joining of any video, with transcoding or not (in that case, appending media formats and properties should match).

There are a number of FFmpeg or libav wrappers for .NET:
http://paulspicks.com/download/solid-ffmpeg-c-net-wrapper.aspx[^],
http://www.visioforge.com/Products/video-edit-sdk-ffmpeg-net.html[^],
http://www.overridepro.com/2009/05/23/ffmpeg-with-net/[^].

Search for it: http://bit.ly/124rYgx[^].

In worse case, you can simply execute the utility via System.Diagnostics.Process.Start: http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx[^].

You can capture the output using redirected StandardOutput stream, and, just in case, StandardError. You can find the code sample of redirection here:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardoutput.aspx[^].

Good luck,
—SA


这篇关于AVI使用VB.NET加入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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