The invention discloses a streaming media transmission optimization method and
system, and the method comprises the following steps: S1, receiving streaming media data, carrying out the statistics of a streaming media
code rate, and carrying out the network bandwidth prediction through a Kalman filtering model; S2, carrying out
code rate estimation and prediction in a non-packet-loss input mode by using a streaming media
code rate and a network bandwidth prediction result; S3, performing bidirectional predictive code rate
verification on the round-trip time, the
packet loss rate and the code rate
estimation predicted value to obtain a sending end output code rate; and S4, according to the given code rate, outputting a corresponding streaming media code rate to carry out flow control. Network condition prediction suitable for wired and
wireless scenes is provided, real-time and rapid prediction of the current network rate is met, smooth transition of the code rate is guaranteed, streaming media playing is smoother, TCP friendliness is guaranteed in combination with the TFRC
algorithm, meanwhile, the video code rate under low bandwidth is guaranteed, the situation that the video is stuck and paused due to the fact that the
prediction rate is too low is reduced. The method is a congestion control solution based on streaming media transmission.