Two possible solutions for you to try.
Solution 1:Install FFDShow then configure it to do all the decoding for you instead of XviD. When you install FFDShow, you run the Video Decoder Configuration program by going to
Start > Programs > ffdshow > video decoder configuration.
Once there, make sure you're looking at the Codecs. Go right-click the
XviD codec and
Set all stable formats to libavcodec. Hit Apply then Ok. Do this same thing for Divx, H263 and H264 while you're at it. Now try to encode your video.
Solution 2:Try installing AviSynth v2.5 or newer. Then what you do is open up Notepad and create a small text file. Type in:
DirectShowSource("C:\Videos\filename.mpg")Just replace the path highlighted in red with wherever your file is. Now that you've typed that out, save it in Notepad with the file extension
.AVS. To force notepad to save files with an avs extension, type in
"your filename.avs" INCLUDING THE QUOTES as well. Now that you've got your AVS file, just open it in Virtualdub and try to encode your video.