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 following global constants are used to identify input settings for the writer.
Global constant | WMT_ATTR_DATATYPE | Description of pValue |
---|---|---|
g_wszDeinterlaceMode | WMT_TYPE_DWORD set to one of the values in the mode table in the topic To Deinterlace Video. | When set, specifies the type of interlaced content of the input. For more information, see To Deinterlace Video. |
g_wszFixedFrameRate | WMT_TYPE_BOOL | When set to True, instructs the codec not to drop any frames during encoding. This will cause the frame rate of the output video stream to be constant. The frame rate of the input stream does not need to be constant. |
g_wszInitialPatternForInverseTelecine | WMT_TYPE_DWORD set to one of the values in the initial pattern table in the topic To Deinterlace Video. | When the deinterlace mode is set to WM_DM_DEINTERLACE_INVERSETELECINE, this can be set to specify the pattern of the telecine input. For more information, see To Deinterlace Video. |
g_wszInterlacedCoding | WMT_TYPE_BOOL | When set to True, specifies that that the codec should encode the stream as interlaced content. For more information, see To Use Interlaced Video. |
g_wszJPEGCompressionQuality | WMT_TYPE_DWORD | Specifies the JPEG quality level (from 1 to 100) to be used on the input. |
g_wszWatermarkCLSID | WMT_TYPE_GUID | The value is set to the watermark GUID. |
g_wszWatermarkConfig | WMT_TYPE_STRING | The value is set to the watermark configuration. This value will vary depending upon the watermarking DMO. Consult the documentation of the watermarking system for more information. |
Note
The input settings configured for a stream are not persisted in the written file. If you want your custom reader to have access to these encoding parameters, you must create custom attributes to store them in the file header.
Related topics