FormatVideoGet Method (IMFormat)
type of the format
properties of video format (bitrate, 3D format, type of interlacing, type of scaling, aspet ratio etc.)
number of the format
full name of format (for example, "3D-HSbS HD720-50p HDYC 1280x720 @ 50.00p 16:9")
Gets the current video format.
Syntax
Sub FormatVideoGet( _
   ByVal _eFormatType As eMFormatType, _
   ByRef _pVidProps As M_VID_PROPS, _
   ByRef _pnIndex As Integer, _
   ByRef _pbsName As String _
) 
void FormatVideoGet( 
   eMFormatType _eFormatType,
   out M_VID_PROPS _pVidProps,
   out int _pnIndex,
   out string _pbsName
)
procedure FormatVideoGet( 
    _eFormatType: eMFormatType;
   Out  _pVidProps: M_VID_PROPS;
   Out  _pnIndex: Integer;
   Out  _pbsName: String
); 
void FormatVideoGet( 
   eMFormatType _eFormatType,
   [PARAMFLAG::Out] M_VID_PROPS _pVidProps,
   [PARAMFLAG::Out] int _pnIndex,
   [PARAMFLAG::Out] BSTR* _pbsName
) 

Parameters

_eFormatType
type of the format
_pVidProps
properties of video format (bitrate, 3D format, type of interlacing, type of scaling, aspet ratio etc.)
_pnIndex
number of the format
_pbsName
full name of format (for example, "3D-HSbS HD720-50p HDYC 1280x720 @ 50.00p 16:9")
Example

Here is example of how to set custom format to the playlist:

Dim nIndex As Integer
Dim strFormat As String
Dim vidProps As M_VID_PROPS
Dim myPlaylist As New MPlaylistClass()
myPlaylist.FormatVideoGet(eMFormatType.eMFT_Output, vidProps, nIndex, strFormat)
vidProps.eScaleType = eMScaleType.eMST_LetterBox
myPlaylist.FormatVideoSet(eMFormatType.eMFT_Convert, vidProps)
int nIndex;
string strFormat;
M_VID_PROPS vidProps;
MPlaylistClass myPlaylist = new MPlaylistClass();
myPlaylist.FormatVideoGet(eMFormatType.eMFT_Output, out vidProps, out nIndex, out strFormat);
vidProps.eScaleType = eMScaleType.eMST_LetterBox;
myPlaylist.FormatVideoSet(eMFormatType.eMFT_Convert, ref vidProps);
var
m_objPlaylist;;
m_pFormat;
vidProps: M_VID_PROPS;
strFormat: string;
nIndex: integer;
begin
m_objPlaylist:= CreateComObject(CLASS_MPlaylist) as MPlaylist;
m_pFormat := m_objPlaylist as IMFormat;
m_pFormat.FormatVideoGet(eMFT_Output, vidProps, nIndex, strFormat);
vidProps.eScaleType = eMScaleType.eMST_LetterBox;
m_pFormat.FormatVideoSet(eMFT_Convert, vidProps);
end;
See Also

Reference

IMFormat Interface
IMFormat Members