问题
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
回答1:
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.
回答2:
here's a few more: http://betterlogic.com/roger/2010/07/open-source-directshow-screen-capture/
回答3:
Desctop Source filter written in С# http://www.codeproject.com/Articles/437617/DirectShow-Virtual-Video-Capture-Source-Filter-in
来源:https://stackoverflow.com/questions/4214786/directshow-source-filter-using-dekstop-window-as-source