Packet loss concealment (PLC): how it masks gaps in real-time audio
Packet loss concealment estimates missing audio at the receiver to reduce playback gaps; it does not restore the original signal. Learn how PLC differs from FEC and retransmission, using Opus and WebRTC examples, and what to inspect when calls sound choppy.
Packet loss concealment (PLC): how it masks gaps in real-time audio
Packet loss concealment (PLC) estimates the playback interval of a missing audio frame from surrounding signal to reduce gaps or clicks. It is receiver-side mitigation, not guaranteed recovery of the original speech. It differs from forward error correction (FEC), which uses redundancy sent in another packet, and retransmission of the original packet.
What happens at the receiver
RTP sequence numbers and timestamps help identify missing packets and their playout timing. A jitter buffer absorbs arrival variation while limiting delay. If the needed data is unavailable at playout, the receiver or decoder invokes PLC. A packet arriving too late may be discarded because its audio has already been played.
PLC depends on the codec and receiver. The Opus reference decoder described in RFC 6716 continues a waveform using recent periodicity in CELT mode and uses linear prediction from prior frames in SILK mode. Implementations can trade complexity for quality. WebRTC NetEq can extend audio remaining in its buffer or ask the decoder to generate the missing interval, then merge concealment with decoded audio. PLC does not always repeat the last packet unchanged.
PLC, FEC, and retransmission
| Method | Uses | Main cost or limit |
|---|---|---|
| PLC | Receiver state and decoder prediction | Little extra wait, but the result is estimated |
| FEC | Redundancy sent in another packet | Bandwidth and time to receive the next packet; support must be negotiated |
| Retransmission (NACK/ARQ) | The original packet sent again | Must arrive before the real-time playout deadline |
Opus in-band FEC can put lower-bitrate information about the preceding frame in the next packet. The receiver needs compatible buffer/decoder support and the next packet must arrive in time. RFC 8854 recommends built-in Opus FEC for individual frame losses; multiple-packet protection may require redundant encoding. PLC remains useful when FEC is unavailable or unusable.
Diagnose choppy audio
Record RTP sequence gaps, arrival intervals, jitter-buffer delay, late discards, and concealed frames or samples at both ends. Distinguish Opus discontinuous transmission (DTX) from loss using sequence information.
Inspect burst length and timing, not only average loss over a short call. Longer bursts can make prediction from surrounding audio harder.
If packets are delayed but could still arrive before playout, review the buffer-delay trade-off. For actual network loss, inspect congestion and the wireless link, then evaluate FEC or NACK/retransmission against the delay budget and peer support.
Compare output and counters using a reproducible RTP capture or call log. PLC being invoked does not mean the original audio was recovered; assess listening quality and delay together.
PLC is a receiver-side safety net that makes gaps less disruptive. It does not remove the cause of loss or guarantee the original audio.
References
[RFC 6716, Opus codec, Section 4.4](https://www.rfc-editor.org/rfc/rfc6716.html)
[RFC 7587, Opus RTP payload, Sections 3.1.3 and 3.3](https://www.rfc-editor.org/rfc/rfc7587.html)
[WebRTC NetEq documentation](https://webrtc.googlesource.com/src.git/+/a0253ec15b3d3072fb35d6be29ba9224c36f9dd7/modules/audio_coding/neteq/g3doc/index.md)
[RFC 8854, WebRTC FEC requirements](https://www.rfc-editor.org/rfc/rfc8854.html)