虚拟DirectShow源过滤器,带有C#中的视频和音频 [英] Virtual DirectShow source Filter with Video and Audio in C#

查看:86
本文介绍了虚拟DirectShow源过滤器,带有C#中的视频和音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我试图找到一个虚拟directshow源过滤器的示例,其中显示了如何将视频和音频合并到一个过滤器中。我在Maxim Kartavenkov的一个项目中看到了一组优秀的样本过滤器,他展示了如何使用纯C#创建DS过滤器。有人能指出我正确的方向吗?



非常感谢,



Art

Hi,

I am trying to find an example of a virtual directshow source filter where it shows how to incorporate Video and audio in one filter. I have seen a set of excelent sample filters in a project contributed by Maxim Kartavenkov where he show how to create DS filters with pure C#. Can anyone point me to the right direction in how to go about it?

Many thanks,

Art

推荐答案

您好,



感谢您阅读我的文章。



您需要为音频添加额外的引脚。但是,在视频捕获类别中,没有多少应用可以处理具有不同类型的2个输出(这样您就可以在Adobe Live Encoder应用中尝试)。您可以使用2个输出引脚在2个类别中注册一个过滤器,并且在每个类别中将使用单独的过滤器实例 - 这相当于创建2个过滤器,一个用于音频,一个用于视频,但如果您有一个音频和视频源 - 这样做不合适。因此,您需要在这两个过滤器(音频和视频)中正确共享数据的方式。这可以通过以下几种方式完成:创建将共享数据或应用程序或其他方式的服务。分享你可以通过GMFBridge,命名管道,套接字,共享内存等。此处的另一个问题是,如果用户有多个视频过滤器实例。所以你应该处理所有这些方面。



问候,

Maxim。
Hello,

Thanks for reading my articles.

You need add the additional pin for audio. But not many appliations handle 2 outputs with different types in Video Capture category (This way you can try in Adobe Live Encoder app). You can register one filter in 2 categories with 2 output pins and in each category will be used separate instance of the filter - this equal to creating 2 filters one for audio and one for video, but if you have one source for audio and video - this will not works proper that way. So you need the way to proper share you data within those 2 filters (audio and video). This can be done in couple of ways example: creating service which will do sharing data or app or other way. Sharing you can make via GMFBridge, named pipes, sockets, shared memory and so on. Another issue here is if user have multiple instances of your video filter. So you should handle all those aspects.

Regards,
Maxim.


我找到了使用directshow.dll播放或网络摄像头显示视频的代码我想要显示视频的网络IP摄像头的地址..可以告诉我c#中的代码
i have find code who can play or webcam display video using directshow.dll i want to gove address of networkIP Camera which display video..can anybody tell me code in c#


这篇关于虚拟DirectShow源过滤器,带有C#中的视频和音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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