WMEncoder.ContentAnalyzer

Windows Media Encoder SDK banner art

The ContentAnalyzer property retrieves an IWMEncContentAnalyzer object that you can use to analyze the video content in a source group.

Syntax

IWMEncContentAnalyzer = WMEncoder.ContentAnalyzer

Parameters

This property takes no parameters.

Property Value

An IWMEncContentAnalyzer object.

Remarks

This property is read-only.

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