Writing a Direct Show Source Filter

2019-02-18 19:48发布

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条回答
你好瞎i
2楼-- · 2019-02-18 20:02

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

查看更多
登录 后发表回答