Encoding problems--TMPGEnc, Xvid

I'm trying to encode a vid using TMPGEnc, and when I play back the resulting file it slows or gets stuck on some frame(s) of video, throwing the audio and the video out of sync. I've encoded vids to Xvid with TMPGEnc before without any problems. For this one, in addition to Xvid I've also tried DivX and a couple of different Microsoft MPEG codecs, all with the same result.

There was a similar issue in a post in the memories from last year, involving VirtualDub and Divx, but apparently nobody had an explanation or solution at the time. I was hoping either that person had figured it out or someone else had stumbled upon a solution since then.

ETA: Fixed! Though I have no idea what did it. I went back to Xvid from the other codecs, switched from 2-pass to 1-pass mode, changed the audio format to MPEG Layer-3, and closed some other programs that had been open in the background. Could have been any or all of those things. Explanations welcome.

If there aren't any, maybe this can at least be a useful list of things to try for anyone else having the same problem.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting