IWMEncAudienceObj.VideoBufferMax
The VideoBufferMax property specifies and retrieves the maximum size of the video buffer when using peak VBR mode.
Syntax
IWMEncAudienceObj.VideoBufferMax(iRenderSiteIndex) = Long
Long = IWMEncAudienceObj.VideoBufferMax(iRenderSiteIndex)
Parameters
iRenderSiteIndex
[in] Integer containing the audience stream index. Because an audience can only contain one stream of each type, iRenderSiteIndex must be zero.
Property Value
A Long that indicates the size of the video buffer, in milliseconds.
Remarks
The VideoBufferMax property indicates the maximum time that a client must wait to play video content that was encoded at peak variable bit rate (VBR).
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"
' Create an IWMEncAudienceObj object, selecting the first audience (0)
' in the profile.
Dim Audnc As IWMEncAudienceObj
Set Audnc = Pro.Audience(0)
' Retrieve the maximum size of the video buffer.
' Divide by 1000 to retrieve the value in seconds.
Dim lVidBMax As Long
lVidBMax = Audnc.VideoBufferMax(0) / 1000
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also