IWMEncProfile Interface

Windows Media Encoder SDK banner art

The IWMEncProfile interface is used to retrieve the name, description and media types for a specific profile. Windows Media Encoder compresses input streams according to a profile tailored to both the content being broadcast and the expected bandwidth of the client computer. Multiple profiles can exist during an encoding session, but only one can be applied to a source group at any time.

Profiles identify the media type of the encoded output stream, the target audience bandwidth, and whether the output stream can be encoded at multiple bit rates. Only one profile can be associated with a specific source group, and only one source group can be encoded at a time. System-defined profiles cannot be changed or removed, but user-defined profiles can be added. To edit a profile, use the WMEncProfile2 and IWMEncAudienceObj interfaces. You can also use the WMEncProfileManager interface to create the predefined dialog boxes that edit and list profiles. The IWMEncProfile interface exposes the following properties and method.

Property Description
AudienceCollection Not implemented in this release.
Description Retrieves a description of a profile.
MaxPacketSize Specifies and retrieves the maximum size, in bytes, of the Windows Media data units generated during encoding.
MinPacketSize Specifies and retrieves the minimum size, in bytes, of the Windows Media data units generated during encoding.
MultipleBitrate Retrieves a Boolean value indicating whether the profile contains multiple audiences.
Name Retrieves the name of the profile.
Method Description
get_MediaCount Retrieves the number of audio, video, HTML, and script streams supported by a profile.

See Also