...and the native encoder mpeg4: ffmpeg -i input.avi -c:v mpeg4 -vtag xvid output.avi. The native encoder has the advantage of not requiring an external library.
trac.ffmpeg.org