VIDEOENCODER_BITRATE_MODE enumeration (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The VIDEOENCODER_BITRATE_MODE enumeration type defines the three types of bitrates supported by the IEncoderAPI interface.

Syntax

typedef enum VIDEOENCODER_BITRATE_MODE {
  ConstantBitRate = 0,
  VariableBitRateAverage,
  VariableBitRatePeak
} ;

Constants

 
ConstantBitRate
Value: 0
The bit rate used for encoding is constant.
VariableBitRateAverage
The bit rate used for encoding is variable with the specified bitrate used as a guaranteed average over a specified window. The default window size is considered to be five minutes.
VariableBitRatePeak
The ENCAPIPARAM_BITRATE value is the expected (not guaranteed) average bit rate over a given time period and that the ENCAPIPARAM_PEAK_BITRATE value is the peak which the bit rate must not exceed. The default window size is considered to be 500ms (which is traditionally equal to one GOP).

Requirements

Requirement Value
Header strmif.h (include Dshow.h)

See also

IEncoderAPI