When comparing AVI vs. MP4 for YouTube videos, we should say that both formats are suitable for YouTube. But MP4 does a much better job since it can be compressed without losing its video and audio quality. AVI has a better output resolution but has to be compressed to a smaller file size, which leads to a loss of quality.