IWMEncAudienceObj.VideoBitrate

Windows Media Encoder SDK banner art

The VideoBitrate property specifies and retrieves the bit rate of the video stream in the current audience.

Syntax

IWMEncAudienceObj.VideoBitrate(iRenderSiteIndex) = Long
Long = IWMEncAudienceObj.VideoBitrate(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 video bit rate, in bits per second (bps).

Remarks

If you are working with a profile that uses a constant bit rate (CBR) mode with the full frames (uncompressed) video codec, changing the bit rate has no effect.

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 video bit rate for the first (0) stream.
  Dim lVidBRate As Long
  lVidBRate = Audnc.VideoBitrate(0)

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also