Operates the encoding process
Methods
ReceiverFramePut
Puts frame to the encoding process
Syntax
void ReceiverFramePut( MFFrame _pFrame, long _rtMaxWait, string _bsHints )
Parameters
_pFrame - frame for encoding
_rtMaxWait - max wait time for encoding (by default use -1)
_bsHints - additional parameters.
WriterClose
Closes the writer object and the encoding process
Syntax
void WriterClose( int _bAsync )
Parameters
_bAsync - 1 to close the process asynchronously, 0 - to close the process in sync.
WriterGet
Returns target path of encoding and full encoding's configuration
Syntax
void WriterGet( out string _pbsTargetPath, out string _pbsOptionsList )
Parameters
_pbsTargetPath - the actual target path for encoding,
_pbsOptionsList - the current encoding configuration.
WriterOptionGet
Gets currently set configuration's option (format, video or audio codec)
Syntax
void WriterOptionGet( eMFWriterOption _eType, out string _pbsName, out IMFProps _ppProps )
Parameters
_eType - type of option (format, video or audio codec)
_pbsName - option's name
_ppProps - properties of the option (internal attributes)
WriterOptionGetByIndex
Gets a writer's option by its index.
Syntax
void WriterOptionGetByIndex( eMFWriterOption _eType, int _nIndex, out string _pbsShortName, out string _pbsLongName )
Parameters
_eType - option's type (format, video or audio codec)
_nIndex - option's index
_pbsShortName - short name (ID) of option (for example, 'mp4')
_pbsLongName - full name of the option (for example, 'MPEG-4 part 2 Video')
WriterOptionGetCount
Gets a number of available options (number of available formats, audio or video codecs)
Syntax
void WriterOptionGetCount( eMFWriterOption _eType, out int _pnCount )
Parameters
_eType - option's type(format, audio or video codec)
_pnCount - number of available options
WriterOptionSet
Sets writer's option by its name
Syntax
void WriterOptionSet( eMFWriterOption _eType, string _bsName, out IMFProps _ppProps )
Parameters
_eType - option's type (format, video or audio codec)
_bsName - option's name (full or short name)
_ppProps - properties of the option (attributes for configuration)
WriterOptionSetByIndex
Sets writer's option by its index
Syntax
void WriterOptionSetByIndex( eMFWriterOption _eType, int _nIndex, out IMFProps _ppProps )
Parameters
_eType - option's type (format, video or audio codec)
_nIndex - option's index
_ppProps - properties of the option (attributes for configuration)
WriterSet
Sets target path and configuration for encoding. Also turns on writer's object to be ready to receive frames.
Syntax
void WriterSet( string _bsTargetPath, int _bResetOption, string _bsOptionsList )
Parameters
_bsTargetPath - target path for encoding
_bResetOption - indicates whether previous configuration will be reset
_bsOptionsList - configuration for encoding