I am looking for examples of a DirectShow Source filter that would display a Desktop Window. I am sure there should be examples, but I haven't yet found them. Perhaps I am using the wrong terminology.
This is for grabbing live output of a Window, and processing that has video.
Lee
-
Hi Lee were you able to get this done? I was looking for a simple example I can look at and learn from / port. So much stuff out there is so complicated for COM beginner like me.Noitidart– Noitidart2016年06月07日 01:35:39 +00:00Commented Jun 7, 2016 at 1:35
2 Answers 2
In DirectShow SDK there is a sample filter called PushSource and inside there is PushSourceDesktop. Compile it, register ("regsvr32 PushSource.ax") and insert into your graph as a source filter.
1 Comment
Its 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