After a little thought, I'm not surprised lavc looks bad with xvid's ratecontrol. Xvid achieves both higher bitrate and higher quality at a given quantizer, compared to lavc, and I'm sure their ratecontrol was tweaked around these conditions.