XviD is almost exclusively found inside the container. AVI is a relic of the Windows 3.1 era. It has hard limits:

If you are a modern consumer, a YouTuber, or someone streaming movies to an iPhone 15 or a modern Smart TV: XviD is a dinosaur. You should be using H.265 or AV1. They are smaller, sharper, and cleaner.

Xvid struggles efficiently with 4K or even high-bitrate 1080p content.