WMEncProfile2.VBRMode
The VBRMode property specifies and retrieves the variable bit rate (VBR) mode of the current profile.
Syntax
WMEncProfile2.VBRMode(enumSrcType, iRenderSiteIndex) = WMENC_PROFILE_VBR_MODE
WMENC_PROFILE_VBR_MODE = WMEncProfile2.VBRMode(enumSrcType, iRenderSiteIndex)
Parameters
enumSrcType
[in] Member of a WMENC_SOURCE_TYPE enumeration type identifying the media stream type.
iRenderSiteIndex
[in] Integer containing the audience stream index. Because an audience can only contain one stream of each type, iRenderSiteIndex must be 0.
Property Value
A member of the WMENC_PROFILE_VBR_MODE enumeration type that indicates the VBR mode.
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)).
Example Code
' Create a WMEncProfile2 object.
Dim Pro As WMEncProfile2
Set Pro = New WMEncProfile2
' Load a custom profile. REPLACE THE FILE NAME.
Pro.LoadFromFile "C:\Profiles\CustomProfile.prx"
' Retrieves a string indicating the audio VBR mode.
Dim sAudMode As String
Select Case Pro.VBRMode(WMENC_AUDIO, 0):
Case 1: sAudMode = "None - CBR"
Case 2: sAudMode = "Bitrate VBR - Peak"
Case 3: sAudMode = "Quality VBR"
Case 4: sAudMode = "Bitrate VBR"
End Select
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also