The invention provides a
video encoding method. The
video encoding method comprises respectively determining
rate distortion cost of at least two kinds of encoding
modes, and choosing an encoding mode according to the
rate distortion cost, wherein the operation of determining the
rate distortion cost comprises acquiring
macro block
distortion quantity according to space-time similarity measurement between an original
macro block and a reconstructed
macro block in a video, acquiring a
Lagrange multiplier according to a relation model of an encoding rate and the macro block
distortion quantity, and determining corresponding rate
distortion cost of the encoding mode according to the encoding rate, the macro block distortion quantity and the
Lagrange multiplier. Due to the facts that the macro block distortion quantity determined by the
video encoding method conforms to
visual distortion sensitivity of human eyes and the
Lagrange multiplier is acquired through accurate relation model, so that the rate distortion cost determined can truly reflect whether the encoding mode is suitable for a current video frame of a
video sequence or not, therefore the encoding mode suitable for the video can be determined accurately, and watching effect of the video after the encoding is used is in a good status.