Codec stands for coder and decoder and is a system that encapsulates both encoding and decoding of information (as opposed to two separate systems). In computing terms, it is a software library or utility that performs the encoding and decoding on raw data, into and out of whatever format the codec supports. This article focuses on video codecs.
Converting video files
Playing video files
No matter what codec your video file has, it can be played with mplayer.
There are a large number of video formats, and corresponding codecs.
For examples see: