Microsoft DirectX 8.1 (C++)

AMTimelineGroup.SetRecompFormatFromSource Method

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

Syntax

object.SetRecompFormatFromSource( 
    pSource As AMTimelineSrc
)

Parameters

pSource

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.

Remarks

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