MF_MT_VIDEO_ROTATION attribute

Specifies the rotation of a video frame in the counter-clockwise direction.

Data type

MFVideoRotationFormat stored as UINT32

Remarks

Video from a handheld device, such as a mobile phone, is often rotated by 90, 180, or 270 degrees. If the camera stores the orientation as metadata in the video file, the image can be adjusted at the time of playback.

If this attribute set to MFVideoRotationFormat_90, it means that the content has been rotated 90 degrees in the counter-clockwise direction. If the content was rotated 90 degrees in the clockwise direction, the attribute value would be MFVideoRotationFormat_270.

The supported values for this attribute are enumerated in MFVideoRotationFormat.

The GUID constant for this attribute is exported from mfuuid.lib.

Requirements

Minimum supported client
Windows 8 [desktop apps | UWP apps]
Minimum supported server
Windows Server 2012 [desktop apps | UWP apps]
Header
Mfapi.h

See also

Alphabetical List of Media Foundation Attributes

Media Types