From Applepedia
H.264 is a next-generation video codec that is just now beginning to mature. Even with todays unoptimized encoders, it creates better quality at a smaller file size than XviD. H.264 is the default and preferred codec in QuickTime 7.
Encoders
More Reading