Apple patent involves motion compensated frames, video sequences
The invention addresses methods for determining the number of unidirectional and bidirectional frames to be encoded for a video sequence and a method for detecting scene cuts in the video sequence. It involves methods for processing a set of successive video frames in two passes to determine the number of bidirectional (B) and unidirectional (P) motion compensated frames to be encoded in a video coding system. According to Apple, during the first pass, motion vectors and motion costs are computed for each frame and a derived cost value is computed based on the motion cost of at least one frame. The derived cost value is used to determine the number (N.sub.B) of B-frames to be encoded in the set of successive frames. In the second pass, the set of successive frames are encoded where N.sub.B frames are encoded as B-frames and some or all motion vectors computed in the first pass are re-used in the second pass. A scene cut detection method is also provided where an impulse-like increase in a ratio of motion costs is monitored.
Here's Apple's background on the invention: "Video is currently being transitioned from an analog medium to a digital medium. For example, the old analog NTSC television broadcasting standard is slowly being replaced by the digital ATSC television broadcasting standard. Similarly, analog video cassette tapes are increasingly being replaced by digital versatile discs (DVDs). Thus, it is important to identify efficient methods of digitally encoding video information. An ideal digital video encoding system will provide a very high picture quality with the minimum number of bits.
"Many video encoding algorithms partition each video frame in a sequence of video frames into sets of pixels called pixelblocks. Each pixelblock is then coded using a predictive encoding method such as motion compensation.
Some coding ISO MPEG or ITU video coding standards, e.g., H.264, use different types of predicted pixelblocks in their encoding. Traditionally, a pixelblock may be one of three types:
"1) An intra pixelblock that uses no information from other frames in its encoding,
"2) an unidirectionally predicted (P) pixelblock that uses information from one preceding (past) frame, or
"3) a bidirectionally predicted (B) pixelblock that uses information from one preceding (past) frame and one future frame.
"Generally, a frame that contains any B-pixelblocks is referred to as a B-frame, a frame that contains some P-pixelblocks and no B-pixelblocks is referred to a P-frame, and a frame that contains only I-pixelblocks is referred to an I-frame. The selection of the number of bidirectional motion compensated (B) frames to be coded between intra (I) or unidirectional motion compensated (P) frames is an encoder decision that significantly affects the bit rate of the subsequently compressed video bitstream. A video encoder must decide which is the best way amongst all of the possible methods (or modes) to encode each pixelblock and how many B-frames, if any, are to be coded between each I or P frames. Thus, efficient and effective methods of selecting the number of B-frames to be coded between I-frames or P-frames of a video sequence are needed."
The inventors are Barin Geoffrey Haskell, Adriana Dumitras and Atul Puri. The graphic below illustrates an encoding system with encoding and decoding components.
