Share via


MFPKEY_LOOKAHEAD Property

banner art

Specifies the number of frames after the current frame that the codec will evaluate before encoding the current frame.

Constant for IPropertyBag

g_wszWMVCLookAhead

Data Type

VT_I4

Default Value

0

Remarks

When the codec uses lookahead, it can encode the video more efficiently.

The writer object of the Windows Media Format SDK expects the codec to encode each sample immediately. As a result, this feature does not work properly in software that uses the writer object (including Windows Media Encoder and Windows Media Player). Any data unit extensions associated with video frames will be attached to the wrong output frame. The number of frames by which the data unit extensions are misplaced is equal to the number of frames of lookahead that are used.

Valid lookahead values range from 0 to 16 frames. The recommended value is 16.

Applies To

This write-only property is available on the encoder of the following codecs:

Requirements

Client: Requires Windows Vista or Windows XP.

Header: Include wmcodecdsp.h.

See Also