Writing a Direct Show Source Filter

天涯浪子 提交于 2019-12-01 09:49:11

问题


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

MyCustomDirectShowSourceFilter ---> Decoder

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.


回答1:


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



来源:https://stackoverflow.com/questions/6413769/writing-a-direct-show-source-filter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!