Low Resolution Video Processing
This page gives instructions for processing video that you captured in low resolution. If you captured in high resolution, you should go to my High Resolution Video Processing section.
In video, background noise is the unwanted movement of pixels in your movie, even when there should be no motion. Most analog video sources tend to have a lot of background noise in them, especially if you aren't using professional video equipment. Fortunately, by using some of VirtualDub's plug-ins, we can significantly reduce the background noise. This improves the image quality and results in a better video after it's been encoded to its final format.
You have the choice to either save your processed video to an AVI compressed with Huffyuv or frameserve directly to your video encoder. To learn about frameserving, read my Frameserving article. If you choose to save to an AVI, you'll need a lot of free disk space. For example, if your final resolution is going to be 320 x 240, you'll need about 1.25-3 GB of free space to store each 10 minutes of your processed video with Huffyuv.
Make sure that you have installed all the plug-ins that I mention in the VirtualDub Plug-ins section.
A) Configuring the Audio Options
If you did not use Cool Edit 2000 to edit your audio, follow these steps:
1) Make sure that Audio -> AVI Audio is selected.
2) Make sure that Audio -> Direct stream copy is selected.
If you did use Cool Edit 2000 to edit your audio, follow these steps:
1) Click on Audio -> WAV audio.
2) Select the .wav file you edited in Cool Edit 2000 (perhaps capture.wav) and hit OK.
3) Make sure that Audio -> Direct stream copy is selected.
B) Trimming the Video
1) The first thing you will do is trim off the unwanted portions at the beginning and end of your captured video file. To begin, run VirtualDub, go to File - > Open Video File, make sure the "Automatically detect and load additional segments" box is checked, and open the file you captured in AVI_IO. (The file name you want to open is usually "capture.00.avi".)
2) Using the video slider and the Play button with the little letter "I" next to it, find the spot where your program begins and press the stop button. Usually, the screen will fade in from black a second before a program begins. Using the video slider on the bottom of the VirtualDub window, move to a position approximately 1/2 to 1 second before the blackness disappears and your program starts. When you are in a position 1/2 to 1 second before the program starts, press the END key on your keyboard.
3) Using the video slider, rewind back to the very beginning of the video. When the slider is in the left-most position, press the HOME key. Then press the DELETE key to remove the unwanted portion of the video before your program starts.
4) Now use the video slider to move to the very end of your program. When the slider is at a point approximately 1/2 to 1 second past the end of your program, press the HOME key.
5) Move the video slider all the way to the right and press the END key. Finally, press the DELETE key to delete the extraneous video.
6) Listen to both the very beginning and very end of your video. You can do this by moving the position slider to either point and pressing the play button. If you did a good job of trimming the video, there will not be any audio that has been cut off at the beginning or end of the video. If there is some introductory or ending audio in your program that has been cut off, start over from Step #1. This time, include a longer stretch of video before or after your program ends. (Note: if you have a slower computer, playback of the audio and video may be choppy. This will not affect your final encoded output.)
7) If there are any commercials in the middle of your video, you can also remove them. Just select the unwanted portion of the video as described in the previous steps with the HOME and END keys. Then press DELETE to remove the commercials.
8) Finally, play the video through the portion where you removed the commercials to ensure that you did not cut out any desired audio. If you did, you will have to restart from Step #1. This time, try to make your selection around the commercials not quite as close to the desired video.
C) Configuring the Video Options
Once your video has been properly trimmed, the next step is to configure the video and plug-in (filter) options. For the sake of simplicity, I've tried to avoid a technical description of the filters. However, you are free to ask questions in the Message Boards. With that being said, let's begin:
1) If you captured your video in a resolution that differs
from your desired output resolution, your first step will be to resize the
video. If your video is already in your desired resolution, then you may
skip this step.
Click on Video -> Filters -> Add. The first filter we will add is the "resize"
filter. Therefore, select the "resize" filter from the list and
hit OK. You should now see a window like this:

In the "New width" and "New height" boxes, enter your desired output resolution. Then select a Filter mode of "Precise bicubic" or "Precise bilinear". The "Precise bicubic" option is more commonly used because it produces a sharper image. Using 'A=-0.60' may provide a more faithful reproduction of the image, whereas using larger negative values can sometimes provide an even sharper image. You can choose the "Precise bilinear" option if your video source if very noisy or you want a slightly smaller video after you encode it to its final format. However, the "Precise bilinear" option will blur the video a bit, so "Precise bicubic" usually looks better. When you are done configuring the resize filter, hit the OK button.
Note: When entering your desired output resolution, it is
important to choose a width/height combination that preserves the correct aspect
ratio. All of the output video resolutions I have listed on the Video
Capture Overview page maintain the proper aspect ratio, so you should use
one of them. In general, the correct aspect ratio of width to height is
4:3 (1.333) for video that is intended to be viewed on a computer monitor.
Some formats, such as VCD, have different aspect ratios because they are not
meant to be watched on a monitor.
2) The next step is to crop off unwanted potions of the image. Click again on Add, select the "null transform" filter from the list, and hit OK. You should see text similar to "320x240 320x240 null transform" listed in the Filters window. Highlight this filter and select Cropping. You should see a window like this:

If you are capturing from an analog video source, look closely at the top and bottom of your video. It's very likely that you will notice what appears to be lines of video "garbage". These lines will appear to move from left to right as you scroll through your video, and they are sometimes a different color from adjacent portions of the image. The lines make the video look bad and increase the file size, so we are going to crop (cut) them off. You can do this by changing the Y1 and Y2 offsets. Bringing the Y1 offset down will cut off the top of the image, and bringing the Y2 offset up will cut off the bottom of the video. Your goal is to cut off all of the video garbage. In addition, if your video has black borders on the top and bottom, you should crop off those too. Furthermore, if you have any unwanted video on the left or right sides of the image, you can use the X1 and X2 offset to crop the sides. However, if you do not have any video garbage, do not crop off anything.
Note #1: Most video encoding programs have requirements about the resolution of the video you want to encode. For example, most MPEG-1 encoders require that width and height of your video are divisible by 16. Because of these kinds of requirements, you may be limited in the number of lines that you can crop off. For instance, let's say you crop off 3 lines of video garbage, but the encoder needs the resolution to be a multiple of 4. In this case, you would have to crop off 1 more line, either from the top or the bottom. In other words, the sum of the Y1 and Y2 offsets would have to be 4 (or a multiple of 4). If your video had 5-8 lines of video garbage, you would have to crop off 8 lines, which is the closest multiple of 4. The same would be true if you were cropping the left and right sides of the video with the X1 and X2 offsets. Here are some requirements for common video encoders:
If you plan on encoding your video to the RealMedia format, you are required to crop off a multiple of 4 lines.
If you are going to encode your video to an MPEG-4 format (such as MS MPEG-4 V2), you should try to crop off a multiple of 8 lines (acceptable) or 16 lines (preferable). However, a multiple of 4 will also work. You may want to be careful though because many video cards disable video acceleration for playback if the resolution isn't a multiple of 16.
If you want to compress your video to an MPEG-1 or MPEG-2 format, you should crop off a multiple of 16 lines. However, if you are making a VCD, you can crop off as many lines as you like. Having a multiple of 16 is still preferred, but it's not necessary since we will be letterboxing the video if you are making a VCD.
When you are satisfied that you have cropped off all the unwanted video, hit OK.
3) Note: This step should only be followed if you are making a VCD
and you cropped off part of your video in the previous step.
To begin, look at the text for the null transform filter in Filters
window. The first part of the text will contain the resolution for your
cropped video. (For example, you might see "352x236".)
Remember this resolution, and then hit the Add button and choose the resize
filter. For the New width and New height boxes, enter the resolution that
you just memorized from the null transform filter. The Filter mode is
unimportant because we won't be modifying the actual size of your video.
Next, check the box labeled "Expand frame and letterbox image".
For the Frame width and Frame height, enter the resolution required for the type
of VCD that you are making. (NTSC = 352 x 240, PAL/SECAM = 352 x
288.) The default Fill color of black is fine. If you want to, you
can click on the preview button to ensure that your video is the proper size and
has black borders on one or more of its edges. The settings for the resize
filter should look something like this, although your numbers may be different::

Click OK when you are finished.
4) You should be back at the filters window. Now
we will insert a temporal noise reduction filter, which will eliminate much of
the random static (noise) in your video. Hit Add
to add another filter. From the list, select "temporal smoother" and hit OK. Then a dialog box with a slider will pop
up. Each notch on the slider represents a level of strength from
0-10. If your video is rather noisy, set the strength to 6 (the 7th
notch from the left). If your video has little noise, set the strength to
5 or possibly lower. Here is a picture of the Temporal Smoother filter
configured to a strength of 6:

Click OK when you have selected the proper level of strength.
Note: If you plan on frameserving your video, you won't be able to use the temporal smoother filter. As a replacement, I suggest using the "Dynamic noise reduction (original)" filter, which can be obtained from the VirtualDub Plug-ins page. If your video has little noise, try setting the threshold to about 16 or lower. If your video has a moderate to high amount of noise, trying using a threshold of 25 or lower. For extremely noisy video, you can use a threshold up to 31, but ghosted images are likely to start appearing during motion as you increase the threshold.
5) Next we are going to add a spatial noise reduction filter, which will
further smooth out the noise in your video. Click the Add button, select
"smart smoother" from the list, and press OK. The window that
appears should look like this:

I suggest configuring Smart Smoother to a Diameter of 7 and a Threshold of 45. If your source video isn't too noisy, you might want to lower the Threshold a little bit. When you are done configuring Smart Smoother, hit OK.
6) Note: In steps #6 and #7, we will be adding another pair of noise
reduction filters that should eliminate any remaining static noise in your
video. If your source video doesn't have a lot of random static motion,
you may wish to skip steps #6 and #7.
Click the Add button again, chose "dynamic noise reduction (original)" from the list, and press OK. Then set the Noise threshold to 6, which should be sufficient to freeze any remaining static motion in your video. The configured window should look like this:

Click the OK button after you have configured the filter.
7) Note: Only follow this step if you have also followed step #6.
The final noise reduction filter will be another instance of Smart Smoother. Therefore, click on Add, select "smart smoother", and hit OK. This time, our goal is merely to smooth out any pixels locked in place by the Dynamic Noise Reduction filter. Therefore, I suggest configuring the filter to a Diameter of 5 and a Strength of 8. Here is a picture of the configured filter window:

When you have properly adjusted the settings, click the OK button.
8) With all your filters configured, the Filters window might look
something like this:

Of course, your list of filters could look quite different from this sample list. You are probably using different settings, and certain filters may not be present in your list. You could also have some additional filters in your list. As long as you followed the previous steps, you should be fine.
With all of your video filters set up, click OK to exit the Filters window.
9) Now click on Video -> Compression. Select
Huffyuv 2.1.1 from the list and hit configure. (If you don't see Huffyuv in
the list, visit my Software page.) Adjust the
settings to match those found below:

When you've configured Huffyuv, hit OK to exit the Huffyuv dialog box and hit OK again to exit the Video compression menu.
10) Make sure Video -> Full processing mode is selected.
D) Begin the Processing
You now have the choice of saving your processed video to a file or Frameserving it directly to your desired video encoder. The advantage of frameserving is that it produces no intermediate files, which saves disk space. The disadvantage is that your video will have to be re-processed every time you encode it, which can take a long time. If you have enough free hard drive space, I usually recommend saving your processed video to a file instead of frameserving it.
If you choose to frameserve your video, follow the instructions for VirtualDub frameserving found in my Frameserving page. If you want to save the video to a file, continue following the steps below.
1) Depending on your operating system and file system, you can save your processed video in one of two ways:
A) If you are running Windows 9x/ME, Windows NT with the FAT16 file system, or Windows 2000/XP with the FAT32 file system and your captured file(s) are 2 GB or larger (in total), click on File -> Save segmented AVI. Type in a file name, choose a file segment size of 2000 MB, and hit the Save button. (You have to use the segmented option because the FAT file systems do not support files bigger than 2 GB or 4 GB). This method of saving your processed video is the most reliable, so you should use it if you are unsure about the file size of your output video or capabilities of your operating system.
B) If your captured file(s) are less than 2 GB (in total) or you are running Windows NT/2000/XP with the NTFS file system, click on File -> Save AVI, type in a file name, and hit Save. (Windows NT/2000/XP with the NTFS file system can handle files of virtually unlimited size.)
A progress indicator should appear, telling you how long it will take until the video finishes processing. It will also tell you the estimated file size of the processed file. Make sure you have enough free hard disk space to accommodate the processed file. You can uncheck the options labeled "Show input video" and "Show output video" to increase performance. While your video processes, feel free to do whatever you like. You can go outside and enjoy the fresh air. Or, if you're like me, just set up your video to process before you go to bed. When you wake up in the morning it should be done.
2) Finally, do not forget to open and test your new video file after the processing. Make sure that the video looks and sounds good. (Note: if you have a slower computer, playback of the audio and video may be choppy. This will not affect your final encoded output.)
You're almost there! You can now move on to the Encoding Overview.