Share via


IWMEncAudienceObj.VideoBufferSize

Windows Media Encoder SDK banner art

The VideoBufferSize property specifies and retrieves the maximum size of the video buffer.

Syntax

IWMEncAudienceObj.VideoBufferSize(iRenderSiteIndex) = Long
Long = IWMEncAudienceObj.VideoBufferSize(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. Set this value to -1 to use the client's default buffer size.

Remarks

The buffer size is only relevant to constant bit rate (CBR) content.

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 a value indicating the size of the video buffer.
' Divide by 1000 to retrieve the value in seconds.
  Dim lVidBuffer As Long
  lVidBuffer = Audnc.VideoBufferSize(0) / 1000

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also