CN106658027A - Background frame code rate control method and device - Google Patents

Background frame code rate control method and device Download PDF

Info

Publication number
CN106658027A
CN106658027A CN201611066195.5A CN201611066195A CN106658027A CN 106658027 A CN106658027 A CN 106658027A CN 201611066195 A CN201611066195 A CN 201611066195A CN 106658027 A CN106658027 A CN 106658027A
Authority
CN
China
Prior art keywords
encoded
zones
different
frames
background frames
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
CN201611066195.5A
Other languages
Chinese (zh)
Other versions
CN106658027B (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.)
Peking University
Beijing Institute of Technology BIT
Original Assignee
Peking University
Beijing Institute of Technology BIT
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 Peking University, Beijing Institute of Technology BIT filed Critical Peking University
Priority to CN201611066195.5A priority Critical patent/CN106658027B/en
Publication of CN106658027A publication Critical patent/CN106658027A/en
Application granted granted Critical
Publication of CN106658027B publication Critical patent/CN106658027B/en
Expired - Fee Related 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/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • 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/172Methods 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 picture, frame or field
    • 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/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/19Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding using optimisation based on Lagrange multipliers
    • 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

Abstract

An embodiment of the invention provides a background frame code rate control method and device. The method includes judging predication reference values of different zones of a to-be-coded background frame, wherein the predication reference values are predicated reference values of different zones of the to-be-coded background frame to a to-be-coded common frame during inter-frame prediction; according to the predication reference values, setting the importance levels of the different zones of the to-be-coded background frame; according to the importance levels of the different zones, adjusting the coding quality of the different zones of the to-be-coded background frame. According to the invention, through changing the coding quality of the zones with different reference values of the background frame, a problem of instantaneous code rate surge in a video transmission process is solved effectively and the reference value of the background frame is ensured to the best.

Description

The bit rate control method and device of background frames
Technical field
The present invention relates to the encoding and decoding technique field of digital video, more particularly to a kind of bit rate control method of background frames and Device.
Background technology
In recent years, various monitor video coding methods based on background modeling are suggested, and effectively reduce Video coding Background redundancy, has been obviously improved coding efficiency.In order that background frames play more preferable prediction reference effect to subsequent frame coding, build The background frames that mould is obtained often are incorporated into code stream with better quality.Therefore, the bit number of background frames is significantly greater than common coded frame Bit number, cause instantaneous code check to uprush, buffer overflow, rebuild background frames also cannot be referenced.
In actual video coding application, needs carry out Rate Control to whole sequence to meet the demand of transmission bandwidth, code The monitor video coding method code stream based on background modeling under rate control is steady, but largely reducing background frames reference tape Performance, or even there is performance loss.And the prediction reference value in not all region is all identical in background frames.
The content of the invention
The embodiment provides the bit rate control method and device of a kind of background frames, efficiently solve transmission of video During instantaneous code check uprush problem, and ensure that the reference value of background frames as far as possible.
To achieve these goals, this invention takes following technical scheme.
A kind of bit rate control method of background frames, including:
Judge the prediction reference value of the zones of different of background frames to be encoded, prediction reference value the entering for prediction Reference value of the zones of different of background frames to be encoded to normal frames to be encoded during row inter prediction;
It is worth according to the prediction reference, sets the importance information of the zones of different of the background frames to be encoded;
According to the importance information of the zones of different, the coding matter of the zones of different of the background frames to be encoded is adjusted Amount.
The step of prediction reference of the zones of different for judging background frames to be encoded is worth includes:
Statistics carries out the ginseng of the encoded normal frames of predetermined number during inter prediction to the zones of different of encoded background frames Examine number of times;
According to reference number of times of the encoded normal frames to the zones of different of encoded background frames, background to be encoded is judged The prediction reference value of the corresponding region of frame.
The reference number of times according to the encoded normal frames to the zones of different of encoded background frames, judges to be encoded The step of prediction reference of the corresponding region of background frames is worth includes:
The encoded normal frames are more to the reference number of times in the region of encoded background frames, then be judged to:The back of the body to be encoded The prediction reference value of the corresponding region of scape frame is bigger.
The step of prediction reference of the zones of different for judging background frames to be encoded is worth includes:
During background modeling, the to be encoded common frame sequence of predetermined quantity is obtained;
Calculate the absolute value of the difference of the same site pixel value of adjacent normal frames in the common frame sequence;
The absolute value and threshold value of the difference are compared;
If the absolute value of the difference is less than the threshold value, then it represents that the co-located pixels value changes of the adjacent normal frames Less, the probability that prospect is passed through is less, then be not segmented;Otherwise, to the common frame sequence at the adjacent normal frames It is segmented;
The segmentation hop count of each pixel to the common frame sequence is counted, the common frame sequence each is generated The segmentation hop count in region;
According to the segmentation hop count of the regional of the common frame sequence, judge background frames to be encoded zones of different it is pre- Survey reference value.
The segmentation hop count of the regional according to the common frame sequence, judges the zones of different of background frames to be encoded Prediction reference include the step of be worth:
The segmentation hop count in the region of the common frame sequence is fewer, then be judged to:The corresponding region of background frames to be encoded Prediction reference value is higher.
The importance information according to the zones of different, adjusts the coding of the zones of different of the background frames to be encoded The step of quality, includes:
Based on code tree unit, the coding quality of the zones of different of the background frames to be encoded is adjusted;
Or, based on coding unit or macro block, adjust the coding quality of the zones of different of the background frames to be encoded;
Or, based on predicting unit, adjust the coding quality of the zones of different of the background frames to be encoded;
Or, based on converter unit, adjust the coding quality of the zones of different of the background frames to be encoded;
Or, based on pixel, adjust the coding quality of the zones of different of the background frames to be encoded.
The importance information according to the zones of different, adjusts the coding of the zones of different of the background frames to be encoded The step of quality, includes:
According to the importance information of the zones of different of the background frames to be encoded, to the not same district of the background frames to be encoded The different bit numbers for coding are distributed in domain.
A kind of rate control device of background frames, including:
Identifying unit, judges the prediction reference value of the zones of different of background frames to be encoded, and the prediction reference value is Reference value of the zones of different of background frames to be encoded to normal frames to be encoded when predicting between conducting frame;
Setup unit, is worth according to the prediction reference, sets the importance of the zones of different of the background frames to be encoded Rank;
Adjustment unit, according to the importance information of the zones of different, adjusts the zones of different of the background frames to be encoded Coding quality.
The identifying unit includes:
Statistics subelement, statistics carries out the encoded normal frames of predetermined number during inter prediction to encoded background frames not With the reference number of times in region;
Judgment sub-unit, according to reference number of times of the encoded normal frames to the zones of different of encoded background frames, sentences The prediction reference value of the corresponding region of fixed background frames to be encoded.
The identifying unit includes:
Subelement is obtained, during background modeling, the to be encoded common frame sequence of predetermined quantity is obtained;
Computation subunit, calculate the same site pixel value of adjacent normal frames in the common frame sequence difference it is absolute Value;
Comparing subunit, the absolute value and threshold value of the difference are compared;
Segmentation subelement, if the absolute value of the difference be less than the threshold value, then it represents that the adjacent normal frames it is same Position pixel value changes are little, and the probability that prospect is passed through is less, then be not segmented;Otherwise, to institute at the adjacent normal frames State common frame sequence to be segmented;
Statistics subelement, the statistics segmentation hop count of each pixel to the common frame sequence is generated described common The segmentation hop count of the regional of frame sequence;
Judge subelement, according to the segmentation hop count of the regional of the common frame sequence, judge background frames to be encoded The prediction reference value of zones of different.
The technical scheme provided by embodiments of the invention described above can be seen that in the embodiment of the present invention, according to described pre- Reference value is surveyed, the coding quality of the zones of different of the background frames to be encoded is adjusted, by changing background frames difference reference price The coding quality in value region, efficiently solves instantaneous code check in video transmitting procedure and uprushes problem, and ensure that the back of the body as far as possible The reference value of scape frame.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to use needed for embodiment description Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill of field, without having to pay creative labor, can be obtaining other according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of process chart of the bit rate control method of background frames that the embodiment of the present invention one is provided;
Fig. 2 is the video sequence in an a kind of embodiment of the bit rate control method of background frames that the embodiment of the present invention one is provided The schematic diagram of row;
Fig. 3 is the video in a kind of another embodiment of the bit rate control method of background frames that the embodiment of the present invention one is provided The schematic diagram of sequence.
Fig. 4 is a kind of flow chart of another embodiment of background frames bit rate control method of the invention;
The step of Fig. 5 is code tree unit (CTU) the level background frames bit rate control method of an embodiment of the present invention block diagram.
Fig. 6 is a kind of process chart of the rate control device of background frames that the embodiment of the present invention one is provided.
Specific embodiment
Embodiments of the present invention are described below in detail, the example of the embodiment is shown in the drawings, wherein ad initio Same or similar element is represented to same or similar label eventually or the element with same or like function.Below by ginseng The embodiment for examining Description of Drawings is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " " used herein, " It is individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that arranging used in the specification of the present invention Diction " including " refers to there is the feature, integer, step, operation, element and/or component, but it is not excluded that existing or adding One or more other features, integer, step, operation, element, component and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or couple.Wording used herein "and/or" includes one or more associated any cells for listing item and all combination.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art Language and scientific terminology) have with art of the present invention in those of ordinary skill general understanding identical meaning.Should also It is understood by, those terms defined in such as general dictionary should be understood that the meaning having with the context of prior art The consistent meaning of justice, and unless defined as here, will not be with idealizing or excessively formal implication is explaining.
For ease of the understanding to the embodiment of the present invention, do by taking several specific embodiments as an example further below in conjunction with accompanying drawing Explanation, and each embodiment does not constitute the restriction to the embodiment of the present invention.
The application scenarios of the present invention are below described.
Embodiment 1:
As shown in figure 1, for a kind of bit rate control method of background frames of the present invention, including:
Step 11, judges the prediction reference value of the zones of different of background frames to be encoded, the prediction reference value be Carry out reference value of the zones of different of background frames to be encoded during inter prediction to normal frames to be encoded;
Step 12, is worth according to the prediction reference, sets the significance level of the zones of different of the background frames to be encoded Not;
Step 13, according to the importance information of the zones of different, adjusts the zones of different of the background frames to be encoded Coding quality.
The present invention efficiently solves video transmitting procedure by the coding quality in change background frames difference reference value region In instantaneous code check uprush problem, and ensure that the reference value of background frames as far as possible.That is, the present invention is according to background frames The prediction reference value height of zones of different, changes background frames zones of different quality, carries out Rate Control to background frames, it is ensured that the back of the body Scape frame prediction reference solves the problems, such as that instantaneous code check is uprushed in video transmitting procedure in the case of being worth.
In one embodiment, step 11 includes:
Step 111, statistics carries out difference of the encoded normal frames of predetermined number during inter prediction to encoded background frames The reference number of times in region;Step 111 is specially:The encoded normal frames are got over to the reference number of times in the region of encoded background frames It is many, then it is judged to:The prediction reference value of the corresponding region of background frames to be encoded is bigger.
Step 112, according to reference number of times of the encoded normal frames to the zones of different of encoded background frames, judges to treat The prediction reference value of the corresponding region of encoding background frame.
Shown in Fig. 2, a kind of bit rate control method of background frames of the present invention includes:
Step 1, count encoded normal frames (1~n-1 frames) in inter prediction to encoded background frames (the 0th frame) no With the reference number of times in region;
Step 2, according to count the frame of encoded background frames the 0th that obtains in the 1st step number of times is referenced, and treats encoding background Frame n-th frame is predicted, and is divided into important and inessential region two-stage (or more ranks) to n-th frame, is mostly reference number of times More important area;
Step 3, sets different adjustment dynamics, such as based on coding unit or based on code tree unit;
Step 4, in background frames n-th frame, (the block i.e. in different sizes in units of the adjustment dynamics set in the 3rd step For unit) distribute different bit numbers, istributes bit number is higher, and coding quality is higher.
In another embodiment, step 11 step includes:
Step 211, during background modeling, obtains the to be encoded common frame sequence of predetermined quantity;
Step 212, the absolute value of the difference of the same site pixel value of the adjacent normal frames in the calculating common frame sequence;
Step 213, the absolute value and threshold value of the difference are compared;
Step 214, if the absolute value of the difference is less than the threshold value, then it represents that the same position picture of the adjacent normal frames Less, the probability that prospect is passed through is less, then be not segmented for plain value changes;Otherwise, to described general at the adjacent normal frames Logical frame sequence is segmented;
Step 215, the statistics segmentation hop count of each pixel to the common frame sequence, generates the normal frames sequence The segmentation hop count of the regional of row;
Step 216, according to the segmentation hop count of the regional of the common frame sequence, judges the difference of background frames to be encoded The prediction reference value in region.Step 216 is specially:The segmentation hop count in the region of the common frame sequence is fewer, then be judged to: The prediction reference value of the corresponding region of background frames to be encoded is higher.
For example, as shown in figure 3, a kind of bit rate control method of background frames of the present invention includes:
Step 1, for the co-located pixels point in normal frames to be encoded (1~n-1 frames), such as a1、a2、a3…an-1, and Think a1To an-1It is one whole section, in an encoding process, calculates the difference of adjacent two frames co-located pixels point, such as a2-a1、a3-a2、 a4-a3……an-1-an-2.If difference is more than given threshold, illustrate that the adjacent two frames pixel value is changed greatly, it is likely to There is prospect to pass through or the switching of front background, then just to carry out segment processing.For example, a8-a7More than threshold value, then it is assumed that a1To a7It is one Section, a8To an-1It it is one section, then whole section originally has been divided into two sections.According to the method, in an encoding process, to the 1st The segmentation hop count of each co-located pixels point is counted on~n-1 frames, and segmentation hop count is fewer, pixels illustrated value stabilization, it is likely that For background area.After this step terminates, the (n-1)th frame and its image before complete coding.
Step 2, according to the segmentation hop count statistics obtained in the first step, treats encoding background frame n-th frame and is predicted, to the N frames are divided into important and inessential region two-stage (or more ranks), count hop count it is fewer for more important area;
Step 3, sets different adjustment dynamics, such as based on coding unit or based on code tree unit.
Step 4, in background frames n-th frame to be encoded, (i.e. with different big in units of the adjustment dynamics set in the 3rd step Little block is unit) distribute different bit numbers, istributes bit number is higher, and coding quality is higher.
Step 13 includes:
Based on code tree unit, the coding quality of the zones of different of the background frames to be encoded is adjusted;
Or, based on coding unit or macro block, adjust the coding quality of the zones of different of the background frames to be encoded;
Or, based on predicting unit, adjust the coding quality of the zones of different of the background frames to be encoded;
Or, based on converter unit, adjust the coding quality of the zones of different of the background frames to be encoded;
Or, based on pixel, adjust the coding quality of the zones of different of the background frames to be encoded.
Or, step 13 includes:
According to the importance information of the zones of different of the background frames to be encoded, to the not same district of the background frames to be encoded The different bit numbers for coding are distributed in domain.
Another embodiment:
As shown in figure 4, a kind of the step of present invention proposes background frames bit rate control method, the method in Video coding bag Include:
Step 41, predicts (judgement) the reference case of background frames according to different predicting units in one section of scramble time The height of the prediction reference value of the zones of different of background frames to be encoded;
Step 42, partition of the level is carried out by background frames zones of different by significance level;That is, according to zones of different Prediction reference value is different, and to current background frames to be encoded region division is carried out;For example:According to prediction reference value height, will Background frames are divided into important area and insignificant region two-stage, or are more subtly divided into more ranks.
Step 43, according to the adjustment dynamics of setting, to the region of background frames difference severity level coding quality adjustment is carried out; That is, different prediction references are worth the quality in region in adjustment background frames.For example, setting is based on code tree unit, or base In coding unit or macro block, or based on predicting unit, or based on converter unit, or the adjustment dynamics based on pixel, to background frames Different severity levels, based on the adjustment dynamics of setting, to the prior rank of background frames more multi-bit are distributed, conversely, distribution Less bit number;
Step 44, updates the parameter for needing to adjust after background frames zones of different quality changes.For example, correct or update background The parameter for needing to adjust therewith after frame zones of different Mass adjust- ment, including but not limited to quantization parameter, Lagrange multiplier Update and other specification amendment.
Wherein, the decision method that step 41 is used is:According to different predicting units in one section of scramble time to background frames Reference case is predicting the height of background frames zones of different prediction reference to be encoded value.
Wherein, step 42 is specially:Background frames are divided into important area and insignificant region two-stage, or, by background Frame zones of different is divided into more ranks by significance level.
Wherein, in step 43, for the adjustment dynamics of the quality in adjustment background frames difference prediction reference value region, can be with Background frames quality is adjusted based on code tree unit;Or, background frames quality is adjusted based on coding unit or macro block It is whole;Or, background frames quality is adjusted based on predicting unit;Or, background frames quality is adjusted based on converter unit It is whole;Or, background frames quality is adjusted based on pixel.
Step 43 can be based on code tree unit and carry out bits allocation adjustment to the region of background frames difference severity level, Distribute more multi-bit to the region of background frames more severity level, conversely, distributing less bit number;Or, based on coding unit Or macro block carries out bits allocation adjustment to the region of background frames difference severity level, the region point to background frames more severity level With more multi-bit, conversely, distributing less bit number;Or, based on region of the predicting unit to background frames difference severity level Bits allocation adjustment is carried out, distributes more multi-bit to the region of background frames more severity level, conversely, distributing less bit Number;Or, bits allocation adjustment is carried out to the region of background frames difference severity level based on converter unit, it is heavier to background frames More multi-bit is distributed in the region for wanting rank, conversely, distributing less bit number;Or, it is important to background frames difference based on pixel The region of rank carries out bits allocation adjustment, and to the region of background frames more severity level more multi-bit is distributed, conversely, distribution Less bit number.
For background frames bit rate control method, after step 43, also include:
Step 44, updates the parameter for needing to adjust after background frames zones of different quality changes.
Another embodiment is below described.
Fig. 5 shows the background frames bit rate control method schematic diagram of one embodiment of the invention.As shown in figure 5, this enforcement The background frames bit rate control method of example includes:
S1:Judge the prediction reference value height of zones of different in background frames.
The prediction reference value of zones of different judges the basic link for being algorithm in background frames, and accurate predictive value judges Contribute to the lifting of coding efficiency.Using the decision method based on background modeling.During background modeling, two frames are same by before and after The difference and default threshold value of position pixel is compared.If difference is less than this threshold value, the pixel value of the pixel is front Afterwards the change of two frames is little, then be not segmented;Otherwise, the pixel value of the pixel has large change in Qian Hou two frame, is segmented.It is right The segmentation hop count of each pixel is counted during background modeling, and the region being segmented more than hop count is that the prospect frequency of occurrences is high Region, prediction reference value is relatively low, and it is the low region of the prospect frequency of occurrences to be segmented the few region of hop count, prediction reference value compared with It is high.
S2:It is different according to the prediction reference of zones of different value, region division is carried out to current background frames to be encoded.
Specially:Setting decision threshold, by background area important area, insignificant region and general area three are divided into Level.
S3:Different prediction references are worth the quality in region in adjustment background frames.
In Fig. 5, Bg (background) represents the background frames that background modeling is generated.S-GOP(super-group of The super picture groups of pictures) it is the structure adopted for context update, in S-GOP, one section of initial sequence is encoded Cheng Zhong, is obtained for S-GOP by background modeling1The background frames Bg1 of inter-reference, and S-GOP1Middle final stage sequence is being compiled Obtained for the background frames of next S-GOP inter-references by background modeling during code, by that analogy.
Background frames quantization parameter is adjusted with CTU levels, for prediction reference is worth high region, using small amount parameter, is carried Rise coding quality and distribute compared with multi-bit;For prediction reference is worth low area, using larger quantization parameter, coding matter is reduced Measure and reduce istributes bit number;For prediction reference is worth general area, using original quantization parameter, coding quality keeps not Become.
S4:The amendment and renewal of relevant parameter.
Impact of the optimum prediction mode to coding efficiency is eliminated, when the quality of neighboring prediction unit is than current prediction unit matter During amount difference, stop the reference to neighboring prediction unit predictive mode, do not use optimum prediction mode.Meanwhile, after adjustment Quantization parameter, updates Lagrange multiplier value.
The example test is based on high-performance video coding (HEVC) platform, and under low delay configuration, contrast reference method is The bit rate control method of HEVC reference softwares HM12.0, coding frame number is 1020 frames, and front 120 frame is training set, can after 120 frames Background frames are obtained, coding efficiency is represented with BD-rate (code check) and BD-PSNR (Y-PSNR), background frames number of coded bits Represented with BG/I with the ratio of I frame number of coded bits.QP represents the quantization parameter of initial frame.Cycle tests is from Peking University's number Word media institute data set PKU-SVD-A, wherein suffix sd represent the video sequence that resolution ratio is 720x576, and hd represents resolution ratio For the video sequence of 1920x1080.Experimental result is as shown in table 1.
Can be drawn by table 1, more preferably, the close I frames of background frames number of coded bits are encoded proposition method coding efficiency of the present invention Bit number, the code stream for obtaining will not cause code check to uprush.
Table 1
As shown in fig. 6, for a kind of rate control device of background frames of the present invention, including:
Identifying unit 61, judges the prediction reference value of the zones of different of background frames to be encoded, the prediction reference value Reference value of the zones of different of background frames to be encoded to normal frames to be encoded during to predict between conducting frame;
Setup unit 62, is worth according to the prediction reference, set the background frames to be encoded zones of different it is important Property rank;
Adjustment unit 63, according to the importance information of the zones of different, adjusts the not same district of the background frames to be encoded The coding quality in domain.
The identifying unit 61 includes:
Statistics subelement, statistics carries out the encoded normal frames of predetermined number during inter prediction to encoded background frames not With the reference number of times in region;
Judgment sub-unit, according to reference number of times of the encoded normal frames to the zones of different of encoded background frames, sentences The prediction reference value of the corresponding region of fixed background frames to be encoded.
In one embodiment, the identifying unit 61 includes:
Subelement is obtained, during background modeling, the to be encoded common frame sequence of predetermined quantity is obtained;
Computation subunit, calculate the same site pixel value of adjacent normal frames in the common frame sequence difference it is absolute Value;
Comparing subunit, the absolute value and threshold value of the difference are compared;
Segmentation subelement, if the absolute value of the difference be less than the threshold value, then it represents that the adjacent normal frames it is same Position pixel value changes are little, and the probability that prospect is passed through is less, then be not segmented;Otherwise, to institute at the adjacent normal frames State common frame sequence to be segmented;
Statistics subelement, the statistics segmentation hop count of each pixel to the common frame sequence is generated described common The segmentation hop count of the regional of frame sequence;
Judge subelement, according to the segmentation hop count of the regional of the common frame sequence, judge background frames to be encoded The prediction reference value of zones of different.
The above, the only present invention preferably specific embodiment, but protection scope of the present invention is not limited thereto, Any those familiar with the art the invention discloses technical scope in, the change or replacement that can be readily occurred in, All should be included within the scope of the present invention.Therefore, protection scope of the present invention should be with scope of the claims It is defined.

Claims (10)

1. a kind of bit rate control method of background frames, it is characterised in that include:
Judge the prediction reference value of the zones of different of background frames to be encoded, the prediction reference value is the conducting frame of prediction Between when predicting background frames to be encoded reference value of the zones of different to normal frames to be encoded;
It is worth according to the prediction reference, sets the importance information of the zones of different of the background frames to be encoded;
According to the importance information of the zones of different, the coding quality of the zones of different of the background frames to be encoded is adjusted.
2. method according to claim 1, it is characterised in that the prediction of the zones of different of judgement background frames to be encoded The step of reference value, includes:
It is secondary that statistics carries out reference of the encoded normal frames of predetermined number during inter prediction to the zones of different of encoded background frames Number;
According to reference number of times of the encoded normal frames to the zones of different of encoded background frames, background frames to be encoded are judged The prediction reference value of corresponding region.
3. method according to claim 2, it is characterised in that it is described according to the encoded normal frames to encoded background The reference number of times of the zones of different of frame, judges that the step of prediction reference of the corresponding region of background frames to be encoded is worth includes:
The encoded normal frames are more to the reference number of times in the region of encoded background frames, then be judged to:Background frames to be encoded Corresponding region prediction reference value it is bigger.
4. method according to claim 1, it is characterised in that the prediction of the zones of different of judgement background frames to be encoded The step of reference value, includes:
During background modeling, the to be encoded common frame sequence of predetermined quantity is obtained;
Calculate the absolute value of the difference of the same site pixel value of adjacent normal frames in the common frame sequence;
The absolute value and threshold value of the difference are compared;
If the absolute value of the difference is less than the threshold value, it is not segmented;Otherwise, to institute at the adjacent normal frames State common frame sequence to be segmented;
The statistics segmentation hop count of each pixel to the common frame sequence, generates the regional of the common frame sequence Segmentation hop count;
According to the segmentation hop count of the regional of the common frame sequence, the prediction ginseng of the zones of different of background frames to be encoded is judged Examine value.
5. method according to claim 4, it is characterised in that the regional according to the common frame sequence point Section hop count, judges that the step of prediction reference of the zones of different of background frames to be encoded is worth includes:
The segmentation hop count in the region of the common frame sequence is fewer, then be judged to:The prediction of the corresponding region of background frames to be encoded Reference value is higher.
6. method according to claim 1, it is characterised in that the importance information according to the zones of different, adjusts The step of coding quality of the zones of different of the whole background frames to be encoded, includes:
Based on code tree unit, the coding quality of the zones of different of the background frames to be encoded is adjusted;
Or, based on coding unit or macro block, adjust the coding quality of the zones of different of the background frames to be encoded;
Or, based on predicting unit, adjust the coding quality of the zones of different of the background frames to be encoded;
Or, based on converter unit, adjust the coding quality of the zones of different of the background frames to be encoded;
Or, based on pixel, adjust the coding quality of the zones of different of the background frames to be encoded.
7. method according to claim 1, it is characterised in that the importance information according to the zones of different, adjusts The step of coding quality of the zones of different of the whole background frames to be encoded, includes:
According to the importance information of the zones of different of the background frames to be encoded, to the zones of different point of the background frames to be encoded With the different bit numbers for coding.
8. a kind of rate control device of background frames, it is characterised in that include:
Identifying unit, judges the prediction reference value of the zones of different of background frames to be encoded, and the prediction reference value is to enter Reference value of the zones of different of background frames to be encoded to normal frames to be encoded during row inter prediction;
Setup unit, is worth according to the prediction reference, sets the importance information of the zones of different of the background frames to be encoded;
Adjustment unit, according to the importance information of the zones of different, adjusts the volume of the zones of different of the background frames to be encoded Code quality.
9. device according to claim 8, it is characterised in that the identifying unit includes:
Statistics subelement, statistics carries out the not same district of the encoded normal frames to encoded background frames of predetermined number during inter prediction The reference number of times in domain;
Judgment sub-unit, according to reference number of times of the encoded normal frames to the zones of different of encoded background frames, judges to treat The prediction reference value of the corresponding region of encoding background frame.
10. device according to claim 8, it is characterised in that the identifying unit includes:
Subelement is obtained, during background modeling, the to be encoded common frame sequence of predetermined quantity is obtained;
Computation subunit, calculate the co-located pixels point pixel value of adjacent normal frames in the common frame sequence difference it is absolute Value;
Comparing subunit, the absolute value and threshold value of the difference are compared;
Segmentation subelement, if the absolute value of the difference is less than the threshold value, then it represents that the same position picture of the adjacent normal frames Less, the probability that prospect is passed through is less, then be not segmented for plain value changes;Otherwise, to described general at the adjacent normal frames Logical frame sequence is segmented;
Statistics subelement, the statistics segmentation hop count of each pixel to the common frame sequence, generates the normal frames sequence The segmentation hop count of the regional of row;
Judge subelement, according to the segmentation hop count of the regional of the common frame sequence, judge the difference of background frames to be encoded The prediction reference value in region.
CN201611066195.5A 2016-11-28 2016-11-28 The bit rate control method and device of background frames Expired - Fee Related CN106658027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611066195.5A CN106658027B (en) 2016-11-28 2016-11-28 The bit rate control method and device of background frames

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611066195.5A CN106658027B (en) 2016-11-28 2016-11-28 The bit rate control method and device of background frames

Publications (2)

Publication Number Publication Date
CN106658027A true CN106658027A (en) 2017-05-10
CN106658027B CN106658027B (en) 2019-05-24

Family

ID=58812934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611066195.5A Expired - Fee Related CN106658027B (en) 2016-11-28 2016-11-28 The bit rate control method and device of background frames

Country Status (1)

Country Link
CN (1) CN106658027B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111479113A (en) * 2020-04-15 2020-07-31 腾讯科技(深圳)有限公司 Code rate control method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860757A (en) * 2010-06-03 2010-10-13 无锡中星微电子有限公司 Intelligent monitoring system and method for encoding and decoding images thereof
CN101918943A (en) * 2007-12-05 2010-12-15 生命力有限公司 Be used for by coming the system and method for compressed video for the image block allocation bit based on intraframe motion that is detected or scene complexity
CN101945287A (en) * 2010-10-14 2011-01-12 杭州华三通信技术有限公司 ROI encoding method and system thereof
CN103079063A (en) * 2012-12-19 2013-05-01 华南理工大学 Video encoding method of vision attention region under low bit rate
CN103179394A (en) * 2013-01-21 2013-06-26 北京航空航天大学 I frame rate control method based on stable area video quality
US20150117540A1 (en) * 2013-10-29 2015-04-30 Sony Corporation Coding apparatus, decoding apparatus, coding data, coding method, decoding method, and program
CN105847871A (en) * 2015-01-16 2016-08-10 杭州海康威视数字技术股份有限公司 Video encoding/decoding method and device thereof
CN105898306A (en) * 2015-12-11 2016-08-24 乐视云计算有限公司 Code rate control method and device for sport video

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101918943A (en) * 2007-12-05 2010-12-15 生命力有限公司 Be used for by coming the system and method for compressed video for the image block allocation bit based on intraframe motion that is detected or scene complexity
CN101860757A (en) * 2010-06-03 2010-10-13 无锡中星微电子有限公司 Intelligent monitoring system and method for encoding and decoding images thereof
CN101945287A (en) * 2010-10-14 2011-01-12 杭州华三通信技术有限公司 ROI encoding method and system thereof
CN103079063A (en) * 2012-12-19 2013-05-01 华南理工大学 Video encoding method of vision attention region under low bit rate
CN103179394A (en) * 2013-01-21 2013-06-26 北京航空航天大学 I frame rate control method based on stable area video quality
US20150117540A1 (en) * 2013-10-29 2015-04-30 Sony Corporation Coding apparatus, decoding apparatus, coding data, coding method, decoding method, and program
CN105847871A (en) * 2015-01-16 2016-08-10 杭州海康威视数字技术股份有限公司 Video encoding/decoding method and device thereof
CN105898306A (en) * 2015-12-11 2016-08-24 乐视云计算有限公司 Code rate control method and device for sport video

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张贤国: "基于背景模型的监控视频编码研究", 《中国博士学位论文全文数据库 信息科技辑》 *
郭少歌: "基于HEVC的监控视频编码码率控制研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111479113A (en) * 2020-04-15 2020-07-31 腾讯科技(深圳)有限公司 Code rate control method and device, storage medium and electronic equipment
CN111479113B (en) * 2020-04-15 2021-04-09 腾讯科技(深圳)有限公司 Code rate control method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN106658027B (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN103380622B (en) Intra prediction mode coding/decoding method and for its equipment
CN109862359B (en) Code rate control method and device based on layered B frame and electronic equipment
CN103299626B (en) Block elimination filtering
US9978156B2 (en) High-throughput image and video compression
US8121187B2 (en) Method and apparatus for performing multiple bit rate video encoding and video stream switching
CN1926863B (en) Multi-pass video encoding method
CN103841418B (en) The optimization method of video monitor Rate Control and system in a kind of 3G network
US9805442B2 (en) Fine-grained bit-rate control
CN101014132B (en) Selection of encoded data, creation of recoding data, and recoding method and device
JP3840020B2 (en) Video encoding device
JP2011512047A (en) Method and apparatus for performing lower complexity multi-bitrate video encoding using metadata
CN104718753B (en) Compressed using the bounded rate of chipping rate control
WO2020009758A9 (en) Context-based binary arithmetic encoding and decoding
CN101569198A (en) Decoding apparatus and decoding method
CN112740682A (en) Scalar quantizer decision scheme for dependent scalar quantization
CN106331700A (en) Coding and decoding methods of reference image, coding device, and decoding device
EP0949822A2 (en) Video coding control method and apparatus
CN106658027A (en) Background frame code rate control method and device
CN101179729A (en) Interframe mode statistical classification based H.264 macroblock mode selecting method
Zhao et al. Parallel entropy decoding for high-resolution video coding
US10230959B2 (en) Method and apparatus for performing compression of image data
CN103002284A (en) Video coding and decoding method based self-adaption updating of scene model
US20070297505A1 (en) Method and device for video encoding and decoding
Cheng et al. A neural network approach to GOP-level rate control of x265 using Lookahead
Huong et al. An improved technique using FMO for error propagation resilience in H. 264 video coding

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190524

Termination date: 20211128