FormatVideoSet Method (MItemClass)
type of the format
properties of video format (bitrate, 3D format, type of interlacing, type of scaling, aspet ratio etc.)
Sets the output video format for object.
Syntax
Public Overridable Sub FormatVideoSet( _
   ByVal _eFormatType As eMFormatType, _
   ByRef _pVidProps As M_VID_PROPS _
) 
public virtual void FormatVideoSet( 
   eMFormatType _eFormatType,
   ref M_VID_PROPS _pVidProps
)
public procedure FormatVideoSet( 
    _eFormatType: eMFormatType;
   var  _pVidProps: M_VID_PROPS
); virtual; 
public: virtual void FormatVideoSet( 
   eMFormatType _eFormatType,
   ref M_VID_PROPS _pVidProps
) 

Parameters

_eFormatType
type of the format
_pVidProps
properties of video format (bitrate, 3D format, type of interlacing, type of scaling, aspet ratio etc.)
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

MItemClass Class
MItemClass Members