To Set Input Settings
[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.]
The basic properties of input media and stream media are defined by the WM_MEDIA_TYPE structure. For input formats, the media type information is set by your application. For stream formats, the media type information is set in the profile you assign to the writer. Some properties are independent of media type and must be set for an input before writing begins. These properties are codec and writer features that are independent of stream type, and must be set after the profile is assigned in the writer but before writing begins.
Setting an input setting requires a call to IWMWriterAdvanced2::SetInputSetting. You can also check the current value of a setting with a call to IWMWriterAdvanced2::GetInputSetting.
Related topics