In This Topic ▼

Implementing an ltmfCapture Object

To implement the ltmfCapture Object you should use the following steps:

  1. Create an instance of the ltmfCapture Object, acquiring the IltmfCapture Interface.

  2. Set an event callback using SetNotifyWindow.

  3. Set a window to serve as the frame for the video preview window by calling put_VideoWindowFrame.

  4. Select audio and video capture devices (use ShowDialog to set properties).

  5. Optionally, select audio and video processors (use ShowDialog to set properties).

  6. Specify the media data target (i.e. file).

  7. Specify the target format (i.e. WMV), and optionally set properties for target video and audio formats using HasDialog.

  8. Call StartCapture to start capturing process.

  9. Handle ltmfCapture_Notify constants messages.

  10. Call StopCapture when finished.

Comments

Target format

The format to be used for the converted file. This includes the file format, any special settings used by that format, and which audio and/or video codec is to be used for the conversion, and any special settings used by the codecs.

Codec

A COmpressor combined with a DECompressor, or encoder and a decoder, which allows you to both compress and decompress that same data.
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Media Foundation C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.