A video coding method, wherein the method comprises: obtaining, by a computer device, a current video frame to be coded, and obtaining a predicted residual of a reference video frame of the current video frame in a case that the current video frame is an inter prediction frame, wherein the predicted residual of the reference video frame is obtained by calculating a pixel predicted residual of each pixel and then adding up absolute values of the pixel predicted residuals of all the pixels, the pixel predicted residual equals a difference between an actual pixel value and a predicted pixel value, the actual pixel value refers to an original pixel value of an image, the predicted pixel value refers to a predicted pixel value that corresponds to an original pixel and that is obtained according to an inter prediction or intra-frame prediction algorithm, and the reference video frame is a video frame that has been coded before the current video frame; determining, by the computer device, a quantization parameter threshold corresponding to the current video frame according to the predicted residual of the reference video frame, wherein when the predicted residual is greater than or equal to a predicted residual reference value, a first quantization parameter is used as the quantization parameter threshold, and when the predicted residual is less than the preset predicted residual reference value, a second quantization parameter is used as the quantization parameter threshold, where the first quantization parameter is less than the second quantization parameter; obtaining, by the computer device, a quantization parameter estimated value corresponding to the current video frame; selecting, by the computer device, a target coding mode from candidate coding modes according to the quantization parameter estimated value and the quantization parameter threshold, the candidate coding modes comprising a down-sampling mode and a full resolution mode, wherein when the quantization parameter estimated value is greater than the quantization parameter threshold, it is indicated that the current video frame does not require high resolution, and the down-sampling mode is selected; and coding, by the computer device, the current video frame according to the target coding mode. obtaining, by a computer device, a current video frame to be coded, and obtaining a predicted residual of a reference video frame of the current video frame in a case that the current video frame is an inter prediction frame, wherein the predicted residual of the reference video frame is obtained by calculating a pixel predicted residual of each pixel and then adding up absolute values of the pixel predicted residuals of all the pixels, the pixel predicted residual equals a difference between an actual pixel value and a predicted pixel value, the actual pixel value refers to an original pixel value of an image, the predicted pixel value refers to a predicted pixel value that corresponds to an original pixel and that is obtained according to an inter prediction or intra-frame prediction algorithm, and the reference video frame is a video frame that has been coded before the current video frame; determining, by the computer device, a quantization parameter threshold corresponding to the current video frame according to the predicted residual of the reference video frame, wherein when the predicted residual is greater than or equal to a predicted residual reference value, a first quantization parameter is used as the quantization parameter threshold, and when the predicted residual is less than the preset predicted residual reference value, a second quantization parameter is used as the quantization parameter threshold, where the first quantization parameter is less than the second quantization parameter; obtaining, by the computer device, a quantization parameter estimated value corresponding to the current video frame; selecting, by the computer device, a target coding mode from candidate coding modes according to the quantization parameter estimated value and the quantization parameter threshold, the candidate coding modes comprising a down-sampling mode and a full resolution mode, wherein when the quantization parameter estimated value is greater than the quantization parameter threshold, it is indicated that the current video frame does not require high resolution, and the down-sampling mode is selected; and coding, by the computer device, the current video frame according to the target coding mode.