Code rate control method and apparatus, and electronic device

A code rate control and code rate technology, which is applied in the field of code rate control methods, devices and electronic equipment, can solve the problems of affecting the smoothness of streaming, increasing the code rate of video encoders, and failing to upload data in time

Active Publication Date: 2018-06-05
ALIBABA GRP HLDG LTD
View PDF9 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the scene shot suddenly changes when the QP value is reduced very low, and the difference between two frames becomes M again, since the QP value is currently Q2, the actual encoding bit rate of the vide

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code rate control method and apparatus, and electronic device
  • Code rate control method and apparatus, and electronic device
  • Code rate control method and apparatus, and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0110] Embodiment 1. A code rate control method, such as figure 1 As shown, including steps S110-S120:

[0111] S110. Obtain a QP threshold value corresponding to the target coding rate;

[0112] S120. When the actual coding rate is inconsistent with the target coding rate, adjust the QP value; if the adjusted QP value is smaller than the QP threshold value, set the QP value to the QP threshold value.

[0113]In this embodiment, the inconsistency between the actual encoding rate and the target encoding rate may refer to: the actual encoding rate is different from the target encoding rate, or the absolute value of the difference between the actual encoding rate and the target encoding rate is greater than the expected Set a threshold. When the actual encoding rate is adjusted by adjusting the QP value, the larger the QP value, the higher the compression rate, and the smaller the actual encoding rate; the smaller the QP value, the lower the compression rate, and the greater th...

Embodiment 2

[0166] Embodiment 2, a code rate control method, such as figure 2 As shown, including steps S210-S220:

[0167] S210. Obtain buffered data volume, data upload speed, and actual encoding rate;

[0168] S220. When the predetermined condition is met, determine the target encoding rate according to the acquired buffered data volume, data upload speed, and actual encoding rate.

[0169] For the implementation details of this embodiment, refer to the specific implementation details of steps S130 and S140 in an implementation manner of the first embodiment.

[0170] In an implementation manner, when the predetermined condition is met, determining the target encoding rate according to the acquired buffered data volume, data upload speed, and actual encoding rate may include:

[0171] When the amount of buffered data is greater than the preset threshold, if the data upload rate is lower than the actual encoding rate, then the target encoding rate is set to a first encoding rate less...

Embodiment 3

[0190] Embodiment 3, a code rate control device, such as image 3 shown, including:

[0191] Obtaining module 31, is used for obtaining the QP threshold value corresponding to target code rate;

[0192] Quantization parameter adjustment module 32, for when the actual code rate and the target code rate are inconsistent, adjust the QP value; if the adjusted QP value is less than the QP threshold value, then the QP value is set to the QP threshold value value.

[0193] In this embodiment, the obtaining module 31 is the part responsible for obtaining the QP threshold value in the above code rate control device, which may be software, hardware or a combination of both.

[0194] In this embodiment, the quantization parameter adjustment module 32 is the part responsible for adjusting the QP value in the code rate control device, which may be software, hardware or a combination of both.

[0195] In an implementation manner, the acquiring module acquiring the QP threshold value corr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a code rate control method and apparatus, and an electronic device. The code rate control method comprises the following steps: obtaining a quantization parameter QP threshold corresponding to a target coding rate; when the actual coding rate is inconsistent with the target coding rate, adjusting the QP value; and if the adjusted QP value is less than the QP threshold, setting the QP value as the QP threshold. By adoption of the code rate control method and apparatus provided by the invention, the smoothness of pushing flow can be ensured when the environment changes.

Description

technical field [0001] The present invention relates to the network field, in particular to a code rate control method, device and electronic equipment. Background technique [0002] In application scenarios such as webcasting and video chatting, the process of pushing audio and video data to the server can be called streaming, and the mobile terminal that performs streaming can be called a mobile streaming terminal, which generally includes a collection module, an encoder, and a network uploader. module; the acquisition module obtains the most original audio and video signals through the camera and microphone, and the encoder encodes these original audio and video signals (that is, compresses the original audio and video signals according to a certain method), and finally uploads them on the network The module is uploaded to the server. [0003] At present, bit rate control can be performed by pre-setting the target encoding bit rate of the encoder (that is, the expected e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04N19/124H04N19/152
CPCH04N19/124H04N19/152
Inventor 李正光陈石平
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products