Microsoft DirectX 9.0

Push Source Filters Sample

This sample consists of a set of three source filters that provide the following source data as a video stream:

Path

Source: (SDK root)\Samples\C++\DirectShow\Filters\PushSource

User's Guide

To use a filter, load it into GraphEdit and render its output pin.  This will connect a video renderer (and possibly a Color Space Converter filter) and allow you to display the output.  If you want to render the output to an AVI file, load the AVI Mux, load a File Writer Filter, provide an output name to the File Writer, and render the PushSource filter's output pin.  You can also load and connect video compressors, video effects, and so on.

NOTE: The desktop capture filter does not support hardware overlays, so it will not capture video rendered to an overlay surface or cursors displayed via hardware overlay.  It uses GDI to convert the current desktop image into a bitmap, which is passed to the output pin as a media sample.