avi is a media container.........
it can contain various kinds of video and audio formats, including mepg, divx, xvid, h.261,263, mp3, ac3, wav......
rm is an streaming media, which means it can be played realtime online, and it's also a kind of media container.
other media containers includes ogm, MCF......