The invention provides a self-adaptive
forward error correction method for a real-time audio and video
stream transmission process, which can dynamically adjust error correction redundancy configuration according to the change of
network packet loss characteristics so as to improve the
data transmission reliability in a
complex network environment. Specifically, in a real-time transmission process, a sending end carries out long-term trend
estimation and short-time burst
estimation on
network packet loss by respectively adopting a
Kalman filtering algorithm and an exponential weighted
moving average algorithm based on a
packet loss rate measurement value fed back by a receiving end, and a dual-time-scale
packet loss prediction model is constructed. Meanwhile, the statistical fluctuation characteristics of the historical
packet loss rate are calculated, a dynamic safety redundancy boundary is introduced, and the redundancy adjustment process is smoothed in combination with a
hysteresis state control mechanism, so that frequent fluctuation is avoided. The method can reduce the redundancy overhead, improve the error correction capability and reduce the
packet loss rate in a complex and changeable network environment, is suitable for real-time audio and video
stream transmission under various
network conditions, and has good practicability and robustness.