ILMScrCapEncoder Interface

This is the interface for the LEAD Screen Capture Encoder.

Interface Properties:

Type

Property name

Description

long

KeyFrameSpace

Gets or sets the number of frames between key frames (key frame spacing). For example, if the rate is 5, then a key frame is taken every 5 frames. If the value is 0, then the first frame is the only key frame in the video.

BYTE

QFactor

Gets or sets the quality factor for compression. The value range is between 1 and 9. Use 1 for fast compression and 9 for high compression.

 

 Interface methods:

HRESULT ForceKeyFrame(long FrameNumber)

Parameters

FrameNumber

The zero based number (position) of the frame to compress as a key frame. Use -1 to make the next passing frame a key frame. Valid values range between -1 and the total number of frames in the stream less one. Note that the filter do not know the total number of frames in the stream; so a number greater than the total number of frames in the stream will be accepted but will have no effect since it’ll not be reached.

Description

Forces the frame at the specified position to be a key frame. The method will return S_FALSE if the frame at the specified position has already been compressed.

Returns

S_OK if succeeded, Error code otherwise.