The invention belongs to the field of multi-media communication, and in particular relates to a state
machine based dynamic
adaptive video transmission
code rate switching method. The state
machine based dynamic
adaptive video transmission
code rate switching method comprises the steps that: a
server side slices a stored video; each video clip has K
code rate grades; a
client side calculates the average code rate, the
mean square deviation and the average bandwidth of N video clips according to the newly downloaded N video clips; the code rate offset rate and the playing cache of the
client side when downloading of the kth video clip is completed are obtained; and, due to different ranges of the playing cache and different ranges of the code rate offset rate, code rate switching is carriedout according to a code rate
state switching formula. According to the state
machine based dynamic
adaptive video transmission code rate switching method disclosed by the invention, the contact between the video code rate and the numerical value change of an
influence factor is used as a state transition condition; on the premise that the playing cache and the code rate offset rate are a certainthreshold value, the code rate is switched to the code rate grade that the whole performances of the
video quality and the playing fluency are relatively best; and thus, better user viewing experienceis realized.