IWMEncAudienceObj.ScriptBitrate
The ScriptBitrate property specifies and retrieves the bit rate of the script stream in the current audience.
Syntax
IWMEncAudienceObj.ScriptBitrate(iRenderSiteIndex) = Long
Long = IWMEncAudienceObj.ScriptBitrate(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 script bit rate, in bits per second (bps). Valid bit rates are between 1 to 10 Kbps.
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 value for the script stream's bit rate.
Dim lScriptBRate As Long
lScriptBRate = Audnc.ScriptBitrate(0)
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also