ReceiverFramePut Method (MFWriterClass)
frame for encoding
max wait time for encoding (by default use -1)
Puts frame to encoding process
Syntax
Public Overridable Sub ReceiverFramePut( _
   ByVal _pFrame As MFFrame, _
   ByVal _rtMaxWait As Long, _
   ByVal _bsHints As String _
) 
public virtual void ReceiverFramePut( 
   MFFrame _pFrame,
   long _rtMaxWait,
   string _bsHints
)
public procedure ReceiverFramePut( 
    _pFrame: MFFrame;
    _rtMaxWait: Int64;
    _bsHints: String
); virtual; 
public: virtual void ReceiverFramePut( 
   MFFrame* _pFrame,
   long _rtMaxWait,
   BSTR* _bsHints
) 

Parameters

_pFrame
frame for encoding
_rtMaxWait
max wait time for encoding (by default use -1)
_bsHints
Example

Here is example of how set writer's configuration and encode a received frame:

MFWriterClass m_objWriter = new MFWriterClass();
// Configure writer
m_objWriter.WriterSet(targetPath, 1, "format='mp4' play_while_rec='true' video::codec='mpeg4' audio::codec='aac'");
// Get frame from source
MFFrame pFrame = null;
m_objLive.SourceFrameGet(-1, out pFrame, "");
// Encode the frame
m_objWriter.ReceiverFramePut(pFrame, -1, "");
// Release frame from memory
Marshal.ReleaseComObject(pFrame);
See Also

Reference

MFWriterClass Class
MFWriterClass Members