IMFCaptureRecordSink interface

Controls the recording sink. The recording sink creates compressed audio/video files or compressed audio/video streams.

Members

The IMFCaptureRecordSink interface inherits from IMFCaptureSink. IMFCaptureRecordSink also has these types of members:

Methods

The IMFCaptureRecordSink interface has these methods.

MethodDescription
GetRotation

Gets the rotation that is currently being applied to the recorded video stream.

SetCustomSink

Sets a custom media sink for recording.

SetOutputByteStream

Specifies a byte stream that will receive the data for the recording.

SetOutputFileName

Specifies the name of the output file for the recording.

SetRotation

Rotates the recorded video stream.

SetSampleCallback

Sets a callback to receive the recording data for one stream.

 

Remarks

The recording sink can deliver samples to one of the following destinations:

  • Byte stream.
  • Output file.
  • Application-provided callback interface.

The application must specify a single destination. Multiple destinations are not supported. (However, if a callback is used, you can provide a separate callback for each stream.)

If the destination is a byte stream or an output file, the application specifies a container type, such as MP4 or ASF. The capture engine then multiplexes the audio and video to produce the format defined by the container type. If the destination is a callback interface, however, the capture engine does not multiplex or otherwise interleave the samples. The callback option gives you the most control over the recorded output, but requires more work by the application.

To start the recording, call IMFCaptureEngine::StartRecord.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfcaptureengine.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft