This article defines what a codec is, explains how video and audio codecs function in streaming workflows, and details commonly used codecs such as H.264, H.265, VP8, VP9, AV1, AAC, and Opus. It provides guidance on selecting appropriate codecs based on factors like compression efficiency, latency, and device compatibility. Ant Media Server's support for these various codecs across different streaming protocols is highlighted.