The invention discloses a video live broadcast oriented
code rate self-adaption method based on a finite-state
machine. The method comprises the steps of bandwidth
estimation, preprocessing of historical
observation data through Klehman filtering, inter-frame differential denoising and improvement of bandwidth
estimation accuracy according to probability statistics and confidence confirmation. Buffer areas are graded, security buffer thresholds and danger buffer thresholds of different sizes are set for bandwidths of different levels, and the security buffer thresholds and the danger buffer thresholds are added into a
code rate decision mechanism of the state
machine; and time
delay control: a change trend of a future cache is obtained according to the current bandwidth and the selectioncode rate so as to dynamically adjust and determine a variable of a fast and slow playing threshold of the player. According to the method, available bandwidth is fully utilized from three aspects ofbandwidth
estimation, buffer area grading and time
delay control, video
switching frequency is reduced while
video quality maximization and low time
delay are guaranteed, video live broadcast smoothness is improved, watching experience of a user is greatly improved, and the method can be effectively applied to the fields of network video live broadcast and the like.