Why Use DirectShow?
[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
There are two main reasons why an application might use DirectShow rather than the Windows Media Format SDK directly: for the convenience of the DirectShow streaming architecture, and for access to hardware.
With DirectShow streaming architecture, it takes only a few method calls to play Windows Media Audio or Windows Media Video files. Creating files is also simplified. You simply specify a profile using the IConfigAsfWriter interface on the filter, and DirectShow automatically loads the required components for rendering or writing the streams, and provides the mechanisms for transferring and synchronizing the flow of media data. DirectShow is especially useful when converting content from varied formats into Windows Media Format. You can create DirectShow filter graphs that decode a wide variety of file and compression types, and then feed the decoded streams into the WM ASF Writer filter. By comparison, the UncompAVItoWMV sample in this SDK works only with uncompressed AVI files. Text streams and arbitrary data streams can also be created and/or rendered through DirectShow, but this might require you to create custom DirectShow filters for processing those streams.
DirectShow is the only way for application code to access Windows Driver Model (WDM)–based hardware devices such as 1394 DV cameras, TV tuners, and USB webcams. If your application must capture data directly from a WDM-based hardware device and transcode it to Windows Media Format, and the Windows Media Encoder SDK does not suit your needs, then DirectShow is the only alternative. DirectShow can also be used to access legacy devices based on Video for Windows.