avi is just a wrapper format for video. It does not compress of encode anything by itself. An avi file has some stuff in it's header to tell the video player program (or the OS) which codec it needs to actually play. If you don't have that codec, you can't play the avi.