Video encoding code rate control method, apparatus, and device, and storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsYaoyao Guo, Xunan Mao, Chenchen Gu
Life of this patent
Estimating the term…
Abstract
A video encoding code rate control method of a terminal device is provided. A space domain complexity and a time domain complexity of a first picture frame in a video stream are obtained. A first target bit of the first picture frame is updated to a second target bit according to the space domain complexity and the time domain complexity. A first initial quantization parameter of the first picture frame is updated to a second initial quantization parameter according to the space domain complexity and the time domain complexity. A compressed code stream of the first picture frame is generated according to the second target bit and the second initial quantization parameter.
Claims20
A video encoding code rate control method of a terminal device, the method comprising:
- obtaining, by processing circuitry of the terminal device, a space domain complexity and a time domain complexity of a first picture frame in a video stream;
- updating, by the processing circuitry, a first target bit of the first picture frame to a second target bit according to the space domain complexity and the time domain complexity;
- updating, by the processing circuitry, a first initial quantization parameter of the first picture frame to a second initial quantization parameter according to a ratio of the space domain complexity of the first picture frame and a space domain complexity of a second picture frame;
- and
- generating, by the processing circuitry, a compressed code stream of the first picture frame according to the second target bit and the second initial quantization parameter.
A video encoding code rate control apparatus, comprising:
- processing circuitry configured to
- obtain a space domain complexity and a time domain complexity of a first picture frame in a video stream,
- update a first target bit of the first picture frame to a second target bit according to the space domain complexity and the time domain complexity,
- update a first initial quantization parameter of the first picture frame to a second initial quantization parameter according to a ratio of the space domain complexity of the first picture frame and a space domain complexity of a second picture frame, and
- generate a compressed code stream of the first picture frame according to the second target bit and the second initial quantization parameter.
A non-transitory computer-readable storage medium storing instructions which when executed by a processor cause the processor to perform a video encoding code rate control method, the method comprising:
- obtaining a space domain complexity and a time domain complexity of a first picture frame in a video stream;
- updating a first target bit of the first picture frame to a second target bit according to the space domain complexity and the time domain complexity;
- updating a first initial quantization parameter of the first picture frame to a second initial quantization parameter according to a ratio of the space domain complexity of the first picture frame and a space domain complexity of a second picture frame;
- and
- generating a compressed code stream of the first picture frame according to the second target bit and the second initial quantization parameter.
Dependencies are inferred from the claim text.