The next step is to tell avisynth what footage to look at, and subsequently pass to virtualdub.
The Mpeg2dec3 plugin does just that. The base syntax for Mpeg2dec3 is:
MPEG2Source("full path/whatever.d2v")
See figure 20 for an example of this line of code being added to our existing script.
Mpeg2dec3 supports other variables, and we will use one or two. One variable that’s important to us is the variable “idct”. It stands for Inverse Discrete Cosine Transformation and affects how accurately the mpeg2 file inside the .vob is read. More accurate methods may be slower, buggier, or both. Higher settings do not equal higher quality. We only need to adjust this parameter if the computer you’re on supports SSE2 processor instructions, such as a Pentium 4. If so, place a comma outside of the end quote for the file path, and add the line idct=5 before the end parentheses. See figure 21 for an example of the final line of code. Omitting this variable will not hurt the process any.
Mpeg2dec3 also supports deblocking and deringing through the “CPU” variable.
Deblocking will remove some artifacts from poorly compressed DVDs, whereas deringing tries to remove rainbow artifacts caused by poor
analog source (your digital DVD had to be mastered from something!). You can specify horizontal or vertical, as well as chromatic or luminance deblocking and deringing. If you have to use it, you might as well go all the way.
For maximum deblocking precision, use the value of 4. For deblocking and deringing, use 6.
Deringing will slow down your processing speed a LOT, so use it only if you notice rainbows in areas of high contrast. If your source is interlaced, you’ll also have to set the variable iPP to “true” to enable field based postprocessing.



