CN106658027B - The bit rate control method and device of background frames - Google Patents

The bit rate control method and device of background frames Download PDF

Info

Publication number
CN106658027B
CN106658027B CN201611066195.5A CN201611066195A CN106658027B CN 106658027 B CN106658027 B CN 106658027B CN 201611066195 A CN201611066195 A CN 201611066195A CN 106658027 B CN106658027 B CN 106658027B
Authority
CN
China
Prior art keywords
encoded
frames
background frames
different zones
background
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.)
Expired - Fee Related
Application number
CN201611066195.5A
Other languages
Chinese (zh)
Other versions
CN106658027A (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

Landscapes

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

Abstract

The embodiment of the invention provides a kind of bit rate control method of background frames and devices.The described method includes: determine the prediction reference value of the different zones of background frames to be encoded, prediction reference value for prediction background frames to be encoded when carrying out inter-prediction different zones to the reference values of normal frames to be encoded;It is worth according to the prediction reference, sets the importance information of the different zones of the background frames to be encoded;According to the importance information of the different zones, the coding quality of the different zones of the background frames to be encoded is adjusted.It is worth according to the prediction reference, sets the importance information of the different zones of the background frames to be encoded;According to the importance information of the different zones, the coding quality of the different zones of the background frames to be encoded is adjusted.The present invention efficiently solves the problems, such as that instantaneous code rate is uprushed in video transmitting procedure, and ensure that the reference value of background frames as far as possible by the coding quality in change background frames difference reference value region.

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 technique
In recent years, a variety of 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 to make background frames play the role of better prediction reference to subsequent frame coding, build The background frames that mould obtains 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 rate to uprush, buffer overflow, rebuild background frames can not also be referenced.
In actual video coding application, need to carry out entire sequence code rate control to meet the needs of transmission bandwidth, code The monitor video coding method code stream based on background modeling under rate control is steady, but largely reduced 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.
Summary of the invention
The embodiment provides a kind of bit rate control method of background frames and devices, efficiently solve transmission of video Instantaneous code rate is uprushed problem in the process, and ensure that the reference value of background frames as far as possible.
To achieve the goals above, this invention takes following technical solutions.
A kind of bit rate control method of background frames, comprising:
Determine the prediction reference value of the different zones of background frames to be encoded, prediction reference value for prediction into Reference value of the different zones of background frames to be encoded to normal frames to be encoded when row inter-prediction;
It is worth according to the prediction reference, sets the importance information of the different zones of the background frames to be encoded;
According to the importance information of the different zones, the coding matter of the different zones of the background frames to be encoded is adjusted Amount.
The step of prediction reference value of the different zones for determining background frames to be encoded includes:
Ginseng of the encoded normal frames of predetermined number to the different zones of encoded background frames when statistics progress inter-prediction Examine number;
According to the encoded normal frames to the reference number of times of the different zones of encoded background frames, background to be encoded is determined The prediction reference of the corresponding region of frame is worth.
It is described according to the encoded normal frames to the reference number of times of the different zones of encoded background frames, determine to be encoded The corresponding region of background frames prediction reference value the step of include:
The encoded normal frames are more to the reference number of times in the region of encoded background frames, then determine are as follows: back to be encoded The prediction reference value of the corresponding region of scape frame is bigger.
The step of prediction reference value of the different zones for determining background frames to be encoded includes:
During background modeling, the common frame sequence to be encoded of predetermined quantity is obtained;
Calculate the absolute value of the difference of the same site pixel value of the adjacent normal frames in the common frame sequence;
The absolute value of the difference and threshold value are compared;
If the absolute value of the difference is less than the threshold value, then it represents that the co-located pixels value of the adjacent normal frames changes Less, the probability that prospect is passed through is smaller, then without segmentation;Otherwise, to the common frame sequence at the adjacent normal frames It is segmented;
Each pixel is counted to the segmentation number of segment of the common frame sequence, generates each of the common frame sequence The segmentation number of segment in region;
According to the segmentation number of segment of each region of the common frame sequence, the pre- of the different zones of background frames to be encoded is determined Survey reference value.
The segmentation number of segment of described each region according to the common frame sequence, determines the different zones of background frames to be encoded Prediction reference value the step of include:
The segmentation number of segment in the region of the common frame sequence is fewer, then determines are as follows: the corresponding region of background frames to be encoded Prediction reference value is higher.
The importance information according to the different zones adjusts the coding of the different zones of the background frames to be encoded The step of quality includes:
Based on coding tree unit, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on coding unit or macro block, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on predicting unit, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on converter unit, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on pixel, the coding quality of the different zones of the background frames to be encoded is adjusted.
The importance information according to the different zones adjusts the coding of the different zones of the background frames to be encoded The step of quality includes:
According to the importance information of the different zones 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 is distributed in domain.
A kind of rate control device of background frames, comprising:
Judging unit determines that the prediction reference value of the different zones of background frames to be encoded, the prediction reference value are Reference value of the different zones of background frames to be encoded to normal frames to be encoded when carrying out inter-prediction;
Setup unit is worth according to the prediction reference, sets the importance of the different zones of the background frames to be encoded Rank;
Adjustment unit adjusts the different zones of the background frames to be encoded according to the importance information of the different zones Coding quality.
The judging unit includes:
Count subelement, statistics carry out inter-prediction when predetermined number encoded normal frames to encoded background frames not With the reference number of times in region;
Judgment sub-unit is sentenced according to the encoded normal frames to the reference number of times of the different zones of encoded background frames The prediction reference value of the corresponding region of fixed background frames to be encoded.
The judging unit includes:
It obtains subelement and obtains the common frame sequence to be encoded of predetermined quantity during background modeling;
Computation subunit calculates the absolute of the difference of the same site pixel value of the adjacent normal frames in the common frame sequence Value;
The absolute value of the difference and threshold value are compared by comparing subunit;
Be segmented 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 Less, the probability that prospect is passed through is smaller, then without segmentation for position pixel value variation;Otherwise, to institute at the adjacent normal frames Common frame sequence is stated to be segmented;
Subelement is counted, each pixel is counted to the segmentation number of segment of the common frame sequence, generates described common The segmentation number of segment of each region of frame sequence;
Determine that subelement determines background frames to be encoded according to the segmentation number of segment of each region of the common frame sequence The prediction reference of different zones is worth.
As can be seen from the technical scheme provided by the above-mentioned embodiment of the present invention, in the embodiment of the present invention, according to described pre- Reference value is surveyed, the coding quality of the different zones of the background frames to be encoded is adjusted, by changing background frames difference reference price It is worth the coding quality in region, efficiently solves the problems, such as that instantaneous code rate is uprushed in video transmitting procedure, and ensure that back 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, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without any creative labor, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of process flow diagram of the bit rate control method for background frames that the embodiment of the present invention one provides;
Fig. 2 is the video sequence in an a kind of embodiment of the bit rate control method for background frames that the embodiment of the present invention one provides The schematic diagram of column;
Fig. 3 is the video in a kind of another embodiment of the bit rate control method for background frames that the embodiment of the present invention one provides 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 present invention;
Fig. 5 is the step block diagram of coding tree unit (CTU) grade background frames bit rate control method of an embodiment of the present invention.
Fig. 6 is a kind of process flow diagram of the rate control device for background frames that the embodiment of the present invention one provides.
Specific embodiment
Embodiments of the present invention are described below in detail, the example of the embodiment is shown in the accompanying drawings, wherein from beginning Same or similar element or element with the same or similar functions are indicated to same or similar label eventually.Below by ginseng The embodiment for examining attached drawing description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or coupling.Wording used herein "and/or" includes one or more associated any cells for listing item and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term) there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, which should be understood that, to be had and the meaning in the context of the prior art The consistent meaning of justice, and unless defined as here, it will not be explained in an idealized or overly formal meaning.
In order to facilitate understanding of embodiments of the present invention, it is done by taking several specific embodiments as an example below in conjunction with attached drawing further Explanation, and each embodiment does not constitute the restriction to the embodiment of the present invention.
Application scenarios of the invention are described below.
Embodiment 1:
As shown in Figure 1, being a kind of bit rate control method of background frames of the present invention, comprising:
Step 11, determine the prediction reference value of the different zones of background frames to be encoded, prediction reference value for Carry out reference value of the different zones to normal frames to be encoded of background frames to be encoded when inter-prediction;
Step 12, it is worth according to the prediction reference, sets the significance level of the different zones of the background frames to be encoded Not;
Step 13, according to the importance information of the different zones, the different zones of the background frames to be encoded are adjusted 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 rate 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 of different zones is worth height, changes background frames different zones quality, carries out code rate control to background frames, guarantees back Scape frame prediction reference solves the problems, such as that instantaneous code rate is uprushed in video transmitting procedure in the case where being worth.
In one embodiment, step 11 includes:
Step 111, statistics carries out difference of the encoded normal frames to encoded background frames of predetermined number when inter-prediction The reference number of times in region;Step 111 specifically: the encoded normal frames get over the reference number of times in the region of encoded background frames It is more, then determine are as follows: the prediction reference value of the corresponding region of background frames to be encoded is bigger.
Step 112, according to the encoded normal frames to the reference number of times of the different zones of encoded background frames, determine to The prediction reference of the corresponding region of encoding background frame is worth.
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 frame) in inter-prediction to encoded background frames (the 0th frame) no With the reference number of times in region;
Step 2, number is referenced according to the 0th frame of encoded background frames counted in step 1, treats encoding background Frame n-th frame predicted, is divided into important and inessential region two-stage (or more rank) to n-th frame, is mostly reference number of times More important area;
Step 3, different adjustment dynamics is set, such as based on coding unit or is based on coding tree unit;
Step 4, in background frames n-th frame, (the block i.e. in different sizes as unit of the adjustment dynamics set in step 3 For unit) the different bit number of distribution, istributes bit number is higher, and coding quality is higher.
In another embodiment, step 11 step includes:
Step 211, during background modeling, the common frame sequence to be encoded of predetermined quantity is obtained;
Step 212, the absolute value of the difference of the same site pixel value of the adjacent normal frames in the common frame sequence is calculated;
Step 213, the absolute value of the difference and threshold value 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 smaller, then without segmentation for the variation of element value;Otherwise, to described general at the adjacent normal frames Logical frame sequence is segmented;
Step 215, each pixel is counted to the segmentation number of segment of the common frame sequence, generates the normal frames sequence The segmentation number of segment of each region of column;
Step 216, according to the segmentation number of segment of each region of the common frame sequence, determine the difference of background frames to be encoded The prediction reference in region is worth.Step 216 specifically: the segmentation number of segment in the region of the common frame sequence is fewer, then determines are as follows: 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 on normal frames to be encoded (1~n-1 frame), 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 greater than given threshold, illustrate that the adjacent two frames pixel value changes greatly, it is likely to There are prospect process or the switching of preceding background, then with regard to carrying out segment processing.For example, a8-a7Greater than threshold value, then it is assumed that a1To a7It is one Section, a8To an-1It is one section, then original one whole section has been divided into two sections.According to the method, in an encoding process, to the 1st The segmentation number of segment of each co-located pixels point is counted on~n-1 frame, and segmentation number of segment is fewer, and pixels illustrated value is stablized, it is likely that For background area.After this step, the (n-1)th frame and its image before complete coding.
Step 2, the segmentation number of segment statistics according to obtained in the first step, treats encoding background frame n-th frame and is predicted, to the N frame is divided into important and inessential region two-stage (or more rank), and fewer statistics number of segment is more important area;
Step 3, different adjustment dynamics is set, such as based on coding unit or is based on coding tree unit.
Step 4, in background frames n-th frame to be encoded, (i.e. with different big as unit of the adjustment dynamics set in step 3 Small block is unit) the different bit number of distribution, istributes bit number is higher, and coding quality is higher.
Step 13 includes:
Based on coding tree unit, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on coding unit or macro block, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on predicting unit, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on converter unit, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on pixel, the coding quality of the different zones of the background frames to be encoded is adjusted.
Alternatively, step 13 includes:
According to the importance information of the different zones 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 is distributed in domain.
Another embodiment:
As shown in figure 4, the invention proposes background frames bit rate control method in a kind of Video coding, the step of this method, is wrapped It includes:
Step 41, according to predicting units different in one section of scramble time to the reference case of background frames, to predict (judgement) The height of the prediction reference value of the different zones of background frames to be encoded;
Step 42, background frames different zones are subjected to partition of the level by significance level;That is, according to different zones Prediction reference value is different, carries out region division to current background frames to be encoded;Such as: height is worth according to prediction reference, it 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, coding quality adjustment is carried out to the region of background frames difference severity level; That is, different prediction references are worth the quality in region in adjustment background frames.For example, setting is based on coding tree unit or base In coding unit or macro block, or it is based on predicting unit, or is based on converter unit or adjustment dynamics pixel-based, to background frames Different severity levels, the adjustment dynamics based on setting distribute more multi-bit to the prior rank of background frames, conversely, distribution Less bit number;
Step 44, the parameter for needing to adjust after background frames different zones quality changes is updated.For example, amendment or update background The parameter for needing to adjust therewith after frame different zones Mass adjust- ment, including but not limited to quantization parameter, Lagrange multiplier It updates and other parameters is corrected.
Wherein, the determination method that step 41 uses are as follows: according to predicting units different in one section of scramble time to background frames Reference case, to predict the height of background frames different zones prediction reference value to be encoded.
Wherein, step 42 specifically: background frames are divided into important area and insignificant region two-stage, alternatively, by background Frame different zones are divided into more ranks by significance level.
It wherein,, can be with for the adjustment dynamics of the quality in adjustment background frames difference prediction reference value region in step 43 Background frames quality is adjusted based on coding tree unit;Alternatively, being adjusted based on coding unit or macro block to background frames quality It is whole;Alternatively, being adjusted based on predicting unit to background frames quality;Alternatively, being adjusted based on converter unit to background frames quality It is whole;Alternatively, being adjusted based on pixel to background frames quality.
Step 43 can carry out bits allocation adjustment based on region of the coding tree unit to background frames difference severity level, More multi-bit is distributed to the region of background frames more severity level, conversely, distributing less bit number;Alternatively, being based on coding unit Or macro block carries out bits allocation adjustment to the region of background frames difference severity level, to the region point of background frames more severity level With more multi-bit, conversely, distributing less bit number;Alternatively, based on predicting unit to the region of background frames difference severity level Bits allocation adjustment is carried out, more multi-bit is distributed to the region of background frames more severity level, conversely, distributing less bit Number;Alternatively, bits allocation adjustment is carried out based on region of the converter unit to background frames difference severity level, it is heavier to background frames The region of rank is wanted to distribute more multi-bit, conversely, distributing less bit number;Alternatively, important to background frames difference based on pixel The region of rank carries out bits allocation adjustment, more multi-bit is distributed to the region of background frames more severity level, conversely, distribution Less bit number.
For background frames bit rate control method, after step 43, further includes:
Step 44, the parameter for needing to adjust after background frames different zones quality changes is updated.
Another embodiment is described below.
Fig. 5 shows the background frames bit rate control method schematic diagram of one embodiment of the invention.As shown in figure 5, this implementation Example background frames bit rate control method include:
S1: determine that the prediction reference of different zones in background frames is worth height.
The prediction reference value judgement of different zones is the basic link of algorithm in background frames, and accurate predictive value determines Facilitate the promotion of coding efficiency.Using the determination method based on background modeling.It is during background modeling, two frame of front and back is same The difference and preset threshold value of position pixel are compared.If difference is less than this threshold value, the pixel value of the pixel is preceding The variation of two frames less, is not then segmented afterwards;Otherwise, the pixel value of the pixel has large change in two frame of front and back, is segmented.It is right The segmentation number of segment of each pixel is counted during background modeling, and the region being segmented more than number of segment is that the prospect frequency of occurrences is high Region, prediction reference value is lower, and the few region of segmentation number of segment is the low region of the prospect frequency of occurrences, prediction reference value compared with It is high.
S2: being worth difference according to the prediction reference of different zones, carries out region division to current background frames to be encoded.
Specifically: background area is divided into important area, insignificant region and general area three by setting decision threshold Grade.
S3: the quality in different prediction reference values region in adjustment background frames.
In Fig. 5, Bg (background) indicates the background frames that background modeling generates.S-GOP(super-group of The super picture group of pictures) it is the structure used for context update, in S-GOP, one section of initial sequence is encoded Cheng Zhong is obtained by background modeling for S-GOP1The background frames Bg1 of inter-reference, and S-GOP1Middle final stage sequence is being compiled The background frames for next S-GOP inter-reference are obtained by background modeling during code, and so on.
With CTU grades of adjustment background frames quantization parameters, high region is worth for prediction reference and is mentioned using small amount parameter It rises coding quality and distributes compared with multi-bit;Low area is worth for prediction reference, using larger quantization parameter, reduces coding matter It measures and reduces istributes bit number;General area is worth for prediction reference, using original quantization parameter, coding quality is kept not Become.
S4: the amendment and update of relevant parameter.
Influence of the optimum prediction mode to coding efficiency is eliminated, when the quality of neighboring prediction unit is than current prediction unit matter When amount difference, stop the reference to neighboring prediction unit prediction mode, does not use optimum prediction mode.Meanwhile according to adjusted Quantization parameter updates Lagrange multiplier value.
Example test is based on high-performance video coding (HEVC) platform, and under low delay configuration, comparison is with reference to method The bit rate control method of HEVC reference software HM12.0, coding frame number are 1020 frames, and preceding 120 frame is training set, can after 120 frames Background frames are obtained, coding efficiency is indicated with BD-rate (code rate) and BD-PSNR (Y-PSNR), background frames number of coded bits It is indicated with the ratio of I frame number of coded bits with BG/I.The quantization parameter of QP expression initial frame.Cycle tests comes from Peking University's number Word media institute data set PKU-SVD-A, wherein suffix sd indicates that resolution ratio is the video sequence of 720x576, and hd indicates resolution ratio For the video sequence of 1920x1080.Experimental result is as shown in table 1.
By table 1, it can be concluded that, the present invention proposes that method coding efficiency is more preferable, and background frames number of coded bits is encoded close to I frame Bit number, obtained code stream will not cause code rate to be uprushed.
Table 1
As shown in fig. 6, being a kind of rate control device of background frames of the present invention, comprising:
Judging unit 61 determines the prediction reference value of the different zones of background frames to be encoded, the prediction reference value For background frames to be encoded when carrying out inter-prediction different zones to the reference values of normal frames to be encoded;
Setup unit 62 is worth according to the prediction reference, sets the important of the different zones of the background frames to be encoded Property rank;
Adjustment unit 63 adjusts the not same district of the background frames to be encoded according to the importance information of the different zones The coding quality in domain.
The judging unit 61 includes:
Count subelement, statistics carry out inter-prediction when predetermined number encoded normal frames to encoded background frames not With the reference number of times in region;
Judgment sub-unit is sentenced according to the encoded normal frames to the reference number of times of the different zones of encoded background frames The prediction reference value of the corresponding region of fixed background frames to be encoded.
In one embodiment, the judging unit 61 includes:
It obtains subelement and obtains the common frame sequence to be encoded of predetermined quantity during background modeling;
Computation subunit calculates the absolute of the difference of the same site pixel value of the adjacent normal frames in the common frame sequence Value;
The absolute value of the difference and threshold value are compared by comparing subunit;
Be segmented 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 Less, the probability that prospect is passed through is smaller, then without segmentation for position pixel value variation;Otherwise, to institute at the adjacent normal frames Common frame sequence is stated to be segmented;
Subelement is counted, each pixel is counted to the segmentation number of segment of the common frame sequence, generates described common The segmentation number of segment of each region of frame sequence;
Determine that subelement determines background frames to be encoded according to the segmentation number of segment of each region of the common frame sequence The prediction reference of different zones is worth.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art, It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims Subject to.

Claims (7)

1. a kind of bit rate control method of background frames characterized by comprising
Determine that the prediction reference value of the different zones of background frames to be encoded, the prediction reference value are carrying out frame for prediction Between when predicting background frames to be encoded different zones to the reference values of normal frames to be encoded;
It is worth according to the prediction reference, sets the importance information of the different zones of the background frames to be encoded;
According to the importance information of the different zones, the coding quality of the different zones of the background frames to be encoded is adjusted;
The importance information according to the different zones adjusts the coding quality of the different zones of the background frames to be encoded The step of include: according to the importance information of the different zones of the background frames to be encoded, not to the background frames to be encoded The different bit numbers for coding is distributed with region.
2. the method according to claim 1, wherein the prediction of the different zones for determining background frames to be encoded The step of reference value includes:
The encoded normal frames that statistics carries out predetermined number when inter-prediction are secondary to the reference of the different zones of encoded background frames Number;
According to the encoded normal frames to the reference number of times of the different zones of encoded background frames, background frames to be encoded are determined The prediction reference of corresponding region is worth;
It is described according to the encoded normal frames to the reference number of times of the different zones of encoded background frames, determine background to be encoded The step of prediction reference value of the corresponding region of frame includes: ginseng of the encoded normal frames to the region of encoded background frames It is more to examine number, then determines are as follows: the prediction reference value of the corresponding region of background frames to be encoded is bigger.
3. the method according to claim 1, wherein the prediction of the different zones for determining background frames to be encoded The step of reference value includes:
During background modeling, the common frame sequence to be encoded of predetermined quantity is obtained;
Calculate the absolute value of the difference of the same site pixel value of the adjacent normal frames in the common frame sequence;
The absolute value of the difference and threshold value are compared;
If the absolute value of the difference is less than the threshold value, without segmentation;Otherwise, to institute at the adjacent normal frames Common frame sequence is stated to be segmented;
Each pixel is counted to the segmentation number of segment of the common frame sequence, generates each region of the common frame sequence Segmentation number of segment;
According to the segmentation number of segment of each region of the common frame sequence, the prediction ginseng of the different zones of background frames to be encoded is determined Examine value;
The segmentation number of segment of described each region according to the common frame sequence, determines the pre- of the different zones of background frames to be encoded The step of surveying reference value includes: that the segmentation number of segment in the region of the common frame sequence is fewer, then determines are as follows: background frames to be encoded Corresponding region prediction reference value it is higher.
4. the method according to claim 1, wherein the importance information according to the different zones, is adjusted The step of coding quality of the different zones of the whole background frames to be encoded further include:
Based on coding tree unit, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on coding unit or macro block, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on predicting unit, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on converter unit, the coding quality of the different zones of the background frames to be encoded is adjusted;
Alternatively, being based on pixel, the coding quality of the different zones of the background frames to be encoded is adjusted.
5. a kind of rate control device of background frames characterized by comprising
Judging unit, determines the prediction reference value of the different zones of background frames to be encoded, prediction reference value for into Reference value of the different zones of background frames to be encoded to normal frames to be encoded when row inter-prediction;
Setup unit is worth according to the prediction reference, sets the importance information of the different zones of the background frames to be encoded;
Adjustment unit adjusts the volume of the different zones of the background frames to be encoded according to the importance information of the different zones Code quality;Specifically: according to the importance information of the different zones of the background frames to be encoded, to the background frames to be encoded Different zones distribute the different bit numbers for coding.
6. device according to claim 5, which is characterized in that the judging unit includes:
Subelement is counted, statistics carries out not same district of the encoded normal frames to encoded background frames of predetermined number when inter-prediction The reference number of times in domain;
Judgment sub-unit, according to the encoded normal frames to the reference number of times of the different zones of encoded background frames, determine to The prediction reference of the corresponding region of encoding background frame is worth;Specifically: area of the encoded normal frames to encoded background frames The reference number of times in domain is more, then determines are as follows: the prediction reference value of the corresponding region of background frames to be encoded is bigger.
7. device according to claim 5, which is characterized in that the judging unit includes:
It obtains subelement and obtains the common frame sequence to be encoded of predetermined quantity during background modeling;
Computation subunit calculates the absolute of the difference of the co-located pixels point pixel value of the adjacent normal frames in the common frame sequence Value;
The absolute value of the difference and threshold value are compared by comparing subunit;
It is segmented 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 smaller, then without segmentation for the variation of element value;Otherwise, to described general at the adjacent normal frames Logical frame sequence is segmented;
Subelement is counted, each pixel is counted to the segmentation number of segment of the common frame sequence, generates the normal frames sequence The segmentation number of segment of each region of column;
Determine that subelement determines the difference of background frames to be encoded according to the segmentation number of segment of each region of the common frame sequence The prediction reference in region is worth;Specifically: the segmentation number of segment in the region of the common frame sequence is fewer, then determines are as follows: to be encoded The prediction reference value of the corresponding region of background frames is higher.
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 CN106658027A (en) 2017-05-10
CN106658027B true 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)

Families Citing this family (1)

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

Citations (7)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6102680B2 (en) * 2013-10-29 2017-03-29 ソニー株式会社 Encoding device, decoding device, encoded data, encoding method, decoding method, and program

Patent Citations (7)

* 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
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的监控视频编码码率控制研究;郭少歌;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160815(第8期);全文
基于背景模型的监控视频编码研究;张贤国;《中国博士学位论文全文数据库 信息科技辑》;20131015(第10期);全文

Also Published As

Publication number Publication date
CN106658027A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN101490968B (en) Parallel processing apparatus for video compression
US9924183B2 (en) Fast HEVC transcoding
US9774875B2 (en) Lossless and near-lossless image compression
CN101014132B (en) Selection of encoded data, creation of recoding data, and recoding method and device
US20150189269A1 (en) Recursive block partitioning
CN101743753A (en) Utilize the rate controlled based on buffering of frame complexity, buffer level and frame interior position in the video coding
CN102833539A (en) Multi-pass video encoding
JP2011512047A (en) Method and apparatus for performing lower complexity multi-bitrate video encoding using metadata
EP2410752B1 (en) Image coding apparatus, image coding control method and image coding program
CN104718753B (en) Compressed using the bounded rate of chipping rate control
CN103038783A (en) Adaptive video decoding circuitry and techniques
TW201347547A (en) Method and apparatus for parallel entropy encoding, method and apparatus for parallel entropy decoding, and non-transitory computer-readable recording medium
CN103533365B (en) Bit-rate control method and Bit-Rate Control Algorithm system
US20210274182A1 (en) Context-based binary arithmetic encoding and decoding
CN108810545A (en) Method for video encoding, device, computer-readable medium and electronic equipment
CN109688407A (en) Reference block selection method, device, electronic equipment and the storage medium of coding unit
CN103546754B (en) From H.264/AVC to code-transferring method and the system of SVC gradable spatial
CN106658027B (en) The bit rate control method and device of background frames
CN109905714A (en) Inter-frame prediction method, device and terminal device
CN109547788B (en) Image compression method, equipment and image transmission system
JP5772623B2 (en) Moving picture coding apparatus, moving picture coding method, and moving picture coding program
CN101977317B (en) Intra-frame prediction method and device
CN103002284A (en) Video coding and decoding method based self-adaption updating of scene model
US11375202B2 (en) Translational and affine candidates in a unified list
CN104995917A (en) Self-adaption motion estimation method and module thereof

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