Appendix D. Digital Video Basics

IN THIS APPENDIX

  • An overview of videotape formats

  • Video production tips

  • File formats for digital video

As you begin to create more complex Flash presentations that include digital video, you need to know how to achieve the highest-quality image and playback. In this appendix, you learn how to prepare a digital video file for use in a Flash CS3 document.

Note

After you have successfully created a digital video file, you can learn how to import and use digital video files within a Flash CS3 document by reading Chapter 17, "Displaying Video."

Before you consider importing digital video footage into Flash CS3 or exporting your video with the Flash Video Encoder, you need to plan how the video will be used within the Flash movie (or Web site). Will you be using several video clips for product demonstrations, interviews, or prerecorded events? Will you be using video for special effects such as a time-lapse effect of moving clouds or the sun setting? The more footage you plan to use, the more important it is to make sure you're acquiring the footage properly — you wouldn't want to redo all your footage after you've seen the results in the Flash movie! In this appendix, tips are provided for making sure you have the best possible video quality for your Flash presentations.

Garbage In, Garbage Out: Knowing What Affects a Video's Quality

You may have heard this phrase before, which means that you can't get something from nothing. Ever tried making a soup with bad ingredients, thinking it would still taste good? The same principle holds true for video production. Four primary factors influence the quality of your video footage: source format, image quality, sound quality, and subject matter.

Source format

The source format is the container in which the video is stored, whether it's a digital recording encoded on miniDV or DVCAM tape, an analog recording on VHS or Hi8 tape, or a direct MPEG file recorded on your digital camera. Each recording medium has inherent resolution limitations — some formats can store more information than others. The more information the medium stores, the higher the quality of the recording.

The following list outlines the resolution capacities of common recording mediums. For the purposes of our discussion, this list is restricted to video formats and excludes film formats, such as 35mm or 16mm motion picture film. The video formats are compared by line resolution, which is the number of horizontal scan lines the format can capture. Line resolution is not the definitive attribute for video quality, but it does measure the capacity of potential visual information captured by the camera or recording device. The most important factor to remember when comparing line resolutions is that video is primarily targeted at television screens that, in North America, display 525 lines of resolution.

Note

Practically speaking, television sets display a maximum of 483 lines of visible resolution — the remaining lines convey other information such as the sync pulse. Although High-Definition TV (HDTV) is capable of displaying 1,080 lines of resolution, most multimedia producers will not be using HD cameras to record video.

  • VHS, VHS-C, or 8mm videotape: These tape formats, especially VHS, are the most common video formats in use by consumers today. The average household VCR records video in VHS format. These tape formats can record about 240 lines of resolution. This resolution is less than half of the potential scan lines that can be shown on a TV screen, which is why the VHS recordings of your favorite TV shows don't exactly match the live broadcasts. These tape formats are analog in nature — the signal they record is not digital and can deteriorate from copy to copy. To translate this tape format into digital video for use in a multimedia production, you need to capture the footage with an analog video capture card.

  • S-VHS or Hi8 videotape: S-VHS and Hi8 video use the same tape sizes as their VHS and 8mm equivalents, but they capture up to 400 lines of resolution. This resolution capacity comes very close to the 525 lines of resolution that a television can display. You probably won't encounter many S-VHS camcorders anymore, but Hi8 video camcorders are still very popular and in wide use today. While the video quality is a noticeable improvement, the video signal is still analog, so as with VHS, you must capture it with an analog video capture card.

  • miniDV, Digital8, or DVCAM tape: A popular breed of video recording devices for consumer, prosumer, and professional use is the DV (Digital Video) format. DV formats use the DV codec to digitally record video, while storing audio at near-CD or CD-quality sampling rates. The native resolution for the DV format is 525 lines, but the actual resolution a DV camcorder will record varies from model to model. Most high-end DV camcorders are considered broadcast quality, meaning the video image is good enough to use on a television show such as the evening news. Many computer systems today ship with an IEEE 1394 (also known as FireWire or iLink) port to capture digital video from DV recording devices. When video is transferred digitally from a camera to a computer over an IEEE 1394 connection, there is no loss of quality.

  • HDV tape: One of the newest video recording formats is HDV, or High-Definition Video. HDV content is recorded on the same tape cassette used by miniDV cameras. HDV content uses the same bitrates as miniDV content, but uses MPEG-2 compression to store a much larger frame size — usually 1920 × 1080. Most HDV camcorders record content at 1440 × 1080, but on playback, the content is stretched to 1920 × 1080 with the proper 16:9 aspect ratio. Host HDV camcorders can also record or downconvert HD content to regular standard definition (SD) video, on the fly. Video is transferred from an HDV camcorder or player to a computer using an IEEE 1394 (also known as FireWire or iLink) cable. Newer HDV camcorders can record directly to an internal hard drive on the camera, enabling videographers to more easily transfer recorded content over USB or FireWire.

  • Betacam SP, Digital Betacam: These tape formats are for serious video professionals who work in the television industry. Betacam SP has been the industry standard for network television for more than 30 years. While Betacam SP is an analog format, Digital Betacam (also known as DigiBeta) records video with a proprietary Sony codec. Both formats capture 550 or more lines of resolution.

  • MPEG file recording: Many digital cameras can also record MPEG video at various sizes and resolutions. Most digital cameras use an MPEG codec. Many MPEG recording devices can only capture at line resolutions equal to or less than VHS quality.

As a general guideline, we recommend using a miniDV or HDV camcorder to record video that you intend to use for multimedia presentations within a Flash movie. Several factors beyond the recording format affect the quality of any recording. In the next two sections, we discuss variables that influence the visual and audio portions of a recording.

Note

If you're a beginner videographer and want to know more about video resolution, check out the following links:

www.bealecorner.com/trv900/respat
hometown.aol.com/ajaynejr/vidres.htm

Image quality

Regardless of the source format that you use for your video recording, the recording device may have other limitations. The recorded resolution of your camera may be significantly lower than the upper limit of your recording format's line resolution. For example, the DV format is capable of storing 525 lines of resolution. However, your specific DV camcorder may have an effective resolution of 490 lines. The following variables can affect the quality of the picture recorded by the camera. Note that this list is by no means exhaustive for the professional videographer — we chose these topics as a general summary to guide you in your video production.

  • Optics: The characteristics of the lens (or lens system) that your camera uses are known as the optics. The optical quality of video camcorders varies wildly. Many camcorders boast Carl Zeiss lenses, which are known for their precision and accuracy. Some lenses are constructed of plastic, whereas others are glass. Neither lens type is necessarily better than the other, but the only way to accurately judge the optical system of your camera is to conduct extensive testing with a resolution target.

  • CCD or CMOS: The CCD, or charged-coupled device, is the electronic plate that captures the image being rendered by the camera's lens. Newer video cameras are offering a CMOS () chip instead of a CCD, for longer battery life and better color sampling. You can think of the CCD or CMOS as the digital film that's being exposed to the light coming through the lens. Imaging chips come in a variety of sizes, ranging from ¼ inch to 1 inch. Although these sizes may sound incredibly small, even ¼-inch chips can capture amazing detail. The larger a chip is, however, the more information it can capture. Most cameras only have one chip, but some cameras have three chips — one for each color of the RGB (red, green, and blue) spectrum. These are known as three-chip cameras, and they have better color fidelity than single-chip cameras. Color fidelity, simply put, is the measure of how closely the recorded color of an image matches the original colors of the subject.

  • Tape quality: The quality of the tape on which you record the video can also affect the quality of the overall image. Each tape brand has unique characteristics, such as the type of metal particles that are magnetized onto the tape. Some brands (or stocks) are more durable and can withstand the rigors of repeated recordings. In general, you should always record on a fresh tape — and preferably one listed as premium or high quality.

    Tip

    Make sure you use the same brand and model of tape consistently throughout a shoot. There are slight color variations and differences in quality in each brand and tape type. Preferably, all of the tapes used for a shoot should be manufactured from the same batch, and as such, you should buy bulk boxes of your preferred tape brands and formats.

  • Shutter mechanism: The shutter mechanism is the device that controls how quickly the imaging chip samples the image rendered by the lens. Most camcorders have shutters that record interlaced video, which records two interwoven fields (or separate halves of a picture) to create one frame of video. Have you ever noticed how the image on your TV flickers when you pause a VHS recording? You're seeing the two fields of the frame alternating. Computer monitors do not display interlaced video. Rather, they use progressive scanning to minimize a flicker effect. Some higher-end camcorders have progressive scan shutters that record the image with higher apparent resolution. We discuss de-interlacing video later in this appendix.

  • Exposure: You should make every effort to shoot your video footage with the correct exposure. Exposure refers to the amount of light captured by the imaging chip and the shutter mechanism. Some camcorders do not allow you to control the exposure — it's all automatic. The biggest pitfall for most videographers is underexposing video footage or shooting in low light. When you try to record a poorly lit subject, you tend to get noise in the darkest areas of the image. Video noise is a random pattern of dots that shows up on the image. Finally, make every effort to properly white balance your shot to suit the color temperature of the dominant light source — some camcorders enable you to control the color temperature. You'll notice the effects of color temperature in the video samples on the CD-ROM. You learn more about white balance later in this appendix.

So what do all these variables boil down to? In a nutshell, we recommend that whenever possible, you should shoot video with a camcorder that has a superior optical system with three imaging chips, use high-quality tapes, and properly control your exposure. Avoid shooting in low light, unless you are shooting with a particular effect in mind, such as infrared lighting.

Sound quality

Every videographer should consider how audio is recorded during production. Most video camcorders have a decent built-in stereo microphone, but professional videographers equip themselves with accessories beyond those that ship with the camera. Review the following guidelines for capturing sound with your video recording:

  • External microphones: To achieve the best audio recording, put an external microphone as close as possible to the source of the sound. If you want to record a person talking, an external microphone, such as a wireless Lavaliere mic that's pinned to the person's shirt, collar, or tie, will produce a much cleaner recording than the microphone on the camera.

  • Balanced vs. unbalanced audio: Most microphones you will find at electronics stores use a stereo or mono 3.5mm mini-adapter that plugs into the microphone jack on your camcorder. These microphones are considered "unbalanced" audio sources, due to the nature of their internal wiring. For many video shoots, this may not pose a problem. However, professional audio engineers use balanced audio for all sound sources. The cabling for balanced audio tends to be a heavier gauge than that of the consumer variety. Many balanced microphones have a three-pin XLR connector, and most camcorders require an XLR adapter to connect these sources to the mini microphone jack. Many professional video cameras have built-in XLR jacks.

  • Sampling rate and bit-depth: Unless you're using a DV format camcorder, it's likely that you will have little or no control over the specific sampling rate and bit-depth used to record audio on the camera. DV camcorders enable you to record with either 32 kHz or 48 kHz. 32 kHz audio is recorded at 12-bit, which is suitable for recording dialog and live action. 48 kHz is recorded at 16-bit, which is suitable for recording live musical performances or any other scene requiring high fidelity.

  • Audio levels: One of the most overlooked aspects of video production is monitoring the audio levels of your source while recording. Most camcorders only record audio with AGC, or Automatic Gain Control. This "feature" allows the camcorder to determine how much an audio signal should be boosted or minimized during recording. Professional audio engineers prefer to manually monitor and adjust sound levels while the recording is taking place. Undesirable side effects of using AGC include amplified background noise during silent periods, audio distortion, and sudden jumps or drops in audio levels. Whenever possible, listen to your audio source through headphones connected to the camera.

  • Unwanted noise: Do your best to minimize any background noise when you are recording. The microphone(s) connected to your camera will pick up more noise than you may realize. Each microphone has a different "pick-up" pattern, determining the range and direction of sound that it will receive.

In summary, you should record audio as close as possible to the source, using balanced microphones and monitoring the audio feed with headphones connected to the camera. For most video recording, either the 32 kHz or 48 kHz sampling rates will yield superior audio reproduction.

Subject matter

Last, but by no means least, the type of subject matter you are shooting can influence the results of video compression in Flash 8. When it comes to video compression, the most important factor to remember is variability from frame to frame. That is, how much and how often does your subject matter change? Are you recording the Indy 500, panning racecars accelerating at incredibly fast speeds? Or, are you recording a time lapse of a flower slowly blooming? In general, you will achieve the best results with video compression if the subject matter does not move randomly or quickly.

Here are some general guidelines when choosing and shooting your subject matter:

  • Use a tripod: One of the most common mistakes amateur videographers make is to handhold the video camcorder. Unless you need to freely move with your camera or intentionally want to introduce shakiness to your video image, always mount your camera on a tripod.

  • Avoid quick and jerky movements: If you need to follow your subject matter by panning the head on the tripod, practice the movement a few times before recording. Try to be as slow and fluid as possible. The more quickly you pan a video camera while recording, the more likely you'll see compression artifacts show up in your final video in the Flash movie.

  • Avoid zooming: While it may be tempting, do not zoom the lens while recording your subject matter. It's better to use the zoom to frame the shot before you record. Of course, you may intentionally want to using wild zooming effects to re-create the next Blair Witch mockumentary, but be aware that any rapid movement from zooming the lens will likely compress very poorly in the Flash movie.

  • Lock focus: All camcorders can auto-focus the lens. If you plan to record a stationary object, you may want to switch to manual focus. If your subject matter moves away from the focus "spot" used by the camera, it may refocus on areas behind the subject matter. This type of focus drifting may yield very unpleasant compression artifacts in the Flash video.

  • Watch white balance: White balance refers to how the camera interprets color. You might notice that your skin looks much less appealing under fluorescent light than it does under an incandescent or soft white indoor light bulb. The human eye can "correct" the perception of a light source's color (or color temperature) with greater ease than an automatic setting on your camera. Be sure to match the white balance setting on your camcorder to the predominant light source in your video composition. Most cameras have at least two white balance settings: indoor (for tungsten light) and outdoor (for daylight). Some cameras enable you to perform a custom white balance. To set a custom white balance, focus the entire viewing area on a solid field of white and engage the white balance lock on your camera.

Another factor to consider is the area of the video composition that changes from frame to frame. In a previous example, we mentioned panning a racecar. In that example, the entire picture changes in every frame. Compression works best on video footage with the least amount of movement per pixel in the frame. For example, if you mount your camera on a tripod and keep the camera motionless, you can record the motion of a single subject, such as the flight of a bee between flowers. In such an example, the video compression with the Sorenson Spark codec is much more effective than it would be in the example of the racecar.

Tip

While we mention these general rules for better looking video shoots, it is also crucial to develop a look and feel for whatever you are shooting. Establish a set of rules that apply to everything in the shoot. For example, perhaps you want to shoot everything handheld, rack the focus regularly, underexpose the image slightly, dutch the angle on all wide shots, and so on. With today's cutting-edge video and film effects, it is more important to develop a style and operate to achieve a consistent look than to worry excessively over conventional dos and don'ts.

Editing Footage

After you have recorded the video with your camcorder, it's time to start editing the footage in a digital video editor such as Adobe Premiere or Apple Final Cut Pro.

Tip

Flash CS3's Video Import Wizard enables you to edit and sequence cuts within your source video file before it is imported into the Flash document. See Chapter 17 "Displaying Video," for more information.

It's beyond the scope of this book to fully explain the process of editing video footage, but we offer the following pointers to maximize the compression benefits of the Spark codec that the Flash Player uses for video:

  • Watch transitions and filter effects: Keep the general rule in mind that we mentioned previously — refrain from global changes to the entire frame. Some effects and transitions, such as cross-fades and slow dissolves, introduce rapid changes to successive frames of video. These changes require more keyframes to retain quality, and these keyframes add significant weight to the file size of the compressed video in the Flash document. Otherwise, if you don't want the extra weight, you'll have to accept less quality in the overall image.

  • Minimize duration: The shorter you make your finished video clip, the smaller the file size of your Flash movie (.swf). While you can stream video content just like any Flash content, you should keep in mind the data rate of your target audience.

  • Enable only necessary tracks: Use video and audio tracks only if you need both in your final Flash movie. While you can disable the audio in the Flash document's Publish Settings, you can prevent major headaches by importing only the essential material you require.

When you finish editing your video, make a master version that can serve other purposes beyond your Flash movie presentation. You may even want to output a final version of the edited footage to DV tape. In the next section, we discuss what output format to use for your edited footage. Later, this output format will be compressed and embedded in the Flash document.

Choosing an Import Format

After you complete the editing phase for your video footage, you're ready to output a final version of your video project that you can import into a Flash document. The following checklist should help you determine how to get the most effective use out of the Flash Player's video codecs, Sorenson Spark or On2 VP6. Just as you don't want to re-JPEG a JPEG (that is, save a JPEG file again with more JPEG compression), you will find that it's best to retain as much original quality from the video as possible before you bring it into Flash.

  • Frame size: Most video sources are captured and edited at full frame NTSC sizes, such as 640 × 480 and 720 × 480. It's unlikely that you'll want to expend the bandwidth required to display this full frame size. A starting frame size should be 320 × 240; work your way down from there. If you are targeting Web users with dial-up connection speeds such as 28.8 or 56 Kbps, you may want to consider a frame size of 160 × 120. Remember, when you scale down a bitmap-based element in the Flash authoring environment, you don't actually throw away any pixels — the full size of the graphic is retained in the final Flash movie file (.swf).

  • Frame rate: When you capture video from your camcorder to your desktop video-editing application, the video has a frame rate of 29.97 fps (NTSC) or 25 fps (PAL). This frame rate, as with regular video frame sizes, will consume massive amounts of bandwidth in a Flash movie. As a general rule, keep your video frame rate as close as possible to (or lower than) the frame rate of your Flash movie, as defined in the Document Properties dialog box (Modify

    Choosing an Import Format

    Note

    As fast broadband Internet connections become more predominant, you'll find more and more sites featuring Flash Video that uses video clips with 24, 29.97, or 30 fps. If you plan to load .flv files at runtime into Flash movies with Flash Player 7 or higher, the video content's frame rate can differ from the host Flash movie without any conflict. Slower processors, however, may have a more difficult time decoding Flash Video that uses high frame rates such as 24, 29.97, or 30 fps.

  • Video compression: Keep your final video file in the codec in which it was originally captured. For example, if you captured and edited the video with the DV codec, use the DV codec for the video file you create to import into Flash 8. You can also use the Uncompressed option (available in Apple QuickTime Player Pro or any video-editing application such as Adobe Premiere or Apple Final Cut Pro) when you save your final video file.

  • Audio compression: Follow the same guidelines for video compression. DV-formatted video stores audio uncompressed. Flash 8 will recompress audio in a video file that has been imported. As such, it's not ideal to apply any compression to the audio track before you bring it into Flash 8.

  • De-interlacing: We mentioned earlier in this chapter that video recorded by camcorders is interlaced. However, computer monitors (and the graphics displayed on them) are progressively scanned and do not require interlacing. (You may notice how "soft" your DV footage appears in most desktop video-editing applications; this is due to the even and odd "interlaces" being multiplied to accommodate the progressive scanning of computer video.) The general rule of thumb is to use a de-interlace filter (or export option) on any video footage that you intend to use for computer playback. However, if you resize your video to 320 × 240 or smaller and decrease the frame rate from its original rate, you effectively de-interlace the video footage. Usually, you will not see any difference enabling a de-interlace filter on top of these reductions.

After you have gone through this checklist for your video footage, export a final video file that you can import into Flash 8. Most video applications (including Apple QuickTime Player Pro) can resave a finished video file with a new frame size, frame rate, video and audio compressions, and other options such as de-interlacing. Flash 8 can import a variety of video file formats, listed in Table D.1.

Table D.1. Video Import Formats for Flash 8

Format

Platform

Required drivers

Description

AVI (.avi) Audio Video Interleaved

Windows Mac

DirectX 7 or higher, or QuickTime 4 or higher

Standard Windows video format; usually the format in which video is captured on Windows; can use any combination of video and audio codecs

DV (.dv) Digital Video stream

Windows Mac

QuickTime 4 or higher

Format saved from applications such as Adobe Premiere or Apple QuickTime Player Pro; uses the DV codec for video and uncompressed audio

MPEG (.mpg, .mpeg) Motion Picture Experts Group

Windows Mac

DirectX 7 or higher, or QuickTime 4 or higher

Precompressed video in the MPEG-1, MPEG-2, or MPEG-4 codec; a format used by many digital cameras that save to media formats such as Compact Flash (CF) and Memory Stick

QT (.mov) Apple QuickTime

Windows Mac

QuickTime 4 or higher

Standard video format on the Mac; usually the format in which video is captured on the Mac; can use any combination of video and audio codecs

WMV (.wmv, .asf)

Windows Media files

Windows

DirectX 7 or higher

Precompressed video in a modified MPEG-4 codec developed by Microsoft to use with the Windows Media Player

Of the formats we list in Table D.1, we recommend that you import formats that don't apply any recompression to the original source format of your video. If you can avoid using compressed video such as Windows Media and MPEG files, you can prevent further artifacts from being introduced into the video by Flash's video compressor. Compression artifacts are areas in the video frame where detail is lost. The process of compressing a file already using compression is known as recompression.

Warning

If you try to import MPEG files into the Mac version of Flash CS3, you will not be able to use the audio track in the Flash document (or Flash movie). Only Windows' DirectX driver will successfully convert both the video and audio tracks in most MPEG files to a format usable in the Flash CS3 document. To import an MPEG via QuickTime on the Mac, you may need to use an application such as MPEG Streamclip (www.squared5.com) to convert the MPEG to a QuickTime movie that uses another codec.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.147.87