22.06.2015 Views

o_19octlt3v29m1ul81r9513q81i4ra.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

276 Chapter 15<br />

Note A compression algorithm works by identifying repeated characters or patterns in the data<br />

file and substituting more compact codes for them. For example, an algorithm might change<br />

00000000000000000000 to something like 20*0.<br />

Further, video clips vary according to the number of frames per second (fps); more<br />

frames per second means smoother playback and larger file size. A VHS videotape<br />

records at 30 fps, but for Web use, a frame rate of 15 fps works well because it results in<br />

a much smaller file size. You can set the number of frames per second when you record<br />

the video clip, or use a third-party program to decrease the frames per second of a prerecorded<br />

clip.<br />

When a sound clip is digitized (converted to digital format), a series of sound “snapshots”<br />

are taken per second. These snapshots are called samples. Higher sampling rates (the<br />

number of samples per second) yield higher sound reproduction accuracy, but at the cost<br />

of larger file sizes. Sampling rates for audio clips are measured in kilohertz—for example,<br />

11 KHz, 22K Hz, or 44 KHz.<br />

Note “Kilo” means thousand; an 11 KHz clip contains approximately 11,000 samples per<br />

second.<br />

Sound clips also have varying sample resolutions, which are the number of bits used to<br />

describe each sample. Common sample resolutions are 8-bit, 16-bit, and 32-bit. The<br />

more bits that are sampled, the larger the file will be.<br />

Sound clips can be recorded in either mono or stereo, referring to the number of audio<br />

channels in the recording. Mono uses a single channel, which is duplicated in each<br />

speaker. Stereo uses two channels, with one channel playing back in each of two speakers.<br />

Stereo clips are approximately double the file size of mono ones.<br />

When recording audio clips, you can usually choose between various sampling rates and<br />

resolutions. Here are some of the most common combinations of settings:<br />

Settings<br />

Quality<br />

8 KHz, 8-bit, mono Telephone quality<br />

22 MHz, 16-bit, stereo Radio quality<br />

44 KHz, 16-bit, stereo CD quality<br />

Encoding Video<br />

Now that you have a high-level view of video and audio playback on the Web, you might<br />

be wondering how you encode your favorite vacation videos into three formats (four if<br />

you count Flash). The clips provided for the exercises in this chapter are ready to go, but<br />

you will need to prepare your own video clips on your own.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!