IWMEncAudienceObj.VideoHeight
The VideoHeight property specifies and retrieves the output height of the video image.
Syntax
IWMEncAudienceObj.VideoHeight(iRenderSiteIndex) = Long
Long = IWMEncAudienceObj.VideoHeight(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 indicating the output height of the video image, ranging from 16 to 2000 pixels.
Remarks
To use the same height as the input, specify 0. (However, when using this profile with the Writer object in the Windows Media Format SDK, a 0 value does not match the size to the input.)
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 video height in pixels.
Dim lVidHeight As Long
lVidHeight = Audnc.VideoHeight(0)
' Retrieve a value indicating the video width in pixels.
Dim lVidWidth As Long
lVidWidth = Audnc.VideoWidth(0)
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also