CN108924611A - ABR encoder bit rate controls optimization method, electronic equipment and storage medium - Google Patents
ABR encoder bit rate controls optimization method, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN108924611A CN108924611A CN201810679940.6A CN201810679940A CN108924611A CN 108924611 A CN108924611 A CN 108924611A CN 201810679940 A CN201810679940 A CN 201810679940A CN 108924611 A CN108924611 A CN 108924611A
- Authority
- CN
- China
- Prior art keywords
- rate control
- frame
- complexity
- resetting
- bit rate
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
- H04N21/2662—Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/11—Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
Abstract
The present invention provides a kind of ABR encoder bit rate control optimization method, electronic equipment and storage mediums, pass through the judgement to the huge scene of complexity gap, optimization resetting code rate control parameter, and it is compensated by comparing the quantization parameter that bit number controls code rate, bit resources are saved after complex scene being switched to for simple scenario, more bit resources are assigned with for the simple scenario after complex scene switching, so that distortion reduction, coding subjective quality and objective quality are promoted, and the distribution of bit resources is optimized.
Description
Technical field
The present invention relates to technical field of video coding.Optimization method, electronics are controlled more particularly, to a kind of ABR encoder bit rate
Equipment and storage medium.
Background technique
When between the frame of video sequence and frame occurrence scene switch when, encoder how to determine scene switching generation and
What kind of countermeasure success takes can all have a great impact to coding quality after determining scene switching.X264/X265 coding
Device is commonly used for Video coding as classical open source encoder.Video sequence is read in buffer queue pair by X264/X265 encoder
Image carries out precoding, determines whether the type of coding of each frame, then the previous frame by calculating key frame sum have significantly after analysis
Difference, to determine whether scene switching frame.After detecting scene switching, encoder can use the coding for changing present frame
Type carries out additional compensation to coding parameter or refreshes the strategies such as resetting code rate Controlling model parameter to reduce scene switching to volume
The influence of code quality.
Code rate control is a kind of method for being determined as each video frame and distributing how many bit number, it will determine the big of file
Small and quality.Usually there are three types of modes for the bit rate control method of X264/X265 encoder:ABR, CQP and CRF.However in success
After detecting this scene switching, only abr mode when can just execute resetting code rate control parameter the step of, if not above-mentioned
The operation of code rate control parameter is reset, encoder will receive the influence for switching preceding encoding state, slow down the receipts of encoder after switching
Hold back speed.The step of resetting code rate control parameter of abr mode coding, can make simple scenario distribute less bit, and reserve
Enough bits are used to generate the complicated part of high quality, and limited bit number is rationally divided between different scenes
Match, can control output file size.Therefore X264/X265 encoder ABR coding mode has more advantage.
General scene switching is comprising simple to simple, simple to complicated, complicated to simple and four class of complexity to complexity.
For the abr mode of X264/X265 encoder when handling switching of the simple scenario to simple scenario, encoder performance is outstanding,
Bit rate output can be controlled near target bit rate and coding quality is not affected;It is switched in processing complex scene multiple
When miscellaneous scene, the performance of encoder is still satisfactory, and bit rate output will rise rapidly even remotely from target bit rate after switching, it
After can decline immediately and converge near target bit rate, although the subjective quality of coding is declined for still image,
But it is difficult to see the discontinuous of mass for dynamic video.
However the abr mode of X264/X265 encoder is easy to appear volume when processing simple scenario is switched to complex scene
Code bit distribution is excessively high, causes bit rate output seriously to exceed target bit rate, wastes more bit resources;In addition, complicated in processing
It when scene switching is to simple scenario, is also easy to too low to the coded-bit distribution of simple scenario after switching, causes video quality low
Under, distortion is obvious.Therefore it is gone back for the abr mode of X264/X265 encoder in the huge scene switching of processing complexity difference
There are problems, it is necessary to optimize to the code rate control of abr mode.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of control of ABR encoder bit rate is excellent
Change method, electronic equipment and storage medium adjust the fuzzy complexity in code rate control parameter after judging that scene switching occurs
Degree, is allowed to change rapidly, and the mutation bring that can reduce description switching rear video content complexity influences, and accelerates convergence speed
Degree.It is asked so that the abr mode for solving X264/X265 encoder is existing in the huge scene switching of processing complexity difference
Topic.
In order to achieve the above objects and other related objects, the present invention provides a kind of optimization method of ABR encoder bit rate control,
Including:In the case that each frame is encoded using intra-prediction code mode in video sequence, present frame is calculated
Complexity;According to present frame complexity and the mathematical relationship between the average complexity of preset quantity frame before, judge whether occur
Scene switching situation;The scene switching situation includes:Simple scenario switches to complex scene or complex scene switches to simply
Scene;If occurring, and meet that simple scenario switches to the first resetting condition of complex scene or complex scene switches to simple field
Second resetting condition of scape, then reset code rate control parameter;It is described resetting code rate control parameter method include:It is tired to be allowed to previous frame
It counts complexity and is the complexity of present frame, and being allowed to previous frame weighted cumulative complexity is 1;It obtains according to the code rate control after resetting
Code rate determined by parameter processed carries out the frame that predictive coding is exported, and judges whether its bit number is higher than a high threshold or lower than one
Low threshold;Wherein, if bit number is higher than high threshold, complex scene is switched to corresponding to simple scenario;If bit number is lower than low threshold
Value, switches to simple scenario corresponding to complex scene;If judging, bit number is higher than high threshold, to the code rate control after the resetting
The quantization parameter of parameter processed carries out the first compensation, wherein first compensation is by the code rate control parameter after the resetting
Quantization parameter is limited to the quantization parameter for being higher than target bit rate control;If judging bit number lower than Low threshold, to the resetting
The quantization parameter of code rate control parameter afterwards carries out the second compensation;Wherein, second compensation is by code rate control after the resetting
The quantization parameter of parameter processed is limited to the quantization parameter lower than target bit rate control.
In one embodiment of the invention, the first resetting condition includes:The complexity of the present frame is greater than 4 times of institutes
The average complexity of preset quantity frame before stating, and/or, the second resetting condition includes:The complexity of the present frame
Degree is located between 0.1 times to 0.25 times of the average complexity of preset quantity frame before.
In one embodiment of the invention, the first resetting condition includes:The complexity of the present frame is greater than 4 times of institutes
The average complexity of preset quantity frame before stating, and the occupancy of buffer area is greater than -0.1.
In one embodiment of the invention, the second resetting condition includes:The complexity of the present frame is located at described
Before between 0.1 times to 0.25 times of the average complexity of preset quantity frame, and apart from last time resetting interval time 1 second or more.
In one embodiment of the invention, the high threshold is the bit number that target bit rate averagely arrives each frame.
In one embodiment of the invention, the Low threshold is the 0.64 of the bit number that target bit rate averagely arrives each frame
Times.
In one embodiment of the invention, first compensation method is:
Wherein, qscale is quantization parameter, and predictBits is that the prediction of present frame exports bit number, and targetBits is object code
Rate averagely arrives the bit number of each frame.
In one embodiment of the invention, second compensation method is:Qscale=qscale × α+qscale ' ×
(1-α);Wherein,Wherein, qscale is quantization parameter, and α is compensation factor,
PredictBits is that the prediction of present frame exports bit number, and targetBits is the bit number that target bit rate averagely arrives each frame.
In order to achieve the above objects and other related objects, the present invention also provides a kind of electronic equipment, including:Processor is used
In the computer program for executing memory storage;Memory is stored thereon with computer program, when which is executed by processor
Realize the optimization method of the ABR encoder bit rate control.
In order to achieve the above objects and other related objects, the present invention also provides a kind of computer readable storage mediums, thereon
It is stored with computer program, the optimization method of the ABR encoder bit rate control is realized when which is executed by processor.
As described above, the optimization method of ABR encoder bit rate control provided by the invention, by the huge field of complexity gap
The judgement of scape, optimization resetting code rate control parameter, and compensated by comparing the quantization parameter that bit number controls code rate, phase
The prior art is had the advantages that:Bit resources are saved after being switched to complex scene for simple scenario, for complexity
Simple scenario after scene switching is assigned with more bit resources, so that distortion reduction, encodes subjective quality and objective quality
It is promoted, optimizes the distribution of bit resources.
Detailed description of the invention
Fig. 1 is shown as the flow diagram of the optimization method of ABR encoder bit rate control of the present invention in an embodiment.
Fig. 2 is shown as electronic equipment schematic diagram of the present invention in an embodiment.
Fig. 3 be shown as input film source be video sequence brightCutting target bit rate be set as 1000Kbps obtain it is defeated
Bit result comparison diagram out.
It is the RD curve graph that video sequence brightCutting is obtained that Fig. 4, which is shown as input film source,.
It is the RD curve graph that video sequence freeCutting is obtained that Fig. 5, which is shown as input film source,.
It is the RD curve graph that video sequence ClassB is obtained that Fig. 6, which is shown as input film source,.
Component label instructions
S101~S106 method and step
200 electronic equipments
201 memories
202 processors
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
It should be noted that illustrating the basic structure that only the invention is illustrated in a schematic way provided in following embodiment
Think, only shown in schema then with related component in the present invention rather than component count, shape and size when according to actual implementation
Draw, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel
It is likely more complexity.
As shown in Figure 1, showing the process signal of the optimization method of ABR encoder bit rate control of the present invention in an embodiment
Figure, the method includes:
Step S101:In the case that each frame is encoded using intra-prediction code mode in video sequence, calculate
Obtain the complexity of present frame.
Wherein the complexity of frame by Image Residual change absolute value and is calculated, to embody content change after scene switching
Size.
Step S102:According to present frame complexity and the mathematical relationship between the average complexity of preset quantity frame before, sentence
It is disconnected scene switching situation whether occur;The scene switching situation includes:Simple scenario switches to complex scene or complex scene
Switch to simple scenario;
The quantity of preset quantity frame is determined that the length of window adjustable settings are excellent by smoothing window length before wherein
Selecting length is 40.The average complexity of preset quantity frame is identified certain amount frame in preset window length before described
Average complexity.
Wherein scene switching further includes:Simple scenario switches to simple scenario and complex scene switches to complex scene.Though
So method of the invention, which is mainly shown, switches to complex scene for simple scenario or complex scene switches to simple scenario and proposes
Improve, but it is worth noting that, method of the invention is also suitable other scene switchings, as simple scenario switch to simple scenario or
Complex scene switches to the small scene of the complexities gap such as complex scene, and generated influence is negligible compared with primal algorithm
Disregard, is proved subsequently through experimental data.
In one embodiment of the invention, the first resetting condition includes:The complexity of the present frame is greater than 4 times of institutes
The average complexity of preset quantity frame before stating, and/or, the second resetting condition includes:The complexity of the present frame
Degree is located between 0.1 times to 0.25 times of the average complexity of preset quantity frame before.
If wherein previous frame average complexity of the present frame complexity less than 4 times, and not between 0.1 times to 0.25 times when,
Then determine not do other scene switchings without there is the targeted scene switching of the present invention and determine, and do not control code rate and join
Number is reset.For example, previous frame average complexity of the present frame complexity less than 0.1 times, adjacent frame video image variation is slow,
Code rate control parameter is not reset.
Wherein between 0.1 times to 0.25 times and the numberical range greater than 4 times is obtained by adjusting after test of many times.
Step S103:If occurring, and meet the first resetting condition or complex scene that simple scenario switches to complex scene
The the second resetting condition for switching to simple scenario, then reset code rate control parameter;The method packet of the resetting code rate control parameter
It includes:It is allowed to previous frame and adds up complexity as the complexity of present frame, and being allowed to previous frame weighted cumulative complexity is 1;
Compared with primal algorithm, method of the invention carries out resetting code rate control parameter by addition resetting condition
Optimization, optimum ideals are, after the huge scene of complexity gap occurs, adjust in code rate control parameter previous frame it is accumulative multiple
Previous frame weighted cumulative complexity changes rapidly miscellaneous degree therewith, and the mutation that can reduce description switching rear video content complexity is brought
Influence, optimal resetting condition is found by repetition test, accelerates convergence rate.
In one embodiment of the invention, the first resetting condition includes:The complexity of the present frame is greater than 4 times of institutes
The average complexity of preset quantity frame before stating, and the occupancy of buffer area is greater than -0.1.
In primal algorithm, have specifically for the treatment measures for switching situation from simple scenario to complex scene, original calculation
The condition of method resetting is that the occupancy of buffer area does not play a role less than 0, but when encoding certain sequences, and reason is when inspection
The occupancy for measuring buffer area when simple scenario switches situation to complex scene is 0.064, does not meet resetting condition, it may appear that
Bit rate output seriously exceeds the case where target bit rate.So improved method by resetting condition be changed to buffer occupancy be greater than-
0.1.Wherein threshold value -0.1 is after carrying out many experiments to multiple typical video sequences for switching situation containing this kind, and adjustment obtains
Make the optimal value of encoding efficiency.
In one embodiment of the invention, the second resetting condition is:The second resetting condition includes:It is described current
The complexity of frame is located between 0.1 times to 0.25 times of the average complexity of preset quantity frame before, and apart from last time weight
It sets interval time 1 second or more.
Wherein if apart from last time resetting interval time less than 1 second when if do not reset, it is therefore an objective to prevent from frequently resetting, compile
Code quality fluctuation.
Step S104:It obtains the code rate according to determined by the code rate control parameter after resetting and carries out what predictive coding was exported
Frame, judges whether its bit number is higher than a high threshold or lower than a Low threshold;Wherein, if bit number is higher than high threshold, correspond to
Simple scenario switches to complex scene;If bit number is lower than Low threshold, simple scenario is switched to corresponding to complex scene;
In one embodiment of the invention, the high threshold is the bit number that target bit rate averagely arrives each frame.
Step S105:If judging, bit number is higher than high threshold, joins to the quantization of the code rate control parameter after the resetting
Number carry out first compensation, wherein it is described first compensation be the quantization parameter of the code rate control parameter after the resetting is limited to
Higher than the quantization parameter of target bit rate control;
In one embodiment of the invention, first compensation method is:
Wherein, qscale is quantization parameter, and predictBits is that the prediction of present frame exports bit number, and targetBits is object code
Rate averagely arrives the bit number of each frame.
To reduce it is possible that the case where bit rate output exceeds target bit rate, to the quantization parameter of code rate control parameter into
Row additional compensation, to reduce reality output bit, control bit rate output is no more than target bit rate, and predicts bit number beyond more
It is more, it compensates stronger.
In one embodiment of the invention, the Low threshold is the 0.64 of the bit number that target bit rate averagely arrives each frame
Times.
Step S106:If judging, bit number lower than Low threshold, joins the quantization of the code rate control parameter after the resetting
Number carries out the second compensation;Wherein, second compensation is to limit the quantization parameter of code rate control parameter after the resetting to low
In the quantization parameter of target bit rate control.
In one embodiment of the invention, second compensation method is:Qscale=qscale × α+qscale ' ×
(1-α);Wherein,Wherein, qscale is quantization parameter, and α is compensation factor,
PredictBits is that the prediction of present frame exports bit number, and targetBits is the bit number that target bit rate averagely arrives each frame.
The coding quality of simple scenario is impacted when to prevent missing inspection, it is necessary to quantization after code rate control
Parameter carries out additional compensation.The consensus forecast bit number that simple dim scene is found by many experiments is mostly target bit
0.61 times or so, therefore method of the invention is set in when prediction bit number is less than 0.64 times of target bit and just works,
And predict that bit number deviates that target bit is more serious, and compensation dynamics is bigger so that encoder to the scene of simple dark into
The more accurate coding of row, reduces distortion.In addition, working as α very little, image complexity is also very low, and the content encoded is very
Few, even if being encoded at this time using the quantization parameter of very little, the bit number of reality output will not increase too much, so carrying out
The case where increasing suddenly will not occur in the bit rate output of additional compensation.The method of the present invention can be the case where not reducing objective quality
Under, it is effectively improved the subjective quality of coding.
As shown in Fig. 2, showing electronic equipment schematic diagram of the present invention in an embodiment, the electronic equipment 200 includes:
Processor 202, for executing the computer program of the storage of memory 201;Memory 201, is stored thereon with computer program, should
The optimization method that the ABR encoder bit rate controls is realized when program is executed by processor 202.
The memory 201 may include random access memory (RandomAccessMemory, abbreviation RAM), can also
It can further include nonvolatile memory (non-volatilememory), a for example, at least magnetic disk storage.
The processor 202 can be general processor, including central processing unit (CentralProcessingUnit, letter
Claim CPU), network processing unit (NetworkProcessor, abbreviation NP) etc.;It can also be digital signal processor
(DigitalSignalProcessing, abbreviation DSP), specific integrated circuit
(ApplicationSpecificIntegratedCircuit, abbreviation ASIC), field programmable gate array (Field-
ProgrammableGateArray, abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic device
Part, discrete hardware components.
In order to achieve the above objects and other related objects, the present invention also provides a kind of computer readable storage mediums, thereon
It is stored with computer program, the optimization method of the ABR encoder bit rate control is realized when which is executed by processor.
The computer readable storage medium, those of ordinary skill in the art will appreciate that:Realize that above-mentioned each method is implemented
The all or part of the steps of example can be completed by the relevant hardware of computer program.Computer program above-mentioned can store
In a computer readable storage medium.When being executed, execution includes the steps that above-mentioned each method embodiment to the program;And it is aforementioned
Storage medium include:The various media that can store program code such as ROM, RAM, magnetic or disk.
In the treatment process of video, usually using BD-BitRate (BDBR) and BD-PSNR (BDPSNR) come the side of measurement
The quality of method.BDBR illustrates that under same objective quality, the code rate of two methods saves situation;BDPSNR illustrate to
Under fixed same code rate, the difference of the PSNR-Y of two methods, it provides the video obtained using new method relative to original
Situation of change of the method come on code rate and PSNR.In general, code rate reduces, and PSNR increases, and can illustrate that new method has
There is preferable performance.
In the present embodiment, input film source is standard yuv video sequence brightCutting, and it includes have simple scenario to arrive
Complex scene, then arrive simple scenario.
As shown in figure 3, be input film source being that video sequence brightCutting target bit rate is set as 1000Kbps and obtains
Export bit result comparative situation.Between 150-200 sequence number, simple scenario is switched to after complex scene, optimization algorithm
The surge of output bit number is effectively inhibited compared to primal algorithm;Between 300-350 sequence number, complex scene is switched to simply
After scene, optimization algorithm takes full advantage of bit resources compared to primal algorithm, reduces distortion.Optimization algorithm makes coding entire
When video, bit rate output is converged near target bit rate always.
Code rate after controlling primal algorithm for the code rate of video sequence brightCutting and optimize through this embodiment
Control algolithm correlation data is as shown in table 1;
Table 1
When setting target bit rate as 1000Kbps, the bit rate output of the present embodiment optimization algorithm is 899.13Kbps, than
The bit rate output 1237.41Kbps of primal algorithm decreases.
As shown in figure 4, be that input film source be RD curve graph that video sequence brightCutting is obtained, it can from RD curve
To find out, optimization algorithm promotes the coding efficiency of brightCutting sequence, and calculating BDPSNR is the present embodiment
Optimization algorithm improves 0.84dB than primal algorithm, while BDBR reduces by 23.15%, this illustrates that coding efficiency is risen really,
Objective quality improves.
By observing picture quality, complex scene is switched to the coding quality after simple scenario and has been not aware of obvious mistake
Very, effect is satisfactory.The complex scene of coding quality after being switched to to(for) simple scenario is declined, but since this is one
The rapid video of Duan Yundong strong variations, gap is less than significantly different when normal play.Generally speaking, subjective quality on
It rises.
In the present embodiment, input film source is standard yuv video sequence freeCutting, and it includes 5 complexity differences are bright
Aobvious scene switching contains the movie trailer of a large amount of scene switching, complex scene to letter including 2 sections more than 1000 frames
The switching of single game scape also includes the situation that complex scene is switched to simply bright scene.
Code rate control after controlling primal algorithm for the code rate of video sequence freeCutting and optimize through this embodiment
Algorithm correlation data processed is as shown in table 2;
Table 2
It, can be with from RD curve as shown in figure 5, be that input film source be RD curve graph that video sequence freeCutting is obtained
It finds out, optimization algorithm promotes the coding efficiency of freeCutting sequence, calculates BDPSNR as the present embodiment optimization
Algorithm improves 0.50dB than primal algorithm, while BDBR reduces by 14.00%, this illustrates that coding efficiency is risen really, into one
Step demonstrates the validity of algorithm.
By observing picture quality, the promotion of subjective quality is such as video sequence brightCutting, the volume of simple scenario
Code quality gets a promotion, and will appear distortion phenomenon when wherein primal algorithm processing complex scene is switched to simple bright scene, excellent
Change algorithm to be significantly improved this switching situation.In general, subjective quality is risen.
In the present embodiment, list entries video ClassB, the video sequence does not contain the huge scene of complexity difference
Switching, compares experiment using with above-mentioned the same test method.
Code rate after controlling primal algorithm for the code rate of video sequence ClassB and optimize through this embodiment, which controls, to be calculated
Method correlation data is as shown in table 3;
Table 3
As shown in fig. 6, be that input film source be RD curve graph that video sequence ClassB is obtained, in video without containing this
In embodiment when improvement target (the huge scene switching of complexity difference) of optimization algorithm, optimization algorithm and primal algorithm are encoded
Performance is about the same, and RD height of curve is overlapped.Calculating BDBR is -0.04%, BDPSNR 0.0008dB, and performance difference can neglect
Slightly disregard.
In conclusion the optimization method of ABR encoder bit rate control provided by the invention, by the huge field of complexity gap
The judgement of scape, optimization resetting code rate control parameter, and compensated by comparing the quantization parameter that bit number controls code rate, phase
The prior art is had the advantages that:Bit resources are saved after being switched to complex scene for simple scenario, for complexity
Simple scenario after scene switching is assigned with more bit resources, so that distortion reduction, encodes subjective quality and objective quality
It is promoted, optimizes the distribution of bit resources.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should be covered by the claims of the present invention.
Claims (10)
1. a kind of optimization method of ABR encoder bit rate control, which is characterized in that including:
In the case that each frame is encoded using intra-prediction code mode in video sequence, answering for present frame is calculated
Miscellaneous degree;
According to present frame complexity and the mathematical relationship between the average complexity of preset quantity frame before, judge whether scene occur
Switch instances;The scene switching situation includes:Simple scenario switches to complex scene or complex scene switches to simple scenario;
If occurring, and meet that simple scenario switches to the first resetting condition of complex scene or complex scene switches to simple scenario
Second resetting condition, then reset code rate control parameter;It is described resetting code rate control parameter method include:It is accumulative to be allowed to previous frame
Complexity is the complexity of present frame, and being allowed to previous frame weighted cumulative complexity is 1;
It obtains the code rate according to determined by the code rate control parameter after resetting and carries out the frame that predictive coding is exported, judge its bit
Whether number is higher than a high threshold or is lower than a Low threshold;Wherein, it if bit number is higher than high threshold, is switched to corresponding to simple scenario
Complex scene;If bit number is lower than Low threshold, simple scenario is switched to corresponding to complex scene;
If judging, bit number is higher than high threshold, carries out first to the quantization parameter of the code rate control parameter after the resetting and mends
It repays, wherein first compensation is limited the quantization parameter of the code rate control parameter after the resetting to higher than target bit rate
The quantization parameter of control;
If judging, bit number lower than Low threshold, carries out second to the quantization parameter of the code rate control parameter after the resetting and mends
It repays;Wherein, second compensation is limited the quantization parameter of code rate control parameter after the resetting to lower than target bit rate control
The quantization parameter of system.
2. the optimization method of ABR encoder bit rate control according to claim 1, which is characterized in that the first resetting item
Part includes:The complexity of the present frame be greater than 4 times described in front of preset quantity frame average complexity, and/or, it is described
Second resetting condition includes:The complexity of the present frame is located at 0.1 times of the average complexity of preset quantity frame before
To between 0.25 times.
3. the optimization method of ABR encoder bit rate control according to claim 2, which is characterized in that the first resetting item
Part includes:The complexity of the present frame is greater than the average complexity of preset quantity frame, and the occupancy of buffer area before described in 4 times
Amount is greater than -0.1.
4. the optimization method of ABR encoder bit rate control according to claim 2, which is characterized in that the second resetting item
Part includes:The complexity of the present frame be located at it is described before 0.1 times to 0.25 times of average complexity of preset quantity frame it
Between, and apart from last time resetting interval time 1 second or more.
5. the optimization method of ABR encoder bit rate control according to claim 1, which is characterized in that the high threshold is mesh
Coding rate averagely arrives the bit number of each frame.
6. the optimization method of ABR encoder bit rate control according to claim 1, which is characterized in that the Low threshold is mesh
Coding rate averagely arrives 0.64 times of the bit number of each frame.
7. the optimization method of ABR encoder bit rate control according to claim 1, which is characterized in that the first compensation side
Method is:
Wherein, qscale is quantization parameter, and predictBits is that the prediction of present frame exports bit number, and targetBits is mesh
Coding rate averagely arrives the bit number of each frame.
8. the optimization method of ABR encoder bit rate control according to claim 1, which is characterized in that the second compensation side
Method is:
Qscale=qscale × α+qscale ' × (1- α);
Wherein,
Wherein, qscale is quantization parameter, and α is compensation factor, and predictBits is that the prediction of present frame exports bit number,
TargetBits is the bit number that target bit rate averagely arrives each frame.
9. a kind of electronic equipment, which is characterized in that including:Processor, for executing the computer program of memory storage;Storage
Device is stored thereon with computer program, realizes described in any one of claim 1 to 8 when which is executed by processor
The optimization method of ABR encoder bit rate control.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The optimization method of ABR encoder bit rate control described in any item of the claim 1 to 8 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810679940.6A CN108924611B (en) | 2018-06-27 | 2018-06-27 | ABR coding rate control optimization method, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810679940.6A CN108924611B (en) | 2018-06-27 | 2018-06-27 | ABR coding rate control optimization method, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108924611A true CN108924611A (en) | 2018-11-30 |
CN108924611B CN108924611B (en) | 2020-11-27 |
Family
ID=64422808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810679940.6A Active CN108924611B (en) | 2018-06-27 | 2018-06-27 | ABR coding rate control optimization method, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108924611B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111913473A (en) * | 2020-07-31 | 2020-11-10 | 深圳市元征科技股份有限公司 | Code adjusting method, vehicle diagnosis equipment and system |
WO2021068598A1 (en) * | 2019-10-08 | 2021-04-15 | 腾讯科技(深圳)有限公司 | Encoding method and device for screen sharing, and storage medium and electronic equipment |
WO2023142665A1 (en) * | 2022-01-27 | 2023-08-03 | 腾讯科技(深圳)有限公司 | Image processing method and apparatus, and computer device, storage medium and program product |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060239347A1 (en) * | 2005-04-25 | 2006-10-26 | Ashish Koul | Method and system for scene change detection in a video encoder |
CN102158702A (en) * | 2011-04-25 | 2011-08-17 | 南京信息工程大学 | Self-adaption H.264 code rate control method |
CN102625106A (en) * | 2012-03-28 | 2012-08-01 | 上海交通大学 | Scene self-adaptive screen encoding rate control method and system |
CN103841418A (en) * | 2012-11-22 | 2014-06-04 | 中国科学院声学研究所 | Optimization method and system for code rate control of video monitor in 3G network |
CN105208390A (en) * | 2014-06-30 | 2015-12-30 | 杭州海康威视数字技术股份有限公司 | Code rate control method of video coding and system thereof |
CN105376568A (en) * | 2015-12-22 | 2016-03-02 | 广州通达汽车电气股份有限公司 | Optimization method of ABR video coding code rate control |
CN106851272A (en) * | 2017-01-20 | 2017-06-13 | 杭州当虹科技有限公司 | A kind of method of HDR and SDR adaptive rate controls |
CN107454408A (en) * | 2017-06-28 | 2017-12-08 | 深圳中维世纪科技有限公司 | A kind of method of Image Coding code check dynamic adjustment |
-
2018
- 2018-06-27 CN CN201810679940.6A patent/CN108924611B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060239347A1 (en) * | 2005-04-25 | 2006-10-26 | Ashish Koul | Method and system for scene change detection in a video encoder |
CN102158702A (en) * | 2011-04-25 | 2011-08-17 | 南京信息工程大学 | Self-adaption H.264 code rate control method |
CN102625106A (en) * | 2012-03-28 | 2012-08-01 | 上海交通大学 | Scene self-adaptive screen encoding rate control method and system |
CN103841418A (en) * | 2012-11-22 | 2014-06-04 | 中国科学院声学研究所 | Optimization method and system for code rate control of video monitor in 3G network |
CN105208390A (en) * | 2014-06-30 | 2015-12-30 | 杭州海康威视数字技术股份有限公司 | Code rate control method of video coding and system thereof |
CN105376568A (en) * | 2015-12-22 | 2016-03-02 | 广州通达汽车电气股份有限公司 | Optimization method of ABR video coding code rate control |
CN106851272A (en) * | 2017-01-20 | 2017-06-13 | 杭州当虹科技有限公司 | A kind of method of HDR and SDR adaptive rate controls |
CN107454408A (en) * | 2017-06-28 | 2017-12-08 | 深圳中维世纪科技有限公司 | A kind of method of Image Coding code check dynamic adjustment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021068598A1 (en) * | 2019-10-08 | 2021-04-15 | 腾讯科技(深圳)有限公司 | Encoding method and device for screen sharing, and storage medium and electronic equipment |
CN111913473A (en) * | 2020-07-31 | 2020-11-10 | 深圳市元征科技股份有限公司 | Code adjusting method, vehicle diagnosis equipment and system |
CN111913473B (en) * | 2020-07-31 | 2021-10-22 | 深圳市元征科技股份有限公司 | Code adjusting method, vehicle diagnosis equipment and system |
WO2023142665A1 (en) * | 2022-01-27 | 2023-08-03 | 腾讯科技(深圳)有限公司 | Image processing method and apparatus, and computer device, storage medium and program product |
Also Published As
Publication number | Publication date |
---|---|
CN108924611B (en) | 2020-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108924611A (en) | ABR encoder bit rate controls optimization method, electronic equipment and storage medium | |
CN109862359B (en) | Code rate control method and device based on layered B frame and electronic equipment | |
CN101945280B (en) | Method and device for selecting encoding types and predictive modes for encoding video data | |
CN102833538B (en) | Multi-pass video encoding | |
US8832709B2 (en) | Network optimization | |
US7653250B2 (en) | Adjusting sampling rate for encoding | |
CN102300094B (en) | Video coding method | |
CN101188755A (en) | A method for VBR code rate control in AVX decoding of real time video signals | |
WO2016170778A1 (en) | Transmission device, transmission method, and program | |
CN108012149A (en) | A kind of method of Rate Control in Video Coding | |
US20230262232A1 (en) | Video coding method and apparatus, computer-readable medium and electronic device | |
CN113037697A (en) | Video frame processing method and device, electronic equipment and readable storage medium | |
KR100856223B1 (en) | Adaptive encoding mode decision apparatus and method thereof | |
KR20090125150A (en) | Systems and methods for adaptively determining i frames for acquisition and base and enhancement layer balancing | |
CN117597920A (en) | Video coding method, device, equipment and storage medium | |
KR101167645B1 (en) | Method for detecting scene change and apparatus therof | |
CN109819172B (en) | Automatic exposure method and system | |
CN110113602A (en) | A kind of H.264 code rate control frame-skipping optimization method | |
KR20230041031A (en) | Power control method, device, communication node and storage medium | |
US9237352B2 (en) | Methods and systems for encoding pictures associated with video data | |
CN103327329A (en) | Method and system for quantitative adjustment of image quality jump | |
GB2545447B (en) | A method to encode video with close multiple scene changes | |
CN109951707B (en) | Target motion vector selection method and device, electronic equipment and medium | |
AU2011382231A1 (en) | Video quality measurement considering multiple artifacts | |
CN111464860B (en) | Cache allocation method for video data |
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 |