IWMEncAudienceObj.VideoImageSharpness
![]() |
The VideoImageSharpness property specifies and retrieves a value indicating the video image quality.
Syntax
IWMEncAudienceObj.VideoImageSharpness(iRenderSiteIndex) = Long
Long = IWMEncAudienceObj.VideoImageSharpness(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 between 0 to 100 indicating the quality of the video image.
Remarks
The VideoImageSharpness property is used for constant bit rate (CBR) mode. A lower value results in smoother image movement and a higher frame rate, while a higher value results in a clearer image and a decrease in frame rate.
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 lVidSharpness As Long
lVidSharpness = Audnc.VideoImageSharpness(0)
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also
.gif)