Patent ID: 10560719

Abstract:
A video encoding and decoding method and apparatus are provided. The video encoding method includes: obtaining a first statistical characteristic of previous K frames of images of a video sequence; determining a first background frame; determining, according to the first statistical characteristic, a QP used for encoding the first background frame; encoding the first background frame according to the QP, to obtain a first background long-term reference frame; and encoding the (K+1)th frame of image of the video sequence to the (K+L)th frame of image of the video sequence according to the first background long-term reference frame. When encoding is performed on the (K+1)th frame of image of the video sequence to the (K+L)th frame of image of the video sequence, the used QP for encoding the background long-term reference frame is determined according to the first statistical characteristic related to video content of the previous K frames of images.