Skip to main content

Module error_concealment

Module error_concealment 

Source
Expand description

Error concealment for lost or corrupted video frames.

When a video frame is missing due to packet loss, decoding error, or transmission failure, the decoder must produce a substitute frame to maintain temporal continuity. This module provides simple and effective concealment strategies based on reference frame data.

§Strategies

  • Frame copy (conceal_missing_frame): Copies the previous reference frame verbatim. This is the simplest and fastest strategy; effective when motion between frames is small.
  • Temporal blend (conceal_blend): Blends between the previous and a fallback (e.g. grey or next available) frame at a configurable ratio.
  • Motion-compensated (conceal_motion_compensated): Applies a simple global translation offset to the previous frame, useful when a dominant camera-pan motion is known.

Functions§

conceal_blend
Conceal a missing frame by blending prev with a background colour.
conceal_missing_frame
Conceal a missing frame by copying the previous reference frame.
conceal_motion_compensated
Conceal a missing frame using a constant global motion offset.