WMEncProfile2.VideoCodecCount

Windows Media Encoder SDK banner art

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

Syntax

Long = WMEncProfile2.VideoCodecCount

Parameters

This property takes no parameters.

Property Value

A Long 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

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

' Load a custom profile. REPLACE THE FILE NAME.
  Pro.LoadFromFile "C:\Profiles\CustomProfile.prx"

' Retrieve a value indicating the number of video codecs supported
' for the current VBR mode.
  Dim lVidCodecCount As Long
  lVidCodecCount = Pro.VideoCodecCount

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also