视频压缩 [英] Video Compression
问题描述
这是我编写的第一个C#程序,尝试压缩视频时遇到了一个小问题,我可以将视频显示并另存为AVI,但由于未压缩,因此占用了大量磁盘空间.
我添加了一段代码,以表明我正在使用< code> ICaptureGraphBuilder2</code>变量和内容.
我尝试查看其他示例,但迷路了,因此有人可以在这方面给我一些帮助吗?
我应该使用哪种DirectShow方法?如何正确使用它?
Hi,
This is the first C# program I''ve written and I''m having a slight problem trying to compress the video, I can get the video to display and save as an AVI, but it is uncompressed so takes a lot of disk space.
I have added a snippet of code to show I am using the <code>ICaptureGraphBuilder2</code> variables and stuff.
I''ve tried looking at other examples but get lost, so is anyone able to give me some help on this?
What directshow method should I use? how do I use it properly?
IBaseFilter Compressor = null;<br />
Guid VideoFormat = MediaType.Video;<br />
hr = this.captureGraphBuilder.RenderStream(PinCategory.Capture, VideoFormat, sourceFilter, Compressor,bas);
干杯
Stephen
Cheers
Stephen
推荐答案
一个简单的C#包装器,用于AviFile库 [^ ]
这篇关于视频压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!