Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2935 Discussions

[SOLVED] Windows Media Foundation, IMFTransform::SetOutputType returns unclear E_FAIL


Dear reader,

I wanted to point out that when setting a framerate that is not supported (or maybe even invalid) using MFSetAttributeRatio(input_media_type, MF_MT_FRAME_RATE, fps_num, fps_den) calling IMFTransform::SetOutputType() returns an E_FAIL error, even when the MFSetAttributeRatio() returns true. 

I would expect that the intel MFT would return an error when calling MFSetAttributeRatio for MF_MT_FRAME_RATE when using invalid / unsupported values; figuring out what was casing the E_FAIL returned by SetOutputType took quite some time and was found with a lucky shot.

Kind regards,


0 Kudos
0 Replies