编写直接显示源过滤器

编写直接显示源过滤器

本文介绍了编写直接显示源过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该写一个直接显示过滤器




  • 从实时源中获取输入(视频,音频)。 / p>


  • 它应该将数据(视频,音频:已编码)提供给解码器过滤器




我可以构建自己的源过滤器以及实现建议的任何实际工作示例吗?



最好的祝愿



更新:



基本上我想要一个源过滤器,该过滤器从网络中获取流,并让另一个过滤器处理视频流的解析和解码。



因此,当我修改Microsoft示例推入源过滤器并连接到解码器时,它不会调用FilllBuffer方法。该图根本行不通。我需要一个源过滤器示例,其输出连接到解码器而不是视频渲染器或Mux。

解决方案

Windows SDK( 7.1)包含DirectShow示例过滤器代码,包括一个源过滤器,我已经成功地使用它来构建用于实时设备的源过滤器。



如果您安装了最新的Windows SDK ,应该在此处:



C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\ filter\pushsource



此外,MSDN还提供有关该主题的出色参考资料:





如果您仍然陷于困境,则三月野兔还提供了许多入门的样本:




I should have to write a Direct Show Filter which

  • takes input(video,audio) from live source.

  • And it should give the data(video,audio : which are encoded) to a decoder Filter

Any real working examples which i can build my own source filter and any suggestion for implementation?

Best Wishes

Update:

Basically i want a source filter which takes streams from network and let to handle the parsing and decoding of video stream by another filter.

So when i modify Microsoft sample Push Source Filter and connect to a decoder it does not call FilllBuffer method. The graph simply does not work. I need a source filter example which the output is connected to a decoder not a video renderer or Mux.

解决方案

The Windows SDK (7.1) contains DirectShow sample filter code, including a source filter, which I've successfully used to build source filters for live devices.

If you have the latest Windows SDK installed, it should be here:

C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\filters\pushsource

Also, MSDN has great reference material on this topic:

http://msdn.microsoft.com/en-us/library/dd757807(v=vs.85).aspx

If you are still stuck, the March Hare also provides great samples to get peopel started:

http://tmhare.mvps.org/downloads.htm

这篇关于编写直接显示源过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 17:22