Fundamentals of Audio and Video Programming for Games (Pro-Developer)

In this chapter, we will explore methods and tools that you can use to optimize technical quality as you produce audio and video content. We will describe what we mean by technical quality, and then look at how to optimize it in the context of the production process. Although there are specific methods that you can use at different points in the process to improve technical quality, it s best to factor quality into every decision that you make.

The two main parts of the production process are production and postproduction. Production takes place when you record, shoot, or capture content, while postproduction occurs when you edit and distribute content. In this chapter, we will describe the production process in general. In the next chapter, we will follow the production process in detail from beginning to end, and describe how to optimize technical quality at each step.

Understanding Technical Quality

There are many different ways to measure the quality of audio and video content. For example, you can measure the artistic or creative quality of a game by how well it was designed. Technical quality, however, is concerned with the noncreative aspects of a piece of content, for example, the color quality of the video or the presence of distortion in the audio. Although these qualities describe very different aspects of a video work, they are closely related . For example, the quality of an audio recording can affect the story that you want to tell, and the artistic decision to shoot in black and white will affect technical aspects like the video format and lighting.

Technical quality is a very important aspect of an audio or video work because it carries your artistic vision. There is no rule stating that all colors must be bright and realistic, and all sounds must be clear and audible. Except for limits and standards imposed by the medium itself, such as file size , technical quality is under your control. If the technical quality of a piece is as good as it can be, it is completely transparent: only the creative qualities come through. You are the best judge of the quality of your content and are ultimately responsible for your artistic vision.

The reason for making this point is that often content creators feel bound by some arbitrary quality standard. A book about how to make movies tells them never to use this lens, or always use that kind of microphone. One of the joys of making videos and music comes with discovering that technical quality is not dictated by a camera, or a book, or an industry professional .

You are the one in charge of the technical quality of your production. For example, many consumer camcorders come with features that automatically control the light level entering the lens, so many consumers feel that the light levels that the camcorder sets must be right. The truth is that automatic settings are only right if they are right for you . You should not allow a camcorder to dictate quality just because it was expensive and has many intimidating controls. If you look through the lens and do not see what you want to see, the camcorder is wrong, regardless of how technologically advanced the automatic circuitry may be.

Optimizing is often called cleaning . For example, you might clean narration tracks by removing unrelated sounds like dogs barking and electronic pops, or use a clean section of video that doesn t show the camera person s thumb over the lens. The best way to determine what needs to be cleaned, and how to do it, is to put yourself in the place of the audience. You might be able to hear the narration fine over the sound of a dog barking, but what will the audience think when they listen to the narration in your game about the Civil War? They might think you are trying to make an artistic statement with the dog-barking sound, and the distraction could lead them to make a fatal mistake on the battlefield.

The term cleaning is not used as often when referring to video. The types of technical quality optimizations that you are most likely to do with images relate to lighting, color, and problems with equipment and physical media.

Now, let s look at what professional producers , creative people, and technicians think about when determining acceptable technical quality.

Audio

You approach the use of sound in the same way, whether you are creating a movie, video, or game, because people perceive sounds the same regardless of how the sounds come to them.

Recorded sound as used in video production falls into one of the following categories:

A perfectly clean audio track is one that contains only the sound(s) that you want, and the sound itself has the quality that you expect. For example, a narration track contains a good-quality recording of the narrator s voice with no distortion, no reverberation , and no barking dogs. If you want underscore music along with the voice, you can add it during the postproduction process with a multitrack editor. A multitrack editor enables you to control the placement and mix of the sounds by enabling you to work with modules or clips of sound layered on tracks. For example, you can mix sync dialog with a train station background in a multitrack editor, and it will sound like the person is in a train station.

If an audio track is not clean, you will have trouble editing and controlling the quality of the final product. For example, if you must use a narration track that includes music, you will not be able to edit the narration without also editing the music. You must be concerned with how an edit will affect the sound of both the dialog and the music. An example of this is attempting to edit video of a speech that includes a radio playing in the background. Whenever you edit the voice, the music on the radio will jump.

Unwanted, nonmusical sound in a recording is called noise. The same sound can be noise in one case and necessary in another. Audio noise can be introduced into a recording either externally or internally:

Once noise is recorded and mixed with the desired audio, it can rarely be eliminated. It might be possible to reduce noise with software or mask it with a background sound, but the process also affects the desired sound. The best way to ensure noise-free audio is to make sure that noise is not recorded.

Video

Recorded video images are not categorized the same as audio because they are technically very different from audio, and play a different role in our perception. In audio production, you typically record elements discretely and then mix them together to create a finished piece. In video production, on the other hand, you most often do not think in terms of mixing multiple discrete elements because the process is more time-consuming and difficult. In general, photographers shoot complete images. It is typically easier to record or shoot an actor in a real location than it is to shoot the actor and background separately, and composite them later. Compositing is becoming more popular with inexpensive digital systems, but it will be a while before it is used as often as multitrack mixing is used with audio.

As with audio, once an image is recorded on tape or film, elements of the image are locked in place. You can use editing to cut before or after a shot that you want, but it is not easy to add to or remove parts of the actual shot. For example, if a shot of a speaker contains an unwanted airplane flying behind the person s head in the background, you cannot simply remove an airplane layer. True, there are digital video-production systems that enable you to track shapes and perform advanced compositing techniques, with which you could clean up the image. However, these systems are outside the scope of this book, and the processes are often time-consuming and expensive.

For the most part, optimizing video technical quality is limited to working with the color properties. You can do this in several ways. You can change the overall color properties of an image or create composite images using colors. If the image is digital, you can also use effects processes that change the 3-D positioning and shape of images. For example, you can enlarge and reposition an image to remove unwanted video along the edges of the frame.

The best time to optimize quality is during production when you are shooting the video. For example, it is far easier to do something to ensure that the camera does not record an airplane flying overhead than to attempt to remove it in postproduction. After the image has been recorded, you typically optimize quality during postproduction with a digital video editor, such as Avid Media Composer and Adobe Premiere. An editor enables you to apply processors to a video track and to composite images.

As with audio, problems with the technical quality of video are introduced either externally or internally. External technical problems are introduced when images are recorded, and because cameras record light, the problems are typically a result of poor lighting. Poor lighting can sometimes be corrected electronically or digitally in postproduction. There are roughly three types of poor lighting:

Other types of external problems, such as unwanted objects in a shot or bad camera angles, are often thought of as artistic problems. However, if the problem distracts from the central story, it can become a technical problem, and repairing the problem using electronics and software might not produce the best results.

Internal technical problems are introduced after images enter the camera lens. Unlike analog video, video that is stored digitally does not deteriorate when it is transferred or copied , so many of the internal technical problems of the old analog days are now history. For example, we no longer have to be concerned with inconsistent color caused by a consumer tape format, such as VHS. Any internal technical problems typically arise inside the camcorder before the video is converted to a digital stream. For example, problems can come from the lens, the CCD chips, the analog processors and amplifiers , and the analog to digital converter. The following list describes categories of technical problems:

Internal problems are often difficult to repair because they cannot be fixed by adjusting overall color properties. With advances in camcorder technology, tape and noise problems are becoming rarer.

The following list describes some of the basic ways to work with technical quality in postproduction:

Figure 13.1: Steps for using chromakey to layer video.

The background of the first image is green. The chromakey process is applied to the image, and the keyer is carefully adjusted to create a transparent mask, where every instance of that shade of green is found, as in the second frame. Then the masked image is composited over the third frame, resulting in the fourth frame. Using these techniques, you could cut out a bad portion of one image by creating a mask and replacing it with something else.

Figure 13.2: Frames before and after the video was repositioned and cropped.

Категории