Bit rate allocation method and device, and storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsXunan Mao, Chenchen Gu, Yongfang Shi, Anlin Gao
Life of this patent
Estimating the term…
Abstract
A bit rate allocation method is provided for a bit rate allocation device. The method includes obtaining an intra prediction frame (I-frame) of a to-be-encoded video, and obtaining a bit-rate characteristic parameters associated with the I-frame. The bit-rate characteristic parameters include a number of video frames in a group-of-picture (GOP) in which the I-frame is located, a pixel number of the I-frame, and a proportion of an inter prediction macroblock in a historical inter prediction frame (P-frame) before the I-frame. The method also includes determining an allocated bit rate of the I-frame according to each bit-rate characteristic parameter.
Claims19
A bit rate allocation method, comprising:
- obtaining, by a computing device having an encoding function, an intra prediction frame (I-frame) of a to-be-encoded video;
- extracting, by a processor of the computing device, bit-rate characteristic parameters associated with the I-frame from the to-be-encoded video, the bit-rate characteristic parameters including a number of video frames in a group-of-picture (GOP) in which the I-frame is located, a pixel number of the I-frame, and a proportion of an inter prediction macroblock in a historical inter prediction frame (P-frame) before the I-frame;
- determining, by the computing device, an allocated bit rate of the I-frame according to each of the extracted bit-rate characteristic parameters based on a predetermined bit rate control scheme;
- and
- encoding, by the computing device, the I-frame of the video based on the allocated bit rate of the I-frame, wherein precise allocation of the bit rate to the I-frame ensures file quality of the video when being used in video compression or transmission scenarios.
A non-transitory computer-readable storage medium storing computer program instructions executable by at least one processor of a computing device having an encoding function to perform:
- obtaining an intra prediction frame (I-frame) of a to-be-encoded video;
- extracting bit-rate characteristic parameters associated with the I-frame from the to-be-encoded video, the bit-rate characteristic parameters including a number of video frames in a group-of-picture (GOP) in which the I-frame is located, a pixel number of the I-frame, and a proportion of an inter prediction macroblock in a historical inter prediction frame (P-frame) before the I-frame;
- and
- determining an allocated bit rate of the I-frame according to each of the extracted bit-rate characteristic parameters based on a predetermined bit rate control scheme;
- and
- encoding the I-frame of the video based on the allocated bit rate of the I-frame, wherein precise allocation of the bit rate to the I-frame ensures file quality of the video when being used in video compression or transmission scenarios.
A bit rate allocation device, comprising:
- a non-volatile memory storing machine-readable instructions;
- and
- a processor coupled to the non-volatile memory and, when executing the machine-readable instructions, configured for:
- obtaining an intra prediction frame (I-frame) of a to-be-encoded video;
- extracting a bit-rate characteristic parameters associated with the I-frame from the to-be-encoded video, the bit-rate characteristic parameters including a number of video frames in a group-of-picture (GOP) in which the I-frame is located, a pixel number of the I-frame, and a proportion of an inter prediction macroblock in a historical inter prediction frame (P-frame) before the I-frame;
- determining an allocated bit rate of the I-frame according to each of the extracted bit-rate characteristic parameters based on a predetermined bit rate control scheme;
- and
- encoding the I-frame of the video based on the allocated bit rate of the I-frame, wherein precise allocation of the bit rate to the I-frame ensures file quality of the video when being used in video compression or transmission scenarios.
Dependencies are inferred from the claim text.