Input Settings

The following global constants are used to identify input settings for the writer.

Global constant WMT_ATTR_DATATYPE Description of pValue
g_wszDeinterlaceModeWMT_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_wszFixedFrameRateWMT_TYPE_BOOLWhen 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_wszInitialPatternForInverseTelecineWMT_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_wszInterlacedCodingWMT_TYPE_BOOLWhen set to True, specifies that that the codec should encode the stream as interlaced content. For more information, see To Use Interlaced Video.
g_wszJPEGCompressionQualityWMT_TYPE_DWORDSpecifies the JPEG quality level (from 1 to 100) to be used on the input.
g_wszWatermarkCLSIDWMT_TYPE_GUIDThe value is set to the watermark GUID.
g_wszWatermarkConfigWMT_TYPE_STRINGThe 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

IWMWriterAdvanced2::GetInputSetting
IWMWriterAdvanced2::SetInputSetting

 

 

Show: