Since avi is a container format, if you create divx avis, you can rename them to .divx, and you are done. I am not sure if you talk about avi in general, or some particular avis, but avi files (it is a container format, remember? :)) can hold DivX or XviD encoded video data, or data encoded with allmost any other video codec. And if you are lucky, you can "force" your player to play xvid files by changing the 4CC codes of the avi from xvid (if it is xvid) to divx and changing extension to divx (if the latter is needed by your player).