Storage Requirements

We can also use units to guide our computations of space requirements for multimedia applications. Consider the question of how much video RAM (Random Access Memory) is required for a given monitor (or display) setting. The display setting is specified by

A typical resolution might be

800 pixels wide by 600 pixels in height,
with a depth of 65 thousand colors per pixel.
Vertical resolution is sometimes given in lines, so that the above would be denoted as 600 lines, each of which is 800 pixels wide. In this usage, a line is not a real unit; the resolution is computed by simplying multiplying the horizontal pixel resolution by the vertical line resolution, and the result is given in pixels. Thus a two dimensional video image is represented as a simple list of pixels; in this example, the computer would start a new line after every 800 pixels.
Since 65,536 is 2 16, we will need 16 bits for each pixel. We then compute the amount of video memory required:

  1. ? bytes = number of pixels * bytes per pixel
  2. number of pixels = 800 * 600 = 480,000 pixels
  3. bytes per pixel = 16 bits / pixel / ( 8 bits / byte ) = 2 bytes / pixel
  4. bytes of video RAM = 480,000 pixels * 2 bytes / pixel = 960,000 bytes

We can again use proportionalities to do additional problems:

Here we have used powers of 2 for conversions to MB, since we are dealing with storage requirements.

The space computations for audio files can be done in much the same way. A microphone converts sound into changing voltages:

In order to digitize the sound, we need to convert the changing voltages into a series of numbers. To do this, we sample the voltages periodically:
For CD quality sound, the sample rate is 44,100 samples per second. Of course, for stereo recordings we need twice that many samples per second, one for each channel. We also need to decide how many bits are necessary to hold the voltage for each sample:
For CD quality sound 16 bits are used. This corresponds to 2 16 voltage divisions in the graph above. The amount of space required for one minute of CD quality sound is then
? bytes = 1 minute * ( 60 seconds / minute) * ( 44,100 samples / second / channel) *
2 channels * ( 16 bits / sample) / ( 8 bits / byte)
= 10,584,000 bytes / ( 2 20 bytes / MB)
= 10.09 MB
Here, the 44,100 samples per second per channel was represented with units of samples / second / channel. For a 3:21 (3 minutes, 21 seconds or 201 seconds) mono (one channel) audio file with a sample rate of 22050 Hz and a sample depth of 8 bits, we require
10.09 MB * ( 201 seconds / 60 seconds) * (1 channel / 2 channels) * ( 8 bits / sample / ( 16 bits / sample))
= 8.45 MB

We can perform a similar computation for full motion video. Using the NTSC standard and VHS quality, full motion video involves a resolution of 352 pixels in width by 240 lines in height for each field; two fields are shown for each frame, and there are 29.97 frames per second. If we use 24 bits for each pixel (TrueColor), we can compute the space requirements for 1 minute of VHS video:

? bytes = ( 352 pixels * 240 lines / field) * ( 2 fields / frame) * ( 29.97 frames / second) * ( 60 seconds / minute ) *
( 24 bits / pixel) / ( 8 bits / byte * 2 20 bytes / MB)
= 869.25 MB
Note that the vertical "lines" units were omitted in the computation, as per
the discussion above.

For a 3:21 full-motion video clip, we would need

869.25 MB * ( 201 seconds / 60 seconds )
= 2912 MB / ( 2 10 MB / GB)
= 2.844 GB
It is clear that capturing full motion video without some sort of compression is a daunting task. It is not even possible to do so on many computers; for one second of full motion video, we need
869.25 MB / minute / ( 60 seconds / minute)
= 14.5 MB /second
throughput; many PCs cannot achieve the disk throughput necessary to store full motion video.

A series of compression standards have been established by the Motion Picture Experts Group (MPEG) which makes the use of digital audio and video practical for today's computers. The compression techniques are "lossy" in that information is lost during compression; they are variable in that you can choose the degree of loss. In each case, a target bit rate is established and the space requirement is then the product of the bit rate and the length of time of the recording. For instance, an audio mp3 file (technically MPEG audio layer 3) containing one minute of audio recorded at 128K bits per second requires

1 minute * ( 60 seconds / minute) * ( 128,000 bits / second) / ( 8 bits / byte)
= 960,000 bytes / ( 2 10 bytes / KB)
= 937.5 KB
Note that we used 128,000 for 128 K, since it is a frequency and not a storage requirement.

The MPEG 1 standard is used for video CDs and the MPEG 2 standard is used for DVDs; the bit rates range between 1.15 Mbits per second (fixed for MPEG 1) and between 5 and 9.8 Mbits per second (variable) for MPEG 2. So, for example:

It is interesting to compare the storage requirements for a similar amount of multimedia data; it is clear that computer multimedia is not practical without compression technologies, and that multimedia fuels the trend toward larger disk drives for computers.

We will now conclude this chapter, and the text, with an introduction to statistics useful in understanding computers.


Go to:Title PageTable of ContentsIndex

©2005, Kenneth R. Koehler. All Rights Reserved. This document may be freely reproduced provided that this copyright notice is included.

Please send comments or suggestions to the author.