Section 12.2. Understanding QuickTime


12.2. Understanding QuickTime

A computer displays video by flashing many still images in rapid succession. But if you've ever worked with graphics, you know that color graphics files are data hogs. A full-screen photograph file might occupy 5 or 10 MB of space on your hard drive and take several seconds to open up.

Unfortunately, most computers are far too slow to open up 30 full-screen, photographic-quality pictures per second. Even if they could, full-screen, full-quality QuickTime movies would still be mostly useless. Each would consume hundreds of gigabytes of disk space, requiring days or weeks to download from the Web or by emaila guaranteed way to annoy citizens of the Internet and doom your movie-making career to obscurity.

That's why most QuickTime movies aren't full-screen, photographic-quality films . In fact, most QuickTime movies are much "smaller"in three different dimensions:

  • The window is much smaller . It's rare to see a QuickTime movie that, when played back, fills the computer screen. Instead, most QuickTime movies today play in a much smaller window (see Figure 12-3), therefore requiring far less data and resulting in far smaller files.

    Figure 12-3. Here's the same movie in two standard playback sizes. Movies designed for playback from the hard drive are often 640 pixels wide, 480 tall (640 x 480). Movies intended for the Web email are smalleroften 320 x 240. (Movies sent by email are often as tiny as 160 x 120.)
    The common denominator: Most QuickTime movies have the same relative dimensionsa 4:3 width-to-height ratio, which is exactly the same ratio as the picture produced by your TV and your camcorder. A few people are making widescreen movies, but they're so far in the minority.
  • The frame rate is lower .Instead of showing 30 frames per second, many QuickTime movies have far lower frame rates; even fifteen frames per second produces smooth motion. On the Web, especially during live QuickTime "broadcasts," still lower frame rates are common, such as two or five frames per second. This kind of movie is noticeably jerky, but sends so little data that people using telephone-line modems can watch live events in this format.

  • The video is compressed . This is the big onethe technical aspect of QuickTime movies that gives you the most control over the resulting quality of your movie. In short, when iMovie uses QuickTime to compress your video, it discards information that describes each frame. True, the picture deteriorates as a consequence, but the resulting QuickTime movie file is a tiny fraction of its original size . The following section describes this compression business in much greater detail.

The bottom line is that by combining these three techniques, iMovie can turn your 10-gigabyte DV movie into a 3 megabyte file that's small enough to email or post on your Web page. The resulting movie won't play as smoothly, fill as much of the screen, or look as good as the original DV footage. But your viewers won't care. They'll be delighted to be able to watch your movie at all, and grateful that the file didn't take hours to download. (And besides, having already been exposed to QuickTime movies, most know what to expect.)


Tip: The later the QuickTime version your Mac contains, the better and faster the movie- exporting process becomes. Mac OS X's Software Update feature is supposed to alert you every time a new version becomes available (if you have it turned on in System Preferences).

12.2.1. A Crash Course in Video Compression

The following discussion explores some technical underpinnings of QuickTime technology. It may take you a few minutes to complete this behind-the-scenes tour of how a computer stores video. But without understanding the basics, iMovie's QuickTime- exporting options will seem utterly impenetrable.

12.2.1.1. Spatial compression

Suppose you overhear a fellow Mac fan telling her husband, "Would you mind running to the grocery store? We need an eight-ounce box of Cajun Style Rice-A-Roni, and an eight-ounce box of Cajun Style Rice-A-Roni, and also an eight-ounce box of Cajun Style Rice-A-Roni."

You'd probably assume that she's enjoyed a little too much of that new-computer smell. Why didn't she just tell him to pick up "three boxes" of it?

When it comes to storing video on a hard drive, your Macintosh faces the same issue. When storing a picture file, it must "write down" the precise color of each pixel of each frame. It could, of course, store the information like this:

  • Top row, pixel 1 : Beige

  • Top row, pixel 2 : Beige

  • Top row, pixel 3 : Beige

and so on. Clearly, this much information would take a lot of space and a lot of time to reproduce.

Fortunately, when Apple engineers were designing QuickTime in the 1980s, it occurred to them that the individual dots in solid-colored areas of the picture don't need to be described individually. That top row of pixels could be represented much more efficiently , and take up a lot less disk space, if the Mac were simply to write down:

  • Top row : 60 consecutive pixels of beige

This simplified example illustrates the power of compression software , whose job it is to make graphics files smaller by recording their pixel colors more efficiently. This kind of compression explains why a JPEG file always takes up far less space on your hard drive (and less time to download by email) than, for example, the Photoshop document that created it; the JPEG file has been compressed.

This form of file-size reduction is called spatial or intraframe compression. iMovie analyzes the picture on each individual frame and reduces the amount of information needed to describe it.

12.2.1.2. Temporal compression

But there's another way to reduce the size of a QuickTime file, too. Not only is there a lot of redundant color information from pixel to pixel on a single frame, but also from frame to frame .

Suppose, for example, that you've captured some footage of a man sitting behind a desk, talking about roofing materials. Picture the first pixel of the back wall in that piece of footage. Chances are good that this pixel's color remains absolutely consistent, frame after frame, for several seconds at least, especially if the footage was shot using a tripod. Same thing with the rug, the color of the desk, the fern in the pot beside it, and so on. These elements of the picture don't change at all from one frame to the next .

Here again, if it were your job to record what's on each frame, you could choose the slow and laborious method:

  • Frame 1 : The upper-left pixel is beige.

  • Frame 2 : The upper-left pixel is still beige.

  • Frame 3 : The upper-left pixel is still beige.

and so on. This time, however, a clever QuickTime movie would record the details of only the first frame . "The upper-left pixel on the first frame is beige," it might begin. In filmmaker terminology, that first, completely memorized image is called the key frame .

Thereafter, rather than memorizing the status of every pixel on the second frame, the third frame, and so on, the Mac might just say, "On the next 60 frames, pixel #1 is exactly the same as on the first one." That more efficient description just made the resulting QuickTime file a lot smaller, as shown in Figure 12-4. (The subsequent , shorthand-recorded frames are often called delta frames by the geeks .)

This kind of shorthand is called temporal or interframe compression, because it refers to the way pixels change over time, from one frame to the next.

12.2.2. About Codecs

As shown in Figure 12-1, at the moment you save your QuickTime movie, iMovie asks you which of several schemes you want to use for compressing your footage. To use the technical terminology, it asks you to choose a codec from a long list. That term is short for compressor/decompressor, the software module that translates the pixel-by-pixel description of your DV footage into the more compact QuickTime formatand then un translates it during playback.

Each QuickTime codec works differently. Some provide spatial compression, some temporal, some both. Some are ideal for animations, and others for live action. Some work well on slower computers, others on faster ones. Some try to maintain excellent picture quality, but produce very large QuickTime files on the disk, and others make the opposite tradeoff . Later in this chapter, you can read about each of these codecs and when to use them.

Figure 12-4. When iMovie saves a QuickTime movie, it doesn't bother writing down the description of every pixel on every frame. If there are a lot of areas that remain identical from frame to frame, the QuickTime movie doesn't remember anything more than, "Same as the previous frame."
In this example, the faded portions of the picture are the areas that the QuickTime movie data doesn't describebecause they're the same as on the first (key) frame. (At last you understand why, as you may have read in Chapter 2, using a tripod for your footage doesn't just give your movies a more professional look. By ensuring that most of the picture stays exactly the same from frame to frame, a tripod-shot video helps to produce smaller QuickTime files.)

In the meantime, all of this background information should help explain a few phenomena pertaining to converting DV movies into QuickTime files:

  • Saving a QuickTime movie takes a long time . It's nothing like saving, say, a word processing document. Comparing every pixel on every frame with every pixel on the next frame involves massive amounts of number crunching , which takes time. (Some codecs take longer than others, however.)

  • QuickTime movies don't look as good as the original DV . Now you know why: In the act of shrinking your movie down to the file size that's reasonable for emailing, copying to a CD-ROM, and so on, a codec's job is to throw away some of the data that makes a movie look vivid and clear.

  • QuickTime is an exercise in compromise . By choosing the appropriate codec and changing its settings appropriately, you can create a QuickTime movie with excellent picture and sound. Unfortunately, it will consume a lot of disk space. If you want a small file on the hard drive and excellent picture and sound, you can make the QuickTime movie play in a smaller window160 x 120 pixels, for example, instead of 320 x 240 or something largeror at a slower frame rate. The guide in this chapter, some experimentation, and the nature of the movie you're making all contribute to helping you make a codec decision.




iMovie 6 & iDVD
iMovie 6 & iDVD: The Missing Manual
ISBN: B003R4ZK42
EAN: N/A
Year: 2006
Pages: 203
Authors: David Pogue

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net