VP8 Set Reference Frame

This is an example demonstrating how to overwrite the VP8
encoder’s internal reference frame. In the sample we set the last
frame to the current frame. If this is done at a cut scene it will
avoid a keyframe. This technique could be used to bounce between
two cameras.

Note that the decoder would also have to set the reference frame
to the same value on the same frame, or the video will become
corrupt.

Usage

This example adds a single argument to the
simple_encoder example, which specifies the frame
number to update the reference frame on. The parameter is parsed as
follows:

Observing The Effects

Use the simple_encoder example to encode a sample
with a cut scene. Determine the frame number of the cut scene by
looking for a generated key-frame (indicated by a ‘K’). Supply that
frame number as an argument to this example, and observe that no
key-frame is generated.