A video codec is a software or hardware that compresses and decompresses digital video. In the context of video compression, codec is a combination of encoder and decoder, while a device that only compresses is typically called an encoder, and one that only decompresses is a decoder.