Skip to content

Latest commit

 

History

History
91 lines (56 loc) · 2.62 KB

mf-pd-asf-metadata-leaky-bucket-pairs-attribute.md

File metadata and controls

91 lines (56 loc) · 2.62 KB
description ms.assetid title ms.topic ms.date
Specifies a list of bit rates and corresponding buffer windows for a variable bit rate (VBR) Advanced Systems Format (ASF) file.
e45d055f-d404-47e9-b3c8-ac743b290138
MF_PD_ASF_METADATA_LEAKY_BUCKET_PAIRS attribute (Wmcontainer.h)
reference
05/31/2018

MF_PD_ASF_METADATA_LEAKY_BUCKET_PAIRS attribute

Specifies a list of bit rates and corresponding buffer windows for a variable bit rate (VBR) Advanced Systems Format (ASF) file.

Data type

Byte array

Remarks

This attribute applies to presentation descriptors for ASF content.

The IMFASFContentInfo::GeneratePresentationDescriptor method generates this attribute that applies to the presentation descriptor for ASF content.

The value of the attribute has the following format:

struct {
    WORD wReserved;
    WM_LEAKY_BUCKET_PAIR bucket[2];
};

The WM_LEAKY_BUCKET_PAIR structure is defined as follows:

typedef struct _WMLeakyBucketPair {
  DWORD  dwBitrate;
  DWORD  msBufferWindow;
} WM_LEAKY_BUCKET_PAIR;

For each bit rate, the msBufferWindow member indicates how much content is buffered before playback begins, in milliseconds. The size of the buffer in bytes equals msBufferWinow x dwBitrate / 8000.

Note

This attribute corresponds to the ASFLeakyBucketPairs attribute in the Windows Media Format SDK.

 

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

IMFAttributes::GetBlob

IMFAttributes::SetBlob

IMFPresentationDescriptor

Presentation Descriptor Attributes

ASF Header Object

Presentation Descriptors