WMEncProfile2.VideoCodecCount

Windows Media Encoder SDK banner art

The VideoCodecCount property retrieves the number of video codecs available in the current profile.

Syntax

int = WMEncProfile2.VideoCodecCount;

Parameters

This property takes no parameters.

Property Value

An Int32 type that indicates the number of video codecs.

Remarks

The variable bit rate (VBR) mode set for the profile determines which video codecs are available.

Example Code

using WMEncoderLib;

try
{
// Create a WMEncProfile2 object.
  WMEncProfile2 Pro;
  Pro = new WMEncProfile2();

// Load a custom profile. REPLACE THE FILE NAME.
  Pro.LoadFromFile("C:\\Profiles\\CustomProfile.prx");

// Retrieves a value indicating the number of video codecs supported
// for the current VBR mode.
  int lVidCodecCount;
  lVidCodecCount = Pro.VideoCodecCount;
}

catch (Exception e)
{
     // TODO: Handle exceptions.
}

Requirements

Reference: Windows Media Encoder

Namespace: WMEncoderLib

Assembly: Interop.WMEncoderLib.dll

Library: WMEncoderLib.dll

See Also