Patent ID: 8396127

Claim:
A method for encoding a video stream having a plurality of frames, comprising: receiving a first frame of the plurality of frames; receiving a second frame of the plurality of frames; determining a first error for a plurality of blocks of the second frame based on intra-frame prediction using a processor; determining a second error for the plurality of blocks of the second frame based on inter-frame prediction using at least one block of the first frame; determining a predictive benefit for one or more blocks of the first frame by comparing the first error and the second error of one or more blocks of the second frame corresponding to the one or more blocks of the first frame; segmenting the first frame to form a first segment based on the predictive benefit; selecting at least a first coding parameter for the first segment of the first frame; and encoding blocks of the first segment of the first frame into a bitstream using at least the first coding parameter.