AVI is closely associated with DivX codec, which is notable for compressing video into small size with high visual quality. MP4 is based on MOV as a lossy format using MPEG4 AVC codec. It is the reason why many people believe AVI is better in quality than MP4.