本文介绍了在C#/XNA中录制实时视频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个将网络摄像头流渲染到纹理上的项目.我想知道是否有办法通过DirectX的音频/视频功能或通过XNA直接将流记录为avi文件格式?预先感谢您的帮助.
I have a project that renders the web cam stream onto a texture. I was wondering if there was a way, either through DirectX's Audio/Video functionality or through XNA directly where I can record the stream into an avi file format? Thanks in advance for the help.
推荐答案
直接展示将通过ICaptureGraphBuilder完全满足您的需求
Direct show will do exactly what you need through the ICaptureGraphBuilder
有关C#包装器,请参见: http://sourceforge.net/projects/directshownet/
For a C# wrapper, see:http://sourceforge.net/projects/directshownet/
这篇关于在C#/XNA中录制实时视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!