Thanks so much for the materials from "Baidu Baike" & Wikipedia( the following where the chinese words is from Baidu Baike and the rest words is from wikipedia)
Codec:
The word codec is a portmanteau of "coder-decoder" or, less commonly, "compressor-decompressor".
A codec(the program) should not be confused with a coding or compression format or standard – a format is a document (the standard), a way of storing data, while a codec is a program(an implementation) which can read or write such files. In practice, however, "codec" is sometimes used loosely to refer to formats.
A codec encodes a data stream or signal for transmission, storage or encryption, or decodes it for playback or editing. Codecs are used in videoconferencing, streaming media and video editing applications. A video camera's analog-to-digital converter (ADC)converts its analog signals into digital signals, which are then passed through a video compressor for digital transmission or storage. A receiving device then runs the signal througha video decompressor, then a digital-to-analog converter (DAC) for analog display. The term codec is also used as a generic name for a videoconferencing unit.
(My own words: Here are the different types of CODEC in the technology. )
An endec (encoder/decoder) is a similar yet different concept mainly used for hardware. In the mid 20th century, a "codec" was hardware that coded analog signals into pulse-code modulation (PCM) and decoded them back. Late in the century the name came to be applied to a class of software for converting among digital signal formats, and including compander functions.
A modem is a contraction of modulator/demodulator (although they were referred to as "datasets" by telcos) and converts digital data from computers to analog for phone line transmission. On the receiving end the analog is converted back to digital. Codecs do the opposite (convert audio analog to digital and then computer digital sound back to audio).
An audio codec convertsanalog audio signals into digital signals for transmission or storage. A receiving device then converts the digital signals back to analog using an audio decompressor, for playback. An example of this is the codecs used in the sound cards of personal computers. A video codec accomplishes the same task for video signals.