DirectShow Source filter using Dekstop window as source

Lee Atkinson picture Lee Atkinson · Nov 18, 2010 · Viewed 12.3k times · Source

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

Answer

Dee Mon picture Dee Mon · Nov 19, 2010

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.