MP4 is a multimedia file container that stores media contents such as videos, audio and music, subtitles, texts, and image files. On the other hand, XviD is a video codec that can compress video files to lessen their file sizes.