H.264: The New Standard in Video Compression

Video technology can reduce file size by more than 80 percent


Basic Methods of Reducing Data
A variety of methods can be used to reduce video data, both within an image frame and between a series of frames. Within an image frame, data can be reduced simply by removing redundant information. Between a series of frames, video data can be reduced by such methods as difference coding and block-based motion compensation.
In difference coding, a frame is compared with a reference frame (an earlier I- or P-frame) and only pixels that have changed with respect to the reference frame are coded. With fewer pixel values coded, fewer are sent.
In videos with a lot of motion, however, difference coding would not significantly reduce data. Instead, techniques such as block-based motion compensation would be more appropriate. Block-based motion compensation takes into account that much of what makes up a new frame in a video sequence can be found in an earlier frame, but perhaps in a different location. This technique divides a frame into a series of macroblocks — or blocks of pixels. Block by block, a new frame — such as a P-frame — can be composed or “predicted” by looking for a matching block in a reference frame. If a match is found, the encoder simply codes the position where the matching block is to be found in the reference frame. It takes fewer bits to encode just the motion vector than to encode the entire actual content of a block.

Enhancing Compression Efficiency with H.264
H.264 takes video compression technology to a new level by introducing a more advanced intraprediction scheme for encoding I-frames. This scheme greatly reduces the bit size of an I-frame while maintaining a high-quality image by predicting smaller blocks of pixels within each macroblock in a frame. The technology finds matching pixels among the earlier-encoded pixels that border a new macroblock and reuses those pixel values that have already been encoded. As a result, intraprediction drastically reduces the bit size.
H.264 also improves block-based motion compensation used in encoding P- and B-frames. An H.264 encoder can choose to search for matching blocks — down to sub-pixel accuracy — in a few or many areas of one or several reference frames. The block size and shape can also be adjusted to improve a match. The high degree of flexibility in H.264’s block-based motion compensation pays off in crowded surveillance scenes, where the quality can be maintained for demanding applications. For areas of a frame where no matching blocks can be found in a reference frame, H.264 uses intra-coded macroblocks. Motion compensation is the most demanding aspect of a video encoder and the different ways and degrees with which it can be implemented by an H.264 encoder can have an impact on how efficiently video is compressed.
H.264 also reduces the typical blocky artifacts seen in Motion JPEG and other MPEG standards by using an in-loop deblocking filter. This filter smoothes block edges using an adaptive strength to deliver an almost perfect decompressed video.

The gathering momentum for H.264
Pundits in telecommunications and IT expect H.264 to eventually replace other video compression standards in use today. In video surveillance applications, H.264 will most likely find the quickest traction in installations where there are demands for high frame rates and high resolution — such as highways, airports and casinos, where 30 frames a second are the norm. This is where the economies of reduced bandwidth and storage needs will deliver the biggest savings.
H.264 is also expected to accelerate the adoption of megapixel resolution cameras, since the compression technology can reduce the large files sizes and bit rates generated by those cameras without compromising image quality. There are tradeoffs, however. While H.264 provides savings in network bandwidth and storage costs, it will require more advanced network cameras and high-performance monitoring stations where the video is to be decoded and monitored.
As the H.264 format becomes more broadly available in network cameras, video encoders and video management software, it makes sense to choose products that support this new open standard for video compression. Other compressions such as Motion JPEG will still be applicable for systems with low frame-rate requirements — typically below 4 frames-per-second. Ideally, select products supporting both Motion JPEG and H.264 for maximum flexibility.

Fredrik Nilsson is general manager of Axis Communications, a provider of IP-based network video solutions that include network cameras and servers for surveillance. This is the second of a three-part series Mr. Nilsson is writing on factors that are impacting network video surveillance. The stories will also be featured on SecurityInfoWatch.com and IPSecurityWatch.com.