What are Codecs?

Codecs are nothing but decoders. They are usually required to decode a video file. Video is encoded and compressed into a file format. To read this decoder is needed which is codec.