|
Chapter 2: Windows XP and Digital Video: The Perfect Partnership
Chapter 2 Windows XP and Digital Video: The Perfect PartnershipMicrosoft Windows 95 and Windows 98 brought a new level of multimedia power to the Windows platform, and Windows NT and Windows 2000 were rock-solid platforms for business computing. It wasn't until the arrival of Windows XP that we were given the combination of stability and multimedia flexibility. And, not coincidentally, it's the first operating system that my mother can use to check her e-mailit's far less intimidating than previous efforts from Microsoft. And that's a good thing! If you're using Windows 95, Windows 98, or Windows Millennium Edition, do yourself a favor and upgrade to Windows XP. There's nothing worse than working on a video editing project for hours and then having the application or entire operating system crash, potentially losing your work. Windows 2000 and Windows XP share the same stable code, but Windows XP adds more multimedia flavor to the mix.
Tools Inside Windows XP for Digital VideoRight out of the box, Windows XP Home and Windows XP Professional come with some great features for the multimedia-hungry among us. These features are so well integrated, in fact, that most people overlook them entirely. The first category of tools involves the way your video files are displayed inside folders, and the second category deals with digital video applications included with Windows XP.
Thumbnail Folder ViewMost people figure out the Thumbnail Preview mode (in any folder, click the View menu, then Thumbnails) in their My Pictures directory pretty quickly, but did you also know the Thumbnail mode works for most video files as well? It's easy not to realize this because it can take several seconds for your computer to decode the video files and give you a preview; so if you're on a slower computer it may look like nothing is happening. If the video file starts by displaying a solid color (many do), your thumbnail preview will be an uninspiring black icon. Figure 2-1 shows a video folder that I have, and the icons are all the first frame of my video. This makes it easy to browse through a folder and pick out the right video because in most cases you'll recognize the video by looking at the first frame. I use the Thumbnail view most of the time because I'm a visual learner and I find it easy to look at a folder and quickly see what files are in it.
Figure 2-1 The Thumbnail view is displayed.
Detail ViewThe Detail view, illustrated in Figure 2-2, has unique features when selected in a folder containing video files. In addition to the standard columns like Name, Size, Type, and Date Modified, there are columns for the duration of the video (measured in hours, minutes, and seconds) and the dimensions of the video. This can be quite useful if you're looking at a large folder of video files and you need to find short clips to use as transitions in your video or combine clips based on their resolution. The Type is also useful to sort byif it simply says "Video Clip," it's a video file in AVI format (explained later in this chapter). MPEG files are denoted as such, as are Windows Media Video (WMV) and Windows Media Audio (WMA) files. Unsupported video formats, like QuickTime, do not have duration or resolution information displayed.Figure 2-2 The Detail view is displayed.
Task Pane InformationTask panes like the one seen in Figure 2-3 give context-sensitive shortcuts based on what options the user has with that sort of data.Figure 2-3 Task panes are an important part of Windows XP. When you click a video file, you have the following task pane options:
The task pane is very useful, but I hope that someday third-party companies and end users will be able to add to the list of Video Tasks at the top. It would be useful to have commands for Edit Video, Convert Video, etc., in the Video task pane.
File PropertiesIf the information provided in the Details view isn't enough for your needs, right-click the video file you want to investigate and select Properties. The General tab tells us very little, but the Summary tab shown in Figure 2-4now there's the good stuff! The unique information here includes the bit rate (explained below in the terminology section), the audio sample size, the format of the audio, the frame rate of the video, the data rate of the video, the video sample size, and the video compression. Some of this information is useful to us, some of it isn't. You'll learn what most of these terms mean below, but the lesson to take away here is that when you need to know the details about your video file, checking out the properties is the best way to find them.Figure 2-4 The Properties Summary tab tells you a lot about your video file.
Windows Media Video (WMV) formatted files have two fields that Windows XP can access and update that other video formats do not: Title and Comments. If you have a WMV file, view the properties by right-clicking the file, left-clicking Properties, then selecting the Summary tab. You'll see both Title and Comments fields as Figure 2-5 shows, and more than likely they'll be blank (I've entered some information about the tool I used and the date the images were shot). To enter your own information, simply left-click the blank space and you'll get a blinking cursor. Start typing! You can enter whatever sort of information you want, but be aware that it's just for your own referenceas far as I've been able to determine, this information doesn't show up in Windows Media Player when playing the video nor can any tool on the market index or search it. It's basically just for your reference. Figure 2-5 You can update Title and Comments fields with useful information.
Windows Media PlayerRecently released in beta at the time of this writing, the 9 Series Windows Media Player shown in Figure 2-6 is a significant upgrade to the Windows Media Player that came with Windows XP. It offers enhanced playback features, support for third-party plug-ins, variable bit-rate audio encoding (this gives you greater sound quality with smaller file sizes), and a host of other improvements. The Media Library functionality has also been greatly improved, so it's easier to work with your media and build playlists. Unfortunately, many of the same issues still exist from the last playerplaying the video and audio clips in the Media Guide cause a confusing series of Web browsers to pop up instead of playing the content inside the player. And even with the improvements in how video is streamed, every video clip I tried to watch after installing the beta software sputtered and paused continuouslythis is no fault of the player, however. Movie studios and Web sites with multimedia content aren't providing adequate bandwidth for their visitors.Figure 2-6 This figure shows the 9 Series Windows Media Player.
Windows Movie MakerWindows Movie Maker, shown in Figure 2-7, is a tool we'll discuss in Chapter 7 when we delve into the basics of video editing. As a video-editing tool, it looks very basic, lacking even a single transition (an effect that allows you to move from one clip to anotherlike fading to black, etc.), but it's a perfect place for beginners to start and has some surprisingly useful features. It allows you to record video and audio signals from a variety of sources, offers scene detection (where it splits up video clips based on scenes), and has a variety of preset output templates. I have to admit, I wasn't very impressed when I first fired it up, but for simple projects where quality isn't paramount (e-mail and Web sharing), it's quite a useful little application. And did I mention it was free with every copy of Windows XP?Figure 2-7 Windows Movie Maker is perfect for simple projects.
Third-Party Digital Video ToolsAlthough technically not a "part" of Windows XP, the compatibility that Windows XP has with video tools created by third parties is impressive. Unlike the Macintosh or Linux platforms, a huge number of companies are creating digital video hardware and software solutions. Pinnacle, Ulead, muvee Technologies, Adobe, ADS, Maxtor, Western Digital, Sony, Adaptec, Sonic, Panasonic, Canon, Roxio, Sonic Desktopthese are just a handful of the many companies offering products for the digital video market. The sheer variety of choices that you have with Windows XP is refreshingI wouldn't want to be limited to only a couple of choices, and neither would you. We'll discuss third-party video tools throughout the rest of the book, but for consumer-level video editing, Windows XP is my platform of choice. Don't believe people who say, "You need a Mac to do digital video." Hand them a copy of this book and they'll learn the truth.
Digital Video Compression ExplainedYou'll see the term "compression" used throughout this book, so I thought it was important to explain what it is and why it's important. The term "compression" simply means "to make smaller." The most common form of digital compression that you're likely familiar with are the ubiquitous Zip filesZip files are everywhere, and Windows XP has built-in support for opening them (but not creating themyou need WinZip from www.winzip.com for that). The easiest way to understand compression is to think of an object like a hamburger (work with me here). A hamburger is usually composed of different kinds of food, like lettuce, tomatoes, beef, and a bun. Most of us make homemade hamburgers that are bigger than our mouths can fit, so it's common to see someone squish the burger down before taking a biteone could say the burger goes through premastication compression. With me so far? The materials become smaller in different waysthe bun has a lot of air in it, so it gets smaller very easily. The beef, on the other hand, would only compress a little bit because it's already condensed into a hamburger patty. You end up with a smaller hamburger overall, but some of the elements compress more than others.Now, believe it or not, the same logic applies to compression on your computer. Things like text files are full of "spaces" that can be compressed very tightlya text file can be made at least 90 percent smaller, resulting in a great compression ratio (the ratio of compressed data to uncompressed data). Other file types, like MPEG video or JPEG photos, hardly compress at allthat's because they're in a file format that's already compressed. Why is this important to understand? Keep reading.
Why Is Digital Video Compressed?As odd as this sounds, one reason digital video is compressed is that our senses don't know any better. Researchers have charted the limits of the human sensory systems over the years, and we know that humans can hear sounds ranging from 20 hertz (Hz) to 20,000 Hz. We also know that although mathematically there are billions upon billions of colors, as humans we can perceive roughly 1024 shades of the same color. That's a huge range of possible colors, but if every one of those colors takes up space in a digital file, does it make sense to have them all in a picture if we can't tell the subtle difference between one color and the next? There's also the matter of redundant imagesif, in every second of a 60-second video, there's a chair in the same spot, why save the data of that chair in every frame of the video?Another reason compression exists is to cut back on the amount of space needed to store digital video. How big would digital video be if it weren't compressed in some way? It would take up a staggering amount of room! I found this interesting formula on www.adobe.com: Frame size K = ([Pixel Width x Pixel Height x Bit Depth] / 8) / 1024 Frame size K = ([720 x 480 x 24] / 8) / 1024 = 1012.5 KB That tells us that one frame of raw, uncompressed video footage at standard digital video (DV) resolution (720 x 480) would take up roughly 1 MB. And since video is usually around 30 frames per second, we're looking at 30 megabytes per second (MBps) of video! A short, five-minute video would require 9000 MB, or 9 gigabytes (GB), of storage. And if you were shooting a 60-minute video? That's 108 GBand remember, that's just for the video. It gets even bigger when you add audio. In addition to the tremendous storage you'd need to work with uncompressed video, there's the issue of having a computer fast enough to handle it. Throwing around a digital signal at a sustained rate of 30 MBps is almost impossible for most computers to keep up withthe FireWire hard drive from Maxtor that I tested could only write around 9.1 MB per second. That's quite fast for an external hard drive, but not fast enough to work with uncompressed video. In order to make video easier to work with, we compress it. By throwing away the data that we can't perceive, we get compressed video. Standard DV cameras compress video at a ratio of 5 to 1, which allows them to store more information per tape. Different video formats offer various options for compressionsome allow you to compress the video up to 100 times smaller than the original. Too much compression, however, can be a bad thing. Remember that the more you compress a video, the more data you're throwing away. Throw away a lot of data, and the changes become noticeable. Throw away even more data by using heavy compression, and you'll get a video that you can hardly recognize!
Bit Rate ExplainedI was talking about how much data uncompressed video would take and referring to it in terms of MBps. Bit rate is the common term used to describe how much data exists, per second, in a given stream of data. You might have seen audio files referred to as "128-Kbps MP3" or "64-Kbps WMA." Kbps stands for "kilobits per second," and the higher the number preceding Kbps, the higher the amount of the data. The 128-Kbps MP3 audio file contains twice the data of the 64-Kbps WMA file and would be twice the file size. However, some file formats can use their data more effectively than others, so the 64-Kbps WMA file would sound just as good as the 128-Kbps MP3 file. It's a little confusing, but I'll explain how this works in the next section. The important thing to understand here is that the higher the bit rate, the more information there is, and thus the more effort it takes to decode that information. Selecting the proper bit rate for your projects depends on the playback target: if you're making a VCD for playback on a DVD player, the video needs to be exactly 1150 Kbps and the audio 224 Kbps. A typical Pocket PC running at 206 megahertz (MHz) can work with MPEG video up to 400 Kbpsanything above that will cause it to sputter during playback. Later in the book, when I get into the details of creating appropriate output formats, this will make more sense.
Psychoacoustic Audio CompressionPsychoacoustic looks like a complicated word, but it simply means "the way your sense of hearing and brain interpret the sounds you hear." I mentioned above that a 64-Kbps WMA file would sound just as good as a 128-Kbps MP3 file. But if the MP3 file has twice as much data per second as the WMA file, how can it possibly sound better, you ask? Simple: The WMA format packs more of the good sound and gets rid of the stuff that you can't hear anyway. The digital audio on a music CD is compressed to 1411 Kbps, and few would argue with the quality of a CD. MP3, WMA, and any other form of compressed audio are based on powerful mathematical algorithms that discard audio information that we can't hear. Here's an example: If I shout at the top of my lungs and also lightly tap my foot, you'll hear my voice above everything else. Will you hear my foot tapping? Likely not. Yet in the strictest sense, that foot-tapping noise is still present, and in a digital world that would represent data. By getting rid of that foot tapping, we'd end up with less information and therefore a smaller file size. The MP3 psychoacoustic model was created way back in 1987, so when Microsoft introduced the WMA model in the late 1990s, it simply had a better model that was able to produce better-sounding audio in less space.
Psychovisual Video CompressionThis term is very similar to its audio counterpart, so I won't repeat the same explanation. Instead of discarding audio that we can't hear, however, psychovisual models discard things that we can't see. For instance, an uncompressed video shot of a wall that is painted black would have a black pixel for every spot on that wall. But if it's just black pixels over and over, why not store one pixel that simply replicates itself to fill up the space? This type of compression is called "statistical data redundancy," which simply means to discard data that's repeated. This, and other mathematical tricks, allows video formats like WMV and MPEG to be highly compressed while still retaining good quality.
Lossless CompressionThe term lossless means "no loss of data." When a file is compressed in a lossless fashion, it means that 100 percent of the data is still there. If you zip a Microsoft Word document, it will get smaller, but all the letters of your document are still present when you unzip it. You can also save lossless video over and over without any loss of dataany compression applied simply squeezes that data into a smaller format and does so in the same way every time. In the video world, lossless compression would be achieved by using an AVI file. Lossless compression typically results in only minor compression (3:1) because you can compress only so much data without discarding it. Other forms of lossless data include WAV and bitmap (BMP) files.
Lossy CompressionLossy compression formats include WMV, WMA, MP3, MPEG, and any other form of compression that discards data in order to achieve a lower bit rate (this includes image formats like JPEG). Using the psychoacoustic and psychovisual rules described above, you'll end up with a much smaller file size but less of the original source data. And although this would seem to defy logic, every time you save your file in a lossy file format, it discards more of the dataeven if you're saving it in the same format. A good rule of thumb is to move to a lossy format only as the very final step in your project. We'll talk more about this in Chapter 7 when we delve into editing your video.
Terminology You Need to KnowUnless you're the kind of person who curls up in bed with a dictionary instead of a good book like this one, the word "terminology" probably makes you yawn. I won't bore you with detailed histories of each term, but understanding what words mean is important to getting you on the digital video fast track.
CodecA codec (short for compressor/decompressor) is a type of translator for video and audio data. If that translator (codec) isn't present on the computer trying to play the audio or video file, it won't play back properly, if at all. Have you ever downloaded a video file and, when trying to play it back, you get audio but no video? That usually means you're missing the right video codec, but you have the correct codec for audio. Conversely, if you get video but no audio, you might be missing an audio codec (this is much rarer than a missing video codec). One of the problems with sharing video online today is with users creating videos using codecs that not everyone has. It's important to encode your video using codecs that your users will have. If you do want to use a special codec, make sure you indicate which codec is needed to view the video and where people can get it. I've noticed that codec problems are more frequent with AVI filesit's rare to get an MPEG or WMV file that won't play.
Digital ArtifactsHave you ever looked at a JPEG photo that's "blocky"? Parts of the images look pixilated and very "digital." Or have you looked at a video file and seen squares making up the edge of someone's face instead of a smooth line? Those are all examples of something called digital artifacting. When an image or video is highly compressed, the loss of data becomes noticeable to the viewer, usually in the form of visible areas of discoloration or the partial destruction of a shape (like a smooth line). In Figure 2-8 I took a high-quality JPEG image directly from my digital camera (a Canon Powershot S110) and applied a 90 percent JPEG compression to it. The original image is on the left, and no digital artifacts are visible. The ultra-compressed image is on the right, and although the file size of this image would be much smaller than that of the image on the right, you can see many examples of digital artifacting. The color on the wall isn't uniform, her jacket looks blotchy, and the overall quality of the image is poor. I overdid the compression on this image to make the effect obvious, and thankfully it's unlikely you'll ever see an image quite this badly compressed on the Internet. You will, however, run across video like this; because video files are so large and bandwidth is so expensive for people with Web sites, they'll overcompress the video past the point of good quality.Figure 2-8 On the left, a standard JPEG image with minimal compression. On the right, a highly compressed image showing extreme digital artifacting.
FireWireAlso known as IEEE (Institute of Electrical and Electronics Engineers) 1394 and iLink (the Sony name for it), FireWire was invented in 1995 and although largely a Mac-based technology for several years, the digital video industry has accepted it as the de facto standard for connecting DV cams to computers. To keep things simple, I'll be using the term FireWire throughout the book, but if you hear someone refer to iLink or IEEE 1394, you'll know it's the same thing. FireWire goes far beyond video cameras, including a host of external devices from Web cams to hard drives. FireWire offers blistering performanceup to 400 megabits per second (Mbps), making it perfect for high-bandwidth datathings like video. I'll talk about FireWire hardware later, but I have a Maxtor 3000XT external 160-GB FireWire hard drive, and I was extremely impressed with how fast it is and how easy it was to connect. Items connecting through FireWire can be "hot swapped," which means that you can connect a hard drive to your computer without powering it down first, and it will appear in your My Computer folder within seconds and be ready to use. FireWire devices require a FireWire port, which can be added easily using an Adaptec or ADS PCI card that plugs into your motherboard. Many new computers are shipping with FireWire ports, so be sure to check your computer manual to see if you have one.
USB 1.1 and 2.0USB stands for "Universal Serial Bus," and it's a technology that allows external devices like floppy drives, printers, mice, keyboards, and dozens of other devices to be connected to a PC. USB devices are "hot swappable," which means that you can connect and disconnect them while the computer is running. USB 1.1 offered a meager 12 Mbps of bandwidth, which was enough for a mouse but not for high-performance external hard drives. USB 2.0 kicks the spec into overdrive, offering 480 Mbps of bandwidth and full backward compatibility with USB 1.1 devices. The older USB 1.1 devices don't perform at USB 2.0 speeds, but they work in the USB 2.0 hubs and ports. Some newer computers are starting to offer USB 2.0 ports, but it's easy enough to add them by installing a PCI card into your computer. Adaptec (www.getadaptec.com) makes a product called the DuoConnect, and it offers three USB 2.0 ports and two FireWire ports. I'll talk more about USB hardware later, but my tests with a Maxtor 3000LE USB 2.0 hard disc were very encouragingI was able to move huge video files quickly, with sustained write speeds of 6.6 MBps and read speeds of 8.0 MBps.
Digital Audio File TypesA critical part of any video is the audiounless your goal is to create a pantomime masterpiece, you'd be wise to pay attention to your audio track. Working with audio requires a basic knowledge of the file formats that you may encounter, so listed below are the most important ones.
Digital Video File TypesDigital video has existed in various forms for over a decade now, so it's not surprising that multiple formats have popped up. It's not necessary to know a great deal about each format, but having a basic grasp of what each one is good for will help you when we discuss sharing your video in the latter part of the book.
There are other formats of digital video, including DVD-VCD and DVD-SVCD, but until they become more common they're not worth considering as viable choices for storing and sharing your video.
Digital Image File TypesSome of the video-editing packages I'll be talking about include support for image files, so it's important to understand what each image format offers.
Key Points
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||