sunwalk, are you ripping dvd to vobs or directly to divx (or xvid)?
i mean, i never get such problems, but i use Smart Ripper to rip to vobs and then DrDivx to encode it to divx, or Gordian Knot for xvid. but if you want to encode it to xvid, i'd recommend you use Auto Gordian Knot, which is as good as the "normal" Gordian but MUCH simpler.
good luck