CN108965881A - Bit rate control method, system, server and readable storage medium storing program for executing - Google Patents

Bit rate control method, system, server and readable storage medium storing program for executing Download PDF

Info

Publication number
CN108965881A
CN108965881A CN201710380087.3A CN201710380087A CN108965881A CN 108965881 A CN108965881 A CN 108965881A CN 201710380087 A CN201710380087 A CN 201710380087A CN 108965881 A CN108965881 A CN 108965881A
Authority
CN
China
Prior art keywords
frame image
code stream
code
current
practical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710380087.3A
Other languages
Chinese (zh)
Other versions
CN108965881B (en
Inventor
何德龙
张毅敏
池承利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuzhou Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201710380087.3A priority Critical patent/CN108965881B/en
Publication of CN108965881A publication Critical patent/CN108965881A/en
Application granted granted Critical
Publication of CN108965881B publication Critical patent/CN108965881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/96Tree coding, e.g. quad-tree coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention provides a kind of bit rate control method, system, server and readable storage medium storing program for executing, and the bit rate control method includes: the current macro that current frame image is obtained according to the practical code stream of practical code stream, current frame image and current frame image target code stream of previous frame image or the target code stream of code tree;The quantization parameter of the current macro or code tree quantizing process is obtained according to the target code stream of the current macro or code tree.The present invention is according to each macro block of previous frame or the actual code stream size of code tree, come guide the corresponding macro block of present frame or code tree target code stream size distribution, the accuracy of present frame code stream size, while computation complexity very little effectively are improved, and is easy to hardware realization.

Description

Bit rate control method, system, server and readable storage medium storing program for executing
Technical field
The present invention relates to field of image processings, are each macro block or coding tree unit point more particularly to video coding process Method and device with target bit rate, specially a kind of bit rate control method, system, server and readable storage medium storing program for executing.
Background technique
For network transmission, channel width be it is very limited, i.e., no second transmission code stream size have the upper limit, because The accuracy of this code rate control just will affect the stability and accuracy of network transmission.Current code rate control is asked there are some Topic, such as code rate control are accurate, and computation complexity is very big, and the code rate control that computation complexity is small, accuracy be not high.
Summary of the invention
In order to solve above-mentioned and other potential technical problems, the embodiment provides a kind of controls of code rate Method, the bit rate control method include: according to the practical code stream of practical code stream, current frame image of previous frame image and current Frame image object code stream obtains the current macro of current frame image or the target code stream of code tree;According to the current macro or volume The target code stream of code tree obtains the quantization parameter of the current macro or code tree quantizing process.
In one embodiment of the invention, the practical code stream of the current frame image and current frame image target code stream are obtained Take process are as follows: distribute target code stream for current frame image and obtain each macro block or the object code of code tree in current frame image Stream;Record the practical code stream of each macro block of current frame image or code tree;When the current frame image is not I frame image, point The current frame image in the current frame image until the upper macro block or code tree of current macro or code tree is not obtained Current frame image target code stream in practical code stream and the current frame image until current macro or code tree.
In one embodiment of the invention, the acquisition process of the practical code stream of the previous frame image are as follows: obtain previous frame Each macro block or the practical code stream of code tree in image;According to the actual code of each macro block or code tree in the previous frame image Stream obtains macro block corresponding with current macro in the current frame image or code tree or code tree in the previous frame image The practical corresponding code stream of previous frame image only;According to current frame image target code stream, previous frame image object code stream and institute State the practical code stream that practical correspondence code stream obtains previous frame image.
In one embodiment of the invention, the practical code stream of the previous frame image are as follows:
Wherein, Real_Bit2 is the practical code stream of previous frame image, and WTarget_Bit1 is the mesh of present frame whole image Coding stream, WTarget_Bit2 are the target code stream of previous frame whole image, and Real_Bit0 is to work as in previous frame image with described The practical corresponding code stream of previous frame image in prior image frame until current macro or the corresponding macro block of code tree or code tree.
In one embodiment of the invention, the practical code stream of practical code stream, current frame image according to previous frame image And current frame image target code stream obtains the current macro of current frame image or the target code stream of code tree specifically:
Curr_Mb_Bit=(Target_Bit × a+Real_Bit2 × b)-Real_Bit1;
Wherein, Curr_Mb_Bit is the target code stream of current macro or code tree, and Target_Bit is current frame image mesh Coding stream, Real_Bit1 are the practical code stream of current frame image, and Real_Bit2 is the practical code stream of previous frame image, and a, b are to adjust Integral coefficient.
In one embodiment of the invention, the value range of regulation coefficient a is 0~1, and the value range of regulation coefficient b is 0 ~1, and meet a+b=1.
The present embodiment also provides a kind of code rate control system, and the code rate control system includes: that code stream obtains module, is used for Present frame figure is obtained according to the practical code stream of practical code stream, current frame image of previous frame image and current frame image target code stream The current macro of picture or the target code stream of code tree;Quantization parameter obtains module, for according to the current macro or code tree Target code stream obtain the quantization parameter of the current macro or code tree quantizing process.
In one embodiment of the invention, it includes: allocation unit that the code stream, which obtains module, for dividing for current frame image With target code stream and obtain each macro block or the target code stream of code tree in current frame image;Recording unit, it is current for recording The each macro block of frame image or the practical code stream of code tree;The practical code stream unit of current frame image, in the current frame image When not being I frame image, obtain in the current frame image until the upper macro block or code tree of current macro or code tree The practical code stream of current frame image;Current frame image target code stream unit, for not being I frame image in the current frame image When, obtain the current frame image target code stream in the current frame image until current macro or code tree.
In one embodiment of the invention, the code stream obtains module further include: the practical code stream unit of previous frame image: For obtaining each macro block or the practical code stream of code tree in previous frame image, according to each macro block in the previous frame image or The practical code stream of code tree obtains corresponding with current macro in the current frame image or code tree in the previous frame image The practical corresponding code stream of previous frame image until macro block or code tree, and according to current frame image target code stream, previous frame figure As target code stream and the practical corresponding code stream obtain the practical code stream of previous frame image.
In one embodiment of the invention, the practical code stream unit of the previous frame image obtains upper one with specific reference to following formula The practical code stream of frame image:
Wherein, Real_Bit2 is the practical code stream of previous frame image, and WTarget_Bit1 is the mesh of present frame whole image Coding stream, WTarget_Bit2 are the target code stream of previous frame whole image, and Real_Bit0 is to work as in previous frame image with described The practical corresponding code stream of previous frame image in prior image frame until current macro or the corresponding macro block of code tree or code tree.
In one embodiment of the invention, the practical code stream of practical code stream, current frame image according to previous frame image And current frame image target code stream obtains the current macro of current frame image or the target code stream of code tree specifically:
Curr_Mb_Bit=(Target_Bit × a+Real_Bit2 × b)-Real_Bit1;
Wherein, Curr_Mb_Bit is the target code stream of current macro or code tree, and Target_Bit is current frame image mesh Coding stream, Real_Bit1 are the practical code stream of current frame image, and Real_Bit2 is the practical code stream of previous frame image, and a, b are to adjust Integral coefficient.
In this present embodiment, the value range of regulation coefficient a is 0~1, and the value range of regulation coefficient b is 0~1, and full Sufficient a+b=1.
The embodiment of the present invention also provides a kind of server, including processor and memory, and the memory is stored with journey Sequence instruction, the processor operation program instruction realize the step in method as described above.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, special Sign is that the program realizes the step in method as described above when being executed by processor.
As described above, bit rate control method of the invention, system, server and readable storage medium storing program for executing have below beneficial to effect Fruit:
The present invention is according to each macro block of previous frame or the actual code stream size of code tree, to guide present frame corresponding macro The distribution of the target code stream size of block or code tree effectively improves the accuracy of present frame code stream size, while calculating multiple Miscellaneous degree very little, and it is easy to hardware realization.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is shown as the flow diagram of bit rate control method of the invention.
Fig. 2 is shown as the practical code stream of current frame image and current frame image object code in bit rate control method of the invention The acquisition process flow diagram of stream.
The process that Fig. 3 is shown as the acquisition process of the practical code stream of previous frame image in bit rate control method of the invention is shown It is intended to.
Fig. 4 is shown as the functional block diagram of code rate control system of the invention.
Fig. 5 is shown as the functional block diagram that code stream in code rate control system of the invention obtains module.
Component label instructions
1 code rate control system
10 code streams obtain module
110 allocation units
120 recording units
The practical code stream unit of 130 current frame images
140 current frame image target code stream units
The practical code stream unit of 150 previous frame images
20 quantization parameters obtain module
S100~S200 step
S111~S114 step
S121~S123 step
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation Feature in example can be combined with each other.
Fig. 1 is please referred to Fig. 5.It should be clear that this specification structure depicted in this specification institute accompanying drawings, ratio, size etc., only to Cooperate the revealed content of specification, so that those skilled in the art understands and reads, being not intended to limit the invention can be real The qualifications applied, therefore do not have technical essential meaning, the tune of the modification of any structure, the change of proportionate relationship or size It is whole, in the case where not influencing the effect of present invention can be generated and the purpose that can reach, it should all still fall in disclosed skill Art content obtains in the range of capable of covering.Meanwhile in this specification it is cited as "upper", "lower", "left", "right", " centre " and The term of " one " etc. is merely convenient to being illustrated for narration, rather than to limit the scope of the invention, relativeness It is altered or modified, under the content of no substantial changes in technology, when being also considered as the enforceable scope of the present invention.
The purpose of the present embodiment is that providing a kind of bit rate control method, system, server and readable storage medium storing program for executing, it is used for Solve the problems, such as that code rate control unit is accurate in the prior art, complexity is big.Code rate controlling party of the invention described in detail below Method, system, the principle and embodiment of server and readable storage medium storing program for executing, make those skilled in the art not need creative work It is appreciated that bit rate control method of the invention, system, server and readable storage medium storing program for executing.
The present embodiment is directed to the defect of current code rate control, proposes one convenient for hard-wired macro block (MB) or encodes Set the code rate control of unit (CTU) grade.Wherein, macro block is H.264 defined in agreement, and code tree is H.265 fixed in agreement Justice, during transmission of video images, all images are divided into macro block or code tree in video sequence, are then compressed again Coding.The present embodiment passes through the code stream size of each MB or CTU in record previous frame, then is used to that present frame is guided to correspond to MB Or the Bit allocation of CTU.Through this embodiment, the code stream size that can reasonably distribute present frame each MB or CTU, to improve Accuracy (i.e. object code of the obtained code stream size of present frame actual coding with distributing to present frame of the code stream size of present frame It is closer to flow size), and then promote the efficiency of transmission of network layer.
Embodiment 1
Specifically, as shown in Figure 1, present embodiments providing a kind of bit rate control method, the bit rate control method includes:
Step S100, according to the practical code stream of practical code stream, current frame image and current frame image mesh of previous frame image Coding stream obtains the current macro of current frame image or the target code stream of code tree.
Step S200 obtains the current macro or code tree amount according to the target code stream of the current macro or code tree The quantization parameter of change process.
Step S100~step S200 in the bit rate control method described in the present embodiment is described in detail below.
Step S100, according to the practical code stream of practical code stream, current frame image and current frame image mesh of previous frame image Coding stream obtains the current macro of current frame image or the target code stream of code tree.
Wherein, in this present embodiment, as shown in Fig. 2, the practical code stream of the current frame image and current frame image target The acquisition process of code stream comprises the steps of:
Step S111 is that current frame image distributes target code stream and obtains each macro block or code tree in current frame image Target code stream.
The practical code stream of step S112, each macro block of record current frame image or code tree.
Step S113 judges whether the current frame image is I frame image, if it is not, then then executing step S114, respectively The current frame image obtained in the current frame image until the upper macro block or code tree of current macro or code tree is real Current frame image target code stream in border code stream and the current frame image until current macro or code tree;It is no to be, then it returns Step S112 is returned, the practical code stream for recording each macro block of current frame image or code tree is continued.
Wherein, I frame image, that is, Intra frame image, I frame is key frame, belongs to frame data compression, and when decoding only needs this frame number According to can complete.If current frame image is I frame image, continue the practical code stream of each macro block of current frame image or code tree, Without necessarily referring to each macro block of each of former frame or code tree code stream.
Current macro or code tree are in the 10th position in step S113, such as in current frame image, then described to work as The practical code stream of prior image frame is the sum of 1 to 9 macro block or the practical code stream of code tree in current frame image, the current frame image Target code stream is the sum of 1~10 macro block or the target code stream of code tree in current frame image.
In this present embodiment, as shown in figure 3, the acquisition process of the practical code stream of the previous frame image includes following step It is rapid:
Step S121 obtains each macro block or the practical code stream of code tree in previous frame image.
Step S122 obtains the previous frame according to each macro block in the previous frame image or the practical code stream of code tree Previous frame image in image until macro block corresponding with current macro in the current frame image or code tree or code tree Practical corresponding code stream.
Such as current macro or code tree are in the 10th position in current frame image, then the reality of the previous frame image Corresponding code stream is 1~10 macro block or the practical code stream of code tree in previous frame image.
Step S123, according to current frame image target code stream, previous frame image object code stream and the practical correspondence code Stream obtains the practical code stream of previous frame image.
Wherein, in this present embodiment, the practical code stream of the previous frame image specifically:
Wherein, Real_Bit2 is the practical code stream of previous frame image, and WTarget_Bit1 is the mesh of present frame whole image Coding stream, WTarget_Bit2 are the target code stream of previous frame whole image, and Real_Bit0 is to work as in previous frame image with described The practical corresponding code stream of previous frame image in prior image frame until current macro or the corresponding macro block of code tree or code tree.
In this present embodiment, the practical code stream of practical code stream, current frame image according to previous frame image and current Frame image object code stream obtains the current macro of current frame image or the target code stream of code tree specifically:
Curr_Mb_Bit=(Target_Bit × a+Real_Bit2 × b)-Real_Bit1;
Wherein, Curr_Mb_Bit is the target code stream of current macro or code tree, and Target_Bit is current frame image mesh Coding stream, Real_Bit1 are the practical code stream of current frame image, and Real_Bit2 is the practical code stream of previous frame image, and a, b are to adjust Integral coefficient, wherein the value range of regulation coefficient a is 0~1, and the value range of regulation coefficient b is 0~1, and meets a+b=1, For example, regulation coefficient a is 0.6, regulation coefficient b is 0.4
Step S200 obtains the current macro or code tree according to the target code stream of the current macro or code tree Quantization parameter.
Wherein, rate control module can distribute the quantization parameter QP of frame level for frame image every in video sequence, according to this reality Example is applied to each macro block or coding tree unit distribution target code stream size in every frame image, further according to the target code stream size with The deviant qp_delta of the quantization parameter QP of each macro block or coding tree unit is calculated in pre-set threshold value comparison, from And obtain the quantization parameter QP_MB=QP+qp_delta of current macro or coding tree unit.
The embodiment of the present invention also provides a kind of server, including processor and memory, and the memory is stored with journey Sequence instruction, the processor operation program instruction realize the step in method as described above.Details are not described herein.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, special Sign is that the program realizes the step in method as described above when being executed by processor.Details are not described herein.
Embodiment 2
As shown in figure 4, the code rate control system 1 includes: that code stream obtains the present embodiment provides a kind of code rate control system 1 Modulus block 10 and quantization parameter obtain module 20.
Below to the code stream in the code rate control system 1 of the present embodiment obtain module 10 and quantization parameter obtain module 20 into Row is described in detail.
In this present embodiment, the code stream obtains module 10 for practical code stream, the present frame figure according to previous frame image As practical code stream and current frame image target code stream obtain the current macro of current frame image or the target code stream of code tree.
Specifically, as shown in figure 5, in this present embodiment, it includes: allocation unit 110 that the code stream, which obtains module 10, record Unit 120, the practical code stream unit 130 of current frame image and current frame image target code stream unit 140.
The allocation unit 110 is used to distribute target code stream for current frame image and obtains each macro block in current frame image Or the target code stream of code tree.
The recording unit 120 is used to record the practical code stream of each macro block of current frame image or code tree.
The practical code stream unit 130 of current frame image is used for when the current frame image is not I frame image, obtains institute State the practical code stream of current frame image in current frame image until the upper macro block or code tree of current macro or code tree.
Such as current macro or code tree are in the 10th position in current frame image, then the current frame image actual code Stream is the sum of 1 to 9 macro block or the practical code stream of code tree in current frame image.
The current frame image target code stream unit 140 is used for when the current frame image is not I frame image, obtains institute State the current frame image target code stream in current frame image until current macro or code tree.
Such as current macro or code tree are in the 10th position, the current frame image target code stream in current frame image For the sum of 1~10 macro block or the target code stream of code tree in current frame image.
Wherein, I frame image, that is, Intra frame image, belongs to frame data compression, and when decoding only needs this frame data complete At.If current frame image is I frame image, when calculating the target code stream of current macro or coding tree unit, without necessarily referring to before Each macro block of one frame or the code stream of code tree.
In this present embodiment, as shown in figure 5, the code stream obtains module 10 further include: the practical code stream of previous frame image Unit 150: for obtaining each macro block or the practical code stream of code tree in previous frame image, according in the previous frame image Each macro block or the practical code stream of code tree obtain in the previous frame image with current macro or volume in the current frame image The practical corresponding code stream of previous frame image until the corresponding macro block of code tree or code tree, and according to current frame image object code Stream, previous frame image object code stream and the practical corresponding code stream obtain the practical code stream of previous frame image.
Such as current macro or code tree are in the 10th position in current frame image, then the reality of the previous frame image Corresponding code stream is 1~10 macro block or the practical code stream of code tree in previous frame image.
In this present embodiment, the practical code stream unit 150 of the previous frame image obtains previous frame figure with specific reference to following formula The practical code stream of picture:
Wherein, Real_Bit2 is the practical code stream of previous frame image, and WTarget_Bit1 is the mesh of present frame whole image Coding stream, WTarget_Bit2 are the target code stream of previous frame whole image, and Real_Bit0 is to work as in previous frame image with described The practical corresponding code stream of previous frame image in prior image frame until current macro or the corresponding macro block of code tree or code tree.
In this present embodiment, the practical code stream of practical code stream, current frame image according to previous frame image and current Frame image object code stream obtains the current macro of current frame image or the target code stream of code tree specifically:
Curr_Mb_Bit=(Target_Bit × a+Real_Bit2 × b)-Real_Bit1;
Wherein, Curr_Mb_Bit is the target code stream of current macro or code tree, and Target_Bit is current frame image mesh Coding stream, Real_Bit1 are the practical code stream of current frame image, and Real_Bit2 is the practical code stream of previous frame image, and a, b are to adjust Integral coefficient.
Wherein, the value range of the regulation coefficient a is 0~1, and the value range of regulation coefficient b is 0~1, and meets a+ B=1, for example, regulation coefficient a is 0.6, regulation coefficient b is 0.4.
In this present embodiment, the quantization parameter obtains module 20 for the target according to the current macro or code tree Code stream obtains the quantization parameter of the current macro or code tree quantizing process.
Wherein, rate control module can distribute the quantization parameter QP of frame level for frame image every in video sequence, according to this reality Example is applied to each macro block or coding tree unit distribution target code stream size in every frame image, further according to the target code stream size with The deviant qp_delta of the quantization parameter QP of each macro block or coding tree unit is calculated in pre-set threshold value comparison, from And obtain the quantization parameter QP_MB=QP+qp_delta of current macro or coding tree unit.
In conclusion the present invention of the embodiment of the present invention is big according to each macro block of previous frame or the actual code stream of code tree It is small, come guide the corresponding macro block of present frame or code tree target code stream size distribution, effectively improve present frame code stream The accuracy of size, while computation complexity very little, and it is easy to hardware realization.So the present invention effectively overcomes the prior art In various shortcoming and have high industrial utilization value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause This, includes that institute is complete without departing from the spirit and technical ideas disclosed in the present invention for usual skill in technical field such as At all equivalent modifications or change, should be covered by the claims of the present invention.

Claims (14)

1. a kind of bit rate control method, which is characterized in that the bit rate control method includes:
It is obtained according to the practical code stream of practical code stream, current frame image of previous frame image and current frame image target code stream current The current macro of frame image or the target code stream of code tree;
The quantization of the current macro or code tree quantizing process is obtained according to the target code stream of the current macro or code tree Parameter.
2. bit rate control method according to claim 1, which is characterized in that the practical code stream of the current frame image and work as The acquisition process of prior image frame target code stream are as follows:
Target code stream is distributed for current frame image and obtains each macro block or the target code stream of code tree in current frame image;
Record the practical code stream of each macro block of current frame image or code tree;
When the current frame image is not I frame image, obtained in the current frame image respectively to current macro or code tree A upper macro block or code tree until the practical code stream of current frame image and the current frame image in arrive current macro or volume Current frame image target code stream until code tree.
3. bit rate control method according to claim 2, which is characterized in that the practical code stream of the previous frame image obtains Take process are as follows:
Obtain each macro block or the practical code stream of code tree in previous frame image;
According to each macro block in the previous frame image or the practical code stream of code tree obtain in the previous frame image with it is described The practical corresponding code stream of previous frame image in current frame image until current macro or the corresponding macro block of code tree or code tree;
Previous frame figure is obtained according to current frame image target code stream, previous frame image object code stream and the practical corresponding code stream The practical code stream of picture.
4. bit rate control method according to claim 3, which is characterized in that the practical code stream of the previous frame image are as follows:
Wherein, Real_Bit2 is the practical code stream of previous frame image, and WTarget_Bit1 is the object code of present frame whole image Stream, WTarget_Bit2 be previous frame whole image target code stream, Real_Bit0 be previous frame image in the present frame The practical corresponding code stream of previous frame image in image until current macro or the corresponding macro block of code tree or code tree.
5. bit rate control method according to claim 4, which is characterized in that the actual code according to previous frame image Stream, the practical code stream of current frame image and current frame image target code stream obtain current macro or the code tree of current frame image Target code stream specifically:
Curr_Mb_Bit=(Target_Bit × a+Real_Bit2 × b)-Real_Bit1;
Wherein, Curr_Mb_Bit is the target code stream of current macro or code tree, and Target_Bit is current frame image object code Stream, Real_Bit1 are the practical code stream of current frame image, and Real_Bit2 is the practical code stream of previous frame image, and a, b are adjustment system Number.
6. bit rate control method according to claim 5, which is characterized in that the value range of regulation coefficient a is 0~1, is adjusted The value range of integral coefficient b is 0~1, and meets a+b=1.
7. a kind of code rate control system, which is characterized in that the code rate control system includes:
Code stream obtains module, for the practical code stream of practical code stream, current frame image and present frame figure according to previous frame image The current macro of current frame image or the target code stream of code tree are obtained as target code stream;
Quantization parameter obtains module, for according to the target code stream of the current macro or code tree obtain the current macro or The quantization parameter of code tree quantizing process.
8. code rate control system according to claim 7, which is characterized in that the code stream obtains module and includes:
Allocation unit, for distributing target code stream for current frame image and obtaining each macro block in current frame image or code tree Target code stream;
Recording unit, for recording the practical code stream of each macro block of current frame image or code tree;
The practical code stream unit of current frame image, for obtaining the present frame figure when the current frame image is not I frame image The practical code stream of current frame image as in until the upper macro block or code tree of current macro or code tree;
Current frame image target code stream unit, for obtaining the present frame figure when the current frame image is not I frame image Current frame image target code stream as in until current macro or code tree.
9. code rate control system according to claim 8, which is characterized in that the code stream obtains module further include:
The practical code stream unit of previous frame image: for obtaining each macro block or the practical code stream of code tree in previous frame image, According to each macro block in the previous frame image or the practical code stream of code tree obtain in the previous frame image with it is described current The practical corresponding code stream of previous frame image in frame image until current macro or the corresponding macro block of code tree or code tree, and root The reality of previous frame image is obtained according to current frame image target code stream, previous frame image object code stream and the practical corresponding code stream Border code stream.
10. code rate control system according to claim 9, which is characterized in that the practical code stream list of the previous frame image Member obtains the practical code stream of previous frame image with specific reference to following formula:
Wherein, Real_Bit2 is the practical code stream of previous frame image, and WTarget_Bit1 is the object code of present frame whole image Stream, WTarget_Bit2 be previous frame whole image target code stream, Real_Bit0 be previous frame image in the present frame The practical corresponding code stream of previous frame image in image until current macro or the corresponding macro block of code tree or code tree.
11. code rate control system according to claim 10, which is characterized in that the actual code according to previous frame image Stream, the practical code stream of current frame image and current frame image target code stream obtain current macro or the code tree of current frame image Target code stream specifically:
Curr_Mb_Bit=(Target_Bit × a+Real_Bit2 × b)-Real_Bit1;
Wherein, Curr_Mb_Bit is the target code stream of current macro or code tree, and Target_Bit is current frame image object code Stream, Real_Bit1 are the practical code stream of current frame image, and Real_Bit2 is the practical code stream of previous frame image, and a, b are adjustment system Number.
12. code rate control system according to claim 11, which is characterized in that the value range of regulation coefficient a is 0~1, The value range of regulation coefficient b is 0~1, and meets a+b=1.
13. a kind of server, including processor and memory, the memory are stored with program instruction, which is characterized in that described Processor runs step of the program instruction realization in the method as described in claim 1 to 6 any claim.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step in the method as described in claim 1 to 6 any claim is realized when execution.
CN201710380087.3A 2017-05-25 2017-05-25 Code rate control method, system, server and readable storage medium Active CN108965881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710380087.3A CN108965881B (en) 2017-05-25 2017-05-25 Code rate control method, system, server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710380087.3A CN108965881B (en) 2017-05-25 2017-05-25 Code rate control method, system, server and readable storage medium

Publications (2)

Publication Number Publication Date
CN108965881A true CN108965881A (en) 2018-12-07
CN108965881B CN108965881B (en) 2020-08-14

Family

ID=64494400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710380087.3A Active CN108965881B (en) 2017-05-25 2017-05-25 Code rate control method, system, server and readable storage medium

Country Status (1)

Country Link
CN (1) CN108965881B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953978A (en) * 2020-07-07 2020-11-17 西安万像电子科技有限公司 Frame rate control method, device and storage medium
CN112188208A (en) * 2020-09-18 2021-01-05 浙江大华技术股份有限公司 Macro block level code rate control method and related device
CN112312136A (en) * 2020-09-25 2021-02-02 西安万像电子科技有限公司 Code stream control method and device
CN114501015A (en) * 2022-04-06 2022-05-13 杭州未名信科科技有限公司 Video coding rate processing method and device, storage medium and electronic equipment
CN115278309A (en) * 2022-09-27 2022-11-01 海马云(天津)信息技术有限公司 Cloud application rendering video frame processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6263020B1 (en) * 1996-12-24 2001-07-17 Intel Corporation Method and apparatus for bit rate control in a digital video system
CN101159871A (en) * 2007-11-12 2008-04-09 中兴通讯股份有限公司 Macro block group video code rate control method
CN101217656A (en) * 2008-01-03 2008-07-09 上海广电(集团)有限公司中央研究院 A constant code rate control method based on mobile TV
CN106658010A (en) * 2016-12-09 2017-05-10 深圳市云宙多媒体技术有限公司 HEVC self-adaption video rate control method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6263020B1 (en) * 1996-12-24 2001-07-17 Intel Corporation Method and apparatus for bit rate control in a digital video system
CN101159871A (en) * 2007-11-12 2008-04-09 中兴通讯股份有限公司 Macro block group video code rate control method
CN101217656A (en) * 2008-01-03 2008-07-09 上海广电(集团)有限公司中央研究院 A constant code rate control method based on mobile TV
CN106658010A (en) * 2016-12-09 2017-05-10 深圳市云宙多媒体技术有限公司 HEVC self-adaption video rate control method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953978A (en) * 2020-07-07 2020-11-17 西安万像电子科技有限公司 Frame rate control method, device and storage medium
CN112188208A (en) * 2020-09-18 2021-01-05 浙江大华技术股份有限公司 Macro block level code rate control method and related device
CN112188208B (en) * 2020-09-18 2022-08-09 浙江大华技术股份有限公司 Macro block level code rate control method and related device
CN112312136A (en) * 2020-09-25 2021-02-02 西安万像电子科技有限公司 Code stream control method and device
CN112312136B (en) * 2020-09-25 2024-05-17 西安万像电子科技有限公司 Code stream control method and device
CN114501015A (en) * 2022-04-06 2022-05-13 杭州未名信科科技有限公司 Video coding rate processing method and device, storage medium and electronic equipment
CN114501015B (en) * 2022-04-06 2022-09-02 杭州未名信科科技有限公司 Video coding rate processing method and device, storage medium and electronic equipment
CN115278309A (en) * 2022-09-27 2022-11-01 海马云(天津)信息技术有限公司 Cloud application rendering video frame processing method and device

Also Published As

Publication number Publication date
CN108965881B (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN108965881A (en) Bit rate control method, system, server and readable storage medium storing program for executing
CN103561266B (en) The bit rate control method distributed based on logarithm R-Q model and stratification bit
CN101795415B (en) Method and device for controlling code rate in video coding
US6687294B2 (en) Distortion quantizer model for video encoding
CN109076212A (en) The method and code device of code rate control
CN110876060B (en) Code rate adjusting method and device in coding process
CN111182637A (en) Wireless network resource allocation method based on generation countermeasure reinforcement learning
CN110418177A (en) Method for video coding, device, equipment and storage medium
WO2021169392A1 (en) Video data processing method and apparatus, device, and readable storage medium
CN114900692A (en) Video stream frame rate adjusting method and device, equipment, medium and product thereof
US7929603B2 (en) System and method for accurate rate control for video compression
CN114040257B (en) Self-adaptive video stream transmission playing method, device, equipment and storage medium
CN114638344A (en) Model quantization method and related device
CN112104867B (en) Video processing method, video processing device, intelligent equipment and storage medium
CN115701709A (en) Video coding method and device, computer readable medium and electronic equipment
CN101420601B (en) Method and device for code rate control in video coding
CN117202265A (en) DQN-based service migration method in edge environment
Huang et al. Digital twin-assisted collaborative transcoding for better user satisfaction in live streaming
Erfanian et al. Cd-lwte: Cost-and delay-aware light-weight transcoding at the edge
CN115834924B (en) Interactive video-oriented loose coupling coding code rate-transmission rate adjusting method
CN115983349A (en) Method and device for quantizing convolutional neural network, electronic device and storage medium
CN104702974A (en) Rate control method based on fuzzy logic and video coding method
CN112243129B (en) Video data processing method and device, computer equipment and storage medium
CN116095355B (en) Video display control method and device, equipment, medium and product thereof
CN114513664B (en) Video frame encoding method and device, intelligent terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Applicant after: Ruixin Microelectronics Co., Ltd

Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Applicant before: Fuzhou Rockchips Electronics Co.,Ltd.

GR01 Patent grant
GR01 Patent grant