Partager via


MFPKEY_LOOKAHEAD Property

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.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Wmcodecdsp.h

See Also

Properties

 

 

Send comments about this topic to Microsoft

Build date: 4/7/2010