| Data and Compression
But it doesn't work so well with audio and video because, to a lossless compressor, digital audio and video look like random data. So there are no patterns to recognize, and so they can't be compressed (there are some lossless compression codecs that work with audio and video — including the Canopus Lossless codec included with EDIUS editing solutions — but while they give very good quality, they don't work at the high compression ratios that are essential for fitting HD onto a small-format videotape). Video compression works differently. With such huge compression ratios needed, there's simply no way to reconstruct the original data file. There's no need, either, because if the result looks the same (even if the data file is different) then, to all intents and purposes, it is the same. As we've already mentioned, video compression is a complicated business. But it's very easy to understand the basics. It's a good idea to learn a little bit about how this stuff works because compression does affect the way your video will look. Knowing where the problems are will help you work around them, or avoid them in the first place. Video compression normally works by looking at the content of a frame, analyzing it, and looking for ways to describe it that don't involve giving a value for every individual pixel. There are several ways to do this. In a simple case like this, all the compressor has to do is say "every pixel in this frame is the same shade of white". That's a lot less data than writing "255, 255, 255" four hundred and fourteen thousand, seven hundred and twenty times. Another way that video compression works is to look how sharp the borders between light and dark shades are and find ways to describe them more efficiently. It does this by dividing the scene into blocks of pixels, called macroblocks, and representing them with numbers that can recreate the patterns within them (all so-called Discrete Cosine compressors, including DV and MPEG work like this). Despite the complexity of this process, it's an established technology and works very well. But it doesn't give a good enough compression ratio for high definition. This is where time travel comes in handy. We've already seen that video compression works by looking for easily describable features within a video frame. If these features are repeated, then it's only necessary to describe them once. And exactly the same applies to nearby frames, as well as within the frames themselves. Imagine a white wall. There's nothing at all in the frame, and nothing changes over time, either. So all the compressor has to do is count the number of frames in the shot, and say "all these frames are the same". If every frame is the same, you only need to record the details once. Things get a bit more complicated when there's movement in the video. If there is movement in only part of the frame, then only the moving parts need to be updated as time passes. The pixels describing the motionless parts still only need to be sent once. And even where there's movement, it's still possible to reduce the data by "tracking" the path of the moving objects. Suppose there's a car driving from right to left in the frame, while the camera viewpoint is fixed. The block of pixels that describe the car effectively doesn't change at all, but their position in the frame does. So all the compressor has to do is figure out where the motion of the car begins and ends, and move the same block of data along that path.
We've already seen that compressing HD tightly enough to fit it onto a DV tape presents us with a fundamental difficulty: greater compression leads to lower quality. And we now know that the compromise that makes it all work is MPEG-2 Long-GOP compression (a bit of a misnomer because Short GOP means I-frame only, which isn't a group of pictures at all). The truth is that Long-GOP compression wasn't designed for editing video. It was devised as a way of delivering video to end users. MPEG-2 Long-GOP is how digital TV gets to most digital TV viewers in the world. It's used for satellite TV, cable TV, digital terrestrial TV and DVD. It works extremely well. Most people think that DVD video is the best they've ever seen. So Long-GOP can deliver outstanding pictures. Long-GOP is good for delivery because it offers very high compression, and good quality — and because end users typically don't edit incoming television programs. But with HDV you have to edit a long-GOP format. We're going to look at how this works, and how to get the best from this clever compromise. First of all, let's dispose of the idea that the non I frames in HDV (i.e. the P and B frames) aren't actually there. Even though they are completely derived from the frames around them, P and B frames do actually deliver a picture. They have to, or none of this would work at all! When HDV is decompressed, all the frames are there on your screen. When it's all working properly, you can't see any difference between I, B and P frames. There are several schools of thought about the best way to edit HDV. Canopus gives you all the options so that you can choose whichever is best for you. But remember, the quality of your finished video is only as good as the weakest link in the chain, which is why Canopus has concentrated on these potential problem points and has given you the best possible solution. Next Section > Compression Using Codecs The term 'HDV' and the HDV logo are trademarks of Sony Corporation and the Victor Company of Japan. | |