LEADTOOLS Media Foundation Help > LEADTOOLS Media Foundation Features > Media Foundation Objects > Implementing an ltmfConvert Object |
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.
A COmpressor combined with a DECompressor, or encoder and a decoder, which allows you to both compress and decompress that same data.
To implement the ltmfConvert Object you should use the following steps:
1. |
Create an instance of the ltmfConvert Object, acquiring the IltmfConvert Interface. |
2. |
Set an event callback using SetNotifyWindow. |
3. |
Specify the media data source (i.e. file). |
4. |
Optionally, select audio and video processors (use HasDialog to set properties). |
5. |
Specify the media data target (i.e. file). |
6. |
Specify the target format (i.e. WMV), and optionally set the properties for target video and audio formats using HasDialog. |
7. |
Call StartConvert to start the conversion process. |
8. |
Handle ltmfCapture_Notify Constants messages until the end of conversion. |