What video formats are supported on the iPhone 4?

The iPhone 4 supports three video formats:

H.264 video up to 720p, 30 frames per second, Main Profile level 3.1
Audio: AAC-LC up to 160 Kbps, 48kHz, stereo
File types: .m4v, .mp4, and .mov

MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile
Audio: AAC-LC up to 160 Kbps per channel, 48kHz, stereo
File types: .m4v, .mp4, and .mov

Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second
Audio: ulaw, PCM stereo
File type: .avi