WMEncProfile2 Object

Windows Media Encoder SDK banner art

The WMEncProfile2 object customizes all the aspects of a profile and save them. You can copy settings from other profiles, add and remove audiences and languages, and specify basic properties.

In addition to the methods inherited from the IWMEncProfile object, the WMEncProfile2 object exposes the following properties and methods.

Property Description
Audience Retrieves a specific audience from the profile.
AudienceCollection Not implemented in this release.
AudienceCount Retrieves the number of audiences in the current profile.
AudioCodecCount Retrieves the number of audio codecs supported in the current profile.
AudioFormatCount Retrieves the number of audio formats supported by a specific audio codec in the current profile.
BroadcastMode Specifies and retrieves a value that indicates the video format of the current profile.
CompatibilityMode Specifies and retrieves the Windows Media version that you want the profile to support.
ContentType Specifies and retrieves the type of content streams that the current profile supports.
EnableTimecode Specifies and retrieves a Boolean value indicating whether the time code is enabled for content created with the current profile.
InterlaceMode Specifies and retrieves a Boolean value indicating whether the video output will be interlaced.
Language Identifies the languages the current profile supports.
LanguageCount Retrieves the number of languages in the current profile.
NonSquarePixelMode Specifies and retrieves a Boolean value indicating whether the profile can produce output with non-square pixels.
ProfileDescription Specifies and retrieves the profile description.
ProfileName Specifies and retrieves the profile name.
ValidateMode Specifies and retrieves a Boolean value indicating whether profile settings are validated immediately as they are set.
VBRMode Specifies and retrieves the variable bit rate (VBR) mode of the current profile.
VideoCodecCount Retrieves the number of video codecs available in the current profile.
Method Description
AddAudience Adds a new audience to the current profile.
AddLanguage Adds a language to the profile.
Clear Removes all the audiences from the current profile object.
Clone Creates a copy of a profile object.
Compare Compares one profile object to another, indicating whether the profiles are identical and whether one profile is a subset of the other.
DeleteAudience Removes an audience from the current profile.
DetectCompatibility Detects which version of Windows Media-based content the profile is compatible with according to its current settings.
EnumAudioCodec Retrieves the name and FOURCC value of a specific audio codec.
EnumAudioFormat Retrieves information about a specific audio format.
EnumVideoCodec Retrieves the name and FOURCC value of a specific video codec.
GetCodecFourCCFromIndex Retrieves the FOURCC value of a specific audio or video codec.
GetCodecIndexFromFourCC Retrieves the audio or video codec index for a specific FOURCC value.
LoadFromFile Loads a profile from a saved file.
LoadFromIWMProfile Loads a profile from an IWMProfile or IWMEncProfile interface.
LoadFromMemory Loads a profile from an XML string, which contains the profile data.
Merge Merges the audiences from the current profile with another profile object.
RemoveLanguage Removes a language from the profile.
SaveToFile Saves the current profile to a file.
SaveToIWMProfile Saves the current profile to an IUnknown object.
SaveToMemory Saves the current profile to an XML string.
Validate Indicates whether the settings in the current profile are valid.

See Also