http://noirbear.com/loops/
Advantages over GIF:
- Fewer limitations on color palette
- Potential for improved file size at large resolutions (~45 MB GIF vs. 4.5 MB H.264 video in one test of 1080p content)
- Possibility for including an audio track without any synchronization headaches
Disadvantages:
- Smooth, seamless, looping depends on player. Most players produce a noticeable hiccup between the last and first frames of the video (most web browsers can handle looping without issue using the new <video> tag, though).
- Playback in HTML is restricted to one of three codecs (H.264, WebM, and OGG), none of which are fully supported by all browsers, yet.