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
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:
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:
800 pixels wide by 600 pixels in height,
Since 65,536 is 2 16, we will need 16 bits for each pixel.
We then compute the amount of video memory required:
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.
960,000 bytes * ( 1024 * 768 pixels / ( 800 * 600 pixels))
= 1,572,864 bytes / ( 2 20 bytes / MB )
= 1.5 MB
960,000 bytes * 24 bits / pixel / ( 16 bits / pixel) * 2048 * 1536 pixels / ( 800 * 600 pixels)
= 9,437,184 bytes / ( 2 20 bytes / MB )
= 9 MB
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) *
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
2 channels * ( 16 bits / sample) / ( 8 bits / byte)
= 10,584,000 bytes / ( 2 20 bytes / MB)
= 10.09 MB
10.09 MB * ( 201 seconds / 60 seconds) * (1 channel / 2 channels) * ( 8 bits / sample / ( 16 bits / sample))
= 8.45 MB
? bytes = ( 352 pixels * 240 lines / field) * ( 2 fields / frame) *
( 29.97 frames / second) * ( 60 seconds / minute ) *
Note that the vertical "lines" units were omitted in the computation, as per the discussion above.
( 24 bits / pixel) / ( 8 bits / byte * 2 20 bytes / MB)
= 869.25 MB
For a 3:21 full-motion video clip, we would need
869.25 MB * ( 201 seconds / 60 seconds )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
= 2912 MB / ( 2 10 MB / GB)
= 2.844 GB
869.25 MB / minute / ( 60 seconds / minute)throughput; many PCs cannot achieve the disk throughput necessary to store full motion video.
= 14.5 MB /second
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
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.
©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.
1 minute * ( 60 seconds / minute) * ( 128,000 bits / second) / ( 8 bits / byte)
Note that we used 128,000 for 128 K, since it is a frequency and not a storage requirement.
= 960,000 bytes / ( 2 10 bytes / KB)
= 937.5 KB
201 seconds * ( 64,000 bits / second) / ( 8 bits / byte)
= 1,608,000 bytes / ( 2 20 bytes / MB)
= 1.534 MB
201 seconds * ( 1,150,000 bits / second) / ( 8 bits / byte)
= 28,894,750 bytes / ( 2 20 bytes / MB)
= 27.56 MB
201 seconds * ( 5,000,000 bits / second) / ( 8 bits / byte)
= 125,625,000 bytes / ( 2 20 bytes / MB)
= 119.8 MB
Go to: Title Page Table of Contents Index