PDA

View Full Version : If you're fairly new to the world of HDTV



rabbi
12-03-2008, 10:38 AM
A Compression Primer


:cool:


If you're fairly new to the world of HDTV, one word you've probably heard a few times is 'compression.' Typically it's used in a very negative way, taking the blame for all sorts of picture quality issues. Unfortunately, compression gets a bad wrap most of the time, in fact, compression itself is really a great thing. In a nutshell, compression is exactly what it sounds like: taking something big and making it smaller, compressing it down to a smaller size.


It's the thing that allows a full HDTV movie to fit on a Blu-ray disk, or for an HDTV program to be broadcast to your home for your viewing pleasure. Uncompressed high definition content is simply too large to be of any use to us consumers. Compression is the thing that allows you to store and transfer audio and video content that otherwise would be way too big.

Think of a beach ball. It's a great device that provides hours of fun for all ages. It's the most fun when it's in the fully inflated state, but in that state it's very difficult to store or to transport. You need to be able to deflate (or compress) it to store it in the garage when it isn't in use, or put it in the car to take it to the beach or park, then re-inflate (or uncompress) it when it's time to use it. The same is true for audio or video content. You want to compress it to store it on a hard drive or disc media, or to transport it to a set top box or computer, then uncompress it to view it on a TV or computer screen.

Compression comes in two forms, lossless and lossy. Lossless compression allows you to compress the content all you want and when you decompress it, it will look exactly like it did before you squished it down. Thinking back to the beach ball analogy, every time you re-inflate the ball, it looks and functions exactly the same. Lossy compression doesn't quite work that way; when you compress the content, it permanently loses some quality.

Then when you decompress it, it doesn't quite look as pristine as the original. In fact the more you compress it, the worse it gets when you decompress it. So if you take a little of the air out of the beach ball, when you blow it back up it looks almost perfect, but the more air you take out, the less perfect it looks when you blow it back up. If you compress it down to the smallest you can possibly get, by the time you re-inflate it, all you're left with is a faded, wrinkled mess that barely even resembles a beach ball. This is where compression gets its bad name. Too much compression can really destroy an audio or video file. A little compression goes a long way, but too much compression ruins the whole thing.

Why would anyone use lossy compression at all; it sounds like a really bad deal? Lossy compression does a much better job of shrinking file size without losing too much quality; the trade-off between size and quality is much better. Current HDTV compression got its roots from the Moving Picture Experts Group back in 1992 when they finalized the MPEG-1 codec. A codec (or compression/decompression algorithm) is the fancy math that's used to shrink the video file and then restore it back to its original glory. MPEG-1 was used on Video Discs and Video CDs.

In 1994 MPEG-2 was born. It solved some of the shortcomings of MPEG-1 and added many new features. The main goal of MPEG-2 was to allow for much higher quality video. It was adopted for use on the DVD, in ATSC video broadcasts and is actually included in the spec for both Blu-ray and HD DVD. In fact, many of the early Blu-ray discs were encoded in MPEG-2.

But most of the modern video compression schemes have their roots in the next generation of MPEG, MPEG-4. It was finalized in the late 1990s and is rapidly becoming the codec of choice for HDTV via satellite, high definition movie downloads and on the next generation discs. You may have seen the terms H.264 or VC-1 out there. Both are derivatives of MPEG-4, in fact H.264 is just another name for MPEG-4 AVC (Advanced Video Coding). VC-1 is a Microsoft proprietary alternative to H.264. The reason MPEG-4 is so popular is that it allows the same quality playback at about half the file size of MPEG-2, as a general rule of thumb. Of course this better compression requires more computing power to decompress, but modern hardware has all but eliminated that concern.

Compression is often expressed in terms of bitrate, or how much data (bits) are used to render a second of information on the screen. Really good high definition broadcasts tend to be in the 18 Mbps (Mega-bits per second) range. When your HDTV content looks really bad, it's because the broadcaster may be compressing the image even more, possibly allowing for only 12, 10 or even 8 Mbps. You just can't re-inflate the beach ball once you've squeezed it down that small. Compare that to how good an HD DVD or Blu-ray movie looks. Blu-ray can go all the way up to 40 Mbps for video (54 Mbps total for audio and video). Now that's some high quality viewing.

The bottom line is that compression allows us to watch high definition video in our homes. Without it, a high definition movie would take up terabytes of storage space and would never fit on a Blu-ray or HD DVD disc and could never be saved on your DVR. Forget about even trying to broadcast an HDTV show to your house. So never complain about compression. But feel free to complain about over compression.

Tmull
12-03-2008, 11:18 AM
Very well explained,thank you.TMULL