10.01.2013 Views

DVD Demystified

DVD Demystified

DVD Demystified

SHOW MORE
SHOW LESS

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

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

98<br />

Chapter 3<br />

encoders only create I frames. This is less efficient but may be necessary for<br />

very inexpensive real-time encoders that must process 30 or more frames a<br />

second.<br />

MPEG-2 encoding can be done in real time (where the video stream<br />

enters and leaves the encoder at display speeds), but it is difficult to produce<br />

quality results, especially with variable bit rate (VBR). VBR allows varying<br />

numbers of bits to be allocated for each frame depending on the complexity.<br />

Less data is needed for simple scenes, whereas more data can be allocated<br />

for complex scenes. This results in a lower average data rate and longer<br />

playing times but provides room for data peaks to maintain quality. <strong>DVD</strong><br />

encoding frequently is done with VBR and is usually not done in real time,<br />

so the encoder has plenty of time for macroblock matching, resulting in<br />

much better quality at lower data rates. Good encoders make one pass to<br />

analyze the video and determine the complexity of each frame, forcing I<br />

frames at scene changes and creating a compression profile for each frame.<br />

They then make a second pass to do the actual compression, varying quantization<br />

parameters to match the profiles. The human operator often<br />

“tweaks” minor details between the two passes. Many low-cost MPEG<br />

encoding hardware or software for personal computers uses only I frames,<br />

especially when capturing video in real time. This results in a simpler and<br />

cheaper encoder, since P and B frames require more computation and more<br />

memory to encode. Some of these systems can later reprocess the I frames<br />

to create P and B frames. MPEG also can encode still images as I frames.<br />

Still menus on a <strong>DVD</strong>, for example, are I frames.<br />

The result of the encoding process is a set of data and instructions (Figure<br />

3.5). These are used by the decoder to recreate the video. The amount of<br />

compression (how coarse the quantizing steps are, how large a motion estimation<br />

error is allowed) determines how closely the reconstructed video<br />

resembles the original. MPEG decoding is deterministic—a given set of<br />

input data always should produce the same output data. Decoders that<br />

properly implement the complete MPEG decoding process will produce the<br />

same numerical picture even if they are built by different manufacturers. 7<br />

This does not mean that all <strong>DVD</strong> players will produce the same video picture.<br />

Far from it, since many other factors are involved, such as conversion<br />

from digital to analog, connection type, cable quality, and display quality.<br />

Advanced decoders may include extra processing steps such as block filter-<br />

7 Technically, the inverse discrete cosine transform (IDCT) stage of the decoding process is not<br />

strictly prescribed, and is allowed to introduce small statistical variances. This should never<br />

account for more than an occasional least significant bit of discrepancy between decoders.

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

Saved successfully!

Ooh no, something went wrong!