Share via


WMEncProfile2.CompatibilityMode

Windows Media Encoder SDK banner art

The CompatibilityMode property specifies and retrieves the Windows Media version that you want the profile to support.

Syntax

WMEncProfile2.CompatibilityMode = WMENC_PROFILE_COMPATIBILITY
WMENC_PROFILE_COMPATIBILITY = WMEncProfile2.CompatibilityMode

Parameters

This property takes no parameters.

Property Value

A member of the WMENC_PROFILE_COMPATIBILITY enumeration type.

Remarks

Use the CompatibilityMode property to specify the version of Windows Media-based content that you want the current profile to support. Then, use the Validate method to return detailed errors indicating which settings must be changed in order for the profile to be compatible with the Windows Media version that you specified. The following items are enforced for version 8 and earlier content:

  • Audio and video streams must use a constant bit rate (CBR).
  • All audio streams must have the same audio format.
  • All video streams must have the same output image size.

Use the DetectCompatibility method to indicate which Windows Media version the profile supports according to the current settings. Use the ValidateMode property to indicate whether you want validation errors returned immediately.

Example Code

' Create a WMEncProfile2 object and a new profile.
  Dim Pro As WMEncProfile2
  Set Pro = New WMEncProfile2

' Specify which version of Windows Media-based content you want to create.
  Pro.CompatibilityMode = WMENC_ENCODER_V8

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also