Codecs use a number of techniques to compress the size of digital video content:
• Spatial Compression: Each pixel within a frame is compared to neighboring pixels. Based on a given threshold, pixels are evaluated as similar or different and are discarded if considered redundant.
• Temporal Compression: Successive frames of video are compared to one another, and a series of keyframes (I frames)—containing all the data that comprises the image—are created to establish a baseline quality. Delta frames (P and B frames) fall between I frames and are more highly compressed, holding only the pixel information that has changed from the previous frame and requiring a decoder to reference other frames to present a complete image.
• Color Space Subsampling: This process exploits the fact that human eyes are more sensitive to brightness than to color, so it reduces the amount of color information.
• One-Pass: One-pass encoding is speed-optimized, whereby the codec analyzes the need for bitrate slightly ahead of the actual encoding. It is used in applications requiring real-time encoding, such as live streaming.
• Two-Pass: Primarily used in nonreal-time applications such as video-on-demand, two-pass encoding analyzes the bitrate requirement in a complete pass through the video, and then it applies the bitrate map to the video in a second pass.
• Constant Bitrate (CBR): Video is encoded at a bitrate below a ceiling, usually specified by the mobile network operator. Video bitrates above the ceiling would cause interruptions in delivery.
• Variable Bitrate (VBR): Bitrate varies with demand of the content, producing higher-quality output. Dynamic, high-motion scenes require more bitrate than talking heads. Spikes in encoded video bitrate are acceptable depending on the