But to really get an understanding of what kind of video file you're dealing with, and what programs and devices it'll play friendly with, you'll need to figure out how the video was encoded.
Video encoding works on the same basic principal as audio encoding. To turn a raw CD into an MP3 file, a program like iTunes uses an MP3
codec to analyze the incoming audio and find a prescribed way to streamline all that data into a more efficient, space-saving file. In the audio world, you have different codecs such as AAC, MP3, Ogg, FLAC, Apple Lossless, Windows Media, etc. Most of these codecs do more or less the same thing, while some of them are specialized for a specific purpose (lossless codecs, for example, are incapable of degrading the audio fed into them).
Likewise, video codecs such as MPEG2, H.264 (AVC), DivX, WMV, Xvid, QuickTime, and others, are designed to look at an incoming digital video feed and find an efficient way to compress all the data into a compact file. Some codecs, like MPEG2, are the standard used for DVDs; H.264 is a standard used by iPods and video podcasts, WMV is a favorite of Windows and XBox videos, and DivX and XviD files abound on P2P services.
To figure out what codecs are used on your video file, PC users can use a free program like VLC (open the file and use the Control+I command to view extended media information). On a Mac, simply highlight any video file and select Get Info from the Desktop file menu (Command+I). In either case, you should be able to view both the video codec type and the audio codec type used for the selected file.