IWMEncProfile2::get_VBRMode

Windows Media Encoder SDK banner art

The get_VBRMode method retrieves the variable bit rate (VBR) mode of the current profile.

Syntax

HRESULT get_VBRMode(
  WMENC_SOURCE_TYPE  enumSrcType,
  short  iRenderSite,
  WMENC_PROFILE_VBR_MODE*  penumVBR
);

Parameters

enumSrcType

[in]  Member of a WMENC_SOURCE_TYPE enumeration type identifying the media stream type.

iRenderSite

[in]  short containing the audience stream index. Because an audience can contain only one stream of each type, iRenderSiteIndex must be 0.

penumVBR

[out]  A pointer to a member of the WMENC_PROFILE_VBR_MODE enumeration type indicating the VBR mode.

Return Values

If the method succeeds, it returns S_OK. If it fails, it supports the IErrorInfo interface and returns an HRESULT error code.

Return code Number Description
E_POINTER 0x80004003 The pointer to the VBR mode is NULL.

Remarks

When you want your encoded content to be compatible with Windows Media version 8 and earlier (for example, if you think the majority of your users have Windows Media Player 7.1), the only valid VBR mode is none (constant bit rate (CBR)).

Requirements

Header: wmencode.h

Library: wmenc.exe

See Also