Video

We perceive motion as a continuous flow of events. Conceptually, motion is captured as a sequence of pictures at a constant time interval. Each picture is called a frame. How fast the pictures are captured or how fast the frames are played back is determined by the frame rate which is measured in frames per second (fps).

There are standards for digital video's resolution, color spaces, and frame rate. These standards are related to analog broadcast standards, which historically have differed around the world.

Resolution in video is determined by a number of considerations: aspect ratio, frame size and bit depth. Aspect ratio is the ratio of the width of the frame to the height of the frame. For example, high definition digital video and high definition TV (HDTV) has an aspect ratio of 16:9. Frame size is the pixel dimensions of the frame, how many pixels wide by how many pixels across. High definition DV (HDV) can have a frame size of 1280 x 720 pixels or 1920 x 1080 pixels. Bit depth refers to the number of bits used to describe the color of a pixel.

As with all digital files, there is a trade-off with file size and quality. If you have greater resolution, you have a larger file. It is always important to consider what the final delivery system will be for a project, file size is obviously an issue if a video will be seen on the web.

SD and HD

As noted previously, there were a number of different analog broadcast standards used internationally. Standard Definition (SD) digital video formats reflect these differing standards. NTSC is the standard that was used in this country. The NTSC standard definition DV frame is 720 x 480 pixels with an aspect ratio of 4:3.

High Definition (HD) most commonly involves display resolutions of 1,280 x 720 pixels or 1,920 x 1,080 pixels with an aspect ratio of 16:9.

Digitizing Video

Each frame in a video is an image. In digital video, these images are digitized in a way similar to digital images; sampling and quantization. The image for each frame is sampled into a grid of discrete samples – sampling process. Each sample becomes a pixel. The digital video frame size is still measured in pixels, like digital still images. Each pixel is assigned with a color value from a finite list of color numbers (bit depth) – quantization process.

Besides the image frame, sampling process also occurs in the temporal dimension of video. The sampling rate of the temporal dimension is the frame rate of the video. The higher the frame rate, the more accurate the motion is sampled. However, higher frame rate also means more frames for the same video length which results in a larger file size.

Video Compression

Because video files are so large, they must be compressed. A compressed file must be decompressed before it can be used in normal applications. Compression and decompression always go together. The term codec comes from compressor/decompressor.

Common Video File Formats

File Type Abbreviated From File Information and Codecs Created by

.mov

QuickTime Movie

Can contain other data such as audio. Many codecs are supported, including H.264, MPEG-4, Sorenson Video, Cinepak, Animation, Planar RGB

Apple Computer

.avi

Audio Video Interleave

Common codecs include Microsoft RLE, Cinepak, Indeo Video

Microsoft

.mpeg

MPEG-2

Highly compressed; format widely used for digital television and DVD

Moving Picture Experts Group

.flv

Flash Video

Used to deliver video content over the web. Codecs include H.264, Sorenson Spark, VP6

Macromedia

Methods for Using Video in Flash

There are a number of ways that video can be incorporated into Flash:

All of these methods have advantages and disadvantages. We are going to look at embedding video. Embedding video does not require additional software such as the Adobe Flash Media Server. Another advantage is that it does not necessarily require any ActionScript coding. However, embedding video increases the file size of a project quite a bit, so it should only be used for video clips that are 10 seconds or less.

Encoding Video

Adding Video to a Flash Project

Return to syllabus