CODEC

Coder/Decoder

Services
Introduced in R99
A CODEC (Coder/Decoder) is a hardware or software algorithm that compresses and decompresses digital media streams, primarily audio and video. It enables efficient transmission and storage by reducing data size while maintaining acceptable quality. In 3GPP networks, CODECs are essential for voice calls, video calls, and multimedia services over bandwidth-constrained radio interfaces.

Description

A CODEC is a fundamental component in digital communication systems that performs two complementary functions: encoding (compression) at the source and decoding (decompression) at the destination. The encoder transforms raw digital media data (like PCM audio or raw video frames) into a compressed bitstream by removing perceptual redundancy and statistical redundancy. This compression reduces the required bandwidth for transmission or storage capacity. The decoder reconstructs an approximation of the original signal from the compressed bitstream at the receiving end. The quality of reconstruction depends on the CODEC algorithm, bitrate, and the inherent trade-off between compression ratio and fidelity.

In 3GPP systems, CODECs operate within the media processing functions of the User Equipment (UE) and network elements like the Media Gateway (MGW) or Multimedia Resource Function Processor (MRFP). For voice services, the UE's audio subsystem captures analog voice through a microphone, converts it to digital PCM via an ADC, then the speech CODEC compresses this digital stream. The compressed packets are packetized into RTP/UDP/IP frames for transmission over the bearer channel. In the network, transcoding may occur between different CODECs (e.g., between a UE's AMR and the PSTN's G.711) at a Media Gateway. For video services, video CODECs process video frames using intra-frame and inter-frame compression techniques, often standardized by both 3GPP and external bodies like ITU-T or MPEG.

The architecture involves several key components: the compression algorithm (e.g., ACELP for speech, DCT and motion estimation for video), a bitrate adaptation mechanism, error resilience tools, and a payload format for packetization. 3GPP specifies not only the CODEC algorithms but also the bit-exact implementation, test sequences, and mandatory support profiles to ensure interoperability. CODECs interface with the transport layer through RTP payload formats defined in IETF RFCs, and with control protocols via SDP codec negotiation during session establishment (e.g., in SIP or SDP).

CODECs play a critical role in determining the Quality of Experience (QoE) for users and the network efficiency. Their performance directly impacts voice quality (measured by MOS), video quality, bandwidth consumption, latency, and error robustness. Advanced CODECs incorporate features like voice activity detection (VAD) for discontinuous transmission, comfort noise generation (CNG), packet loss concealment (PLC), and adaptive multi-rate operation that dynamically adjusts bitrate based on network conditions. In 5G systems, CODECs enable immersive media services like VR/AR and ultra-HD video by providing higher compression efficiency and lower latency.

Purpose & Motivation

CODECs exist to solve the fundamental problem of limited bandwidth and storage capacity in digital communication systems. Raw digital media requires substantial data rates—for example, uncompressed CD-quality audio (44.1 kHz, 16-bit stereo) needs about 1.4 Mbps, while raw HD video can require over 1 Gbps. Transmitting such volumes over constrained wireless links like cellular networks would be impractical and economically unfeasible. CODECs enable practical multimedia services by compressing data 10 to 1000 times, making services like voice calls, video streaming, and conferencing viable over cellular networks.

Historically, the transition from analog to digital cellular (2G GSM) created the need for efficient digital speech coding. Early mobile networks used full-rate speech codecs with relatively high bitrates (13 kbps for GSM FR). As networks evolved to support more users and data services, more advanced codecs with lower bitrates and better quality were developed. Each generation introduced improved codecs: 3G introduced AMR with adaptive rates, 4G brought HD voice with AMR-WB, and 5G supports even more efficient codecs like EVS and enhanced video codecs. These evolutions addressed limitations of previous codecs in terms of bandwidth efficiency, voice quality, robustness to packet loss, and support for new audio bandwidths (like wideband and super-wideband).

Beyond basic compression, modern codecs solve additional problems: they enable interoperability between different networks (cellular, VoIP, PSTN) through transcoding, support quality adaptation to varying network conditions through multi-rate operation, and provide error resilience for unreliable wireless channels. They also facilitate new service capabilities like multi-party conferencing, music streaming, and immersive media by offering appropriate compression profiles for different content types. Without efficient codecs, the rich multimedia ecosystem of today's mobile networks would not exist.

Key Features

  • Lossy compression algorithms optimized for human perception
  • Multi-rate operation supporting dynamic bitrate adaptation
  • Error resilience mechanisms including packet loss concealment
  • Support for multiple audio bandwidths (narrowband to super-wideband)
  • Standardized bit-exact implementations ensuring interoperability
  • Integration with RTP/IP transport through defined payload formats

Evolution Across Releases

R99 Initial

Introduced the Adaptive Multi-Rate (AMR) speech codec as the primary voice codec for 3G UMTS networks. AMR operates at eight bitrates from 4.75 to 12.2 kbps and supports source-controlled rate adaptation based on network conditions. It provided significant improvements over GSM codecs with better voice quality at lower bitrates and incorporated robust error concealment for the error-prone radio interface.

Defining Specifications

SpecificationTitle
TS 22.233 3GPP TS 22.233
TS 23.153 3GPP TS 23.153
TS 26.094 3GPP TS 26.094
TS 26.916 3GPP TS 26.916