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.
-
1See also stackoverflow.com/questions/4214786/…rogerdpack– rogerdpack2016年05月27日 11:59:20 +00:00Commented May 27, 2016 at 11:59
2 Answers 2
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:
2 Comments
You can see sample push source mentioned at
https://learn.microsoft.com/en-us/windows/win32/directshow/push-source-filters-sample
Source code for sample push source filter is at
https://github.com/microsoft/Windows-classic-samples/tree/master/Samples/Win7Samples/multimedia/directshow/filters/pushsource