Microsoft DirectX 9.0

AMTimelineGroup.SetRecompFormatFromSource Method

The SetRecompFormatFromSource method sets the video recompression format using the compression format from a source file.


    pSource As AMTimelineSrc



AMTimelineSrc object.

Error Codes

If the method fails, an error is raised, and Err.Number can be set to one of the following values:

Value Description
E_NO_TIMELINE The group is not within a timeline.
E_OUTOFMEMORY Insufficient memory.
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.

See Also