MF_ASFSTREAMCONFIG_LEAKYBUCKET2 attribute

Sets the peak "leaky bucket" parameters (see Remarks) for encoding a Windows Media file. These parameters are used for the peak bit rate. Set this attribute by using the IMFASFStreamConfig interface.

Data type

Byte array

Remarks

The value of this attribute is an array of three DWORDs, in the following order:

  • Bit rate, in bits per second.
  • Buffer window, in milliseconds.
  • Initial buffer fullness, in bytes.

For more information about the leaky bucket concept, see the topic The Leaky Bucket Buffer Model in the Windows Media Format SDK documentation.

The GUID constant for this attribute is exported from mfuuid.lib.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Wmcontainer.h

See also

Alphabetical List of Media Foundation Attributes

ASF Attributes

IMFAttributes::GetBlob

IMFAttributes::SetBlob

MF_ASFSTREAMCONFIG_LEAKYBUCKET1