|Microsoft DirectX 9.0|
The SetRecompFormatFromSource method sets the video recompression format using the compression format from a source file.
object.SetRecompFormatFromSource( pSource As AMTimelineSrc )
If the method fails, an error is raised, and Err.Number can be set to one of the following values:
|E_NO_TIMELINE||The group is not within a timeline.|
|VFW_E_INVALIDMEDIATYPE||Source file has no video stream.|
This method finds the source file associated with pSource, retrieves the media type of the first video stream in the file, and sets the group compression format using that type.