IWMEncContentAnalyzer.Start

Windows Media Encoder SDK banner art

The Start method starts the process of analyzing content for video optimization.

Syntax

IWMEncContentAnalyzer.Start

Parameters

This method takes no parameters.

Return Values

This method does not return a value.

Remarks

Use the SourceGroup property to specify the video content to analyze. Use the Property method to retrieve a value indicating the type of video optimization to apply.

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