if I remember well, the width and heigth of your frames must be multiplies of 4: this means that the codec can compress a 800 x 600 PX video, but not a 807 x 603 one. Some codecs require a multiply of 8.
I'd use a DVX or Xvid codec: they allow you fast compression and good quality.
[/matteo]