IWMEncContentAnalyzer.SourceGroup
The SourceGroup property specifies and retrieves the source group that is to be analyzed for video optimization.
Syntax
IWMEncContentAnalyzer.SourceGroup = IWMEncSourceGroup
IWMEncSourceGroup = IWMEncContentAnalyzer.SourceGroup
Parameters
This property takes no parameters.
Property Value
An IWMEncSourceGroup object indicating the source group to analyze.
Remarks
Use the Property method to retrieve a value indicating the type of video optimization to apply. Use the Start method to begin analyzing content.
Example Code
' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder
' Create a source group. Add a video source and specify an input file.
' Configure the profile settings for the encoding session.
' Create an IWMEncContentAnalyzer object.
Dim Analyze As IWMEncContentAnalyzer
Set Analyze = Encoder.ContentAnalyzer
' Analyze the first source group.
Analyze.SourceGroup = SrcGrpColl.Item(0)
' Start analyzing the video content.
Analyze.Start
MsgBox "This pause is required before calling the Property method."
' Retrieve the value indicating the video optimization to apply.
Dim vResult As Variant
vResult = Analyze.Property(WMENC_VIDEO, 0, "Optimization")
' Stop the content analysis process.
Analyze.Stop
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also