IMFTranscodeSinkInfoProvider::SetProfile method (mfidl.h)
Sets the transcoding profile on the transcode sink activation object.
Syntax
HRESULT SetProfile(
[in] IMFTranscodeProfile *pProfile
);
Parameters
[in] pProfile
A pointer to the IMFTranscodeProfile interface. To get a pointer to this interface, call MFCreateTranscodeProfile.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Before calling this method, initialize the profile object as follows:
- Set the MF_TRANSCODE_CONTAINERTYPE attribute to specify the container type of the output file.
- If the output file will have a video stream, set video attributes by calling the IMFTranscodeProfile::SetVideoAttributes method.
- If the output file will have an audio stream, set audio attributes by calling the IMFTranscodeProfile::SetAudioAttributes method.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | mfidl.h |