CN106572352B - A kind of key frame sign control method and device - Google Patents

A kind of key frame sign control method and device Download PDF

Info

Publication number
CN106572352B
CN106572352B CN201610917915.8A CN201610917915A CN106572352B CN 106572352 B CN106572352 B CN 106572352B CN 201610917915 A CN201610917915 A CN 201610917915A CN 106572352 B CN106572352 B CN 106572352B
Authority
CN
China
Prior art keywords
frame
key frame
quantization parameter
encoded
complexity
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.)
Active
Application number
CN201610917915.8A
Other languages
Chinese (zh)
Other versions
CN106572352A (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201610917915.8A priority Critical patent/CN106572352B/en
Publication of CN106572352A publication Critical patent/CN106572352A/en
Priority to EP17862412.8A priority patent/EP3513563A4/en
Priority to PCT/CN2017/106484 priority patent/WO2018072675A1/en
Priority to US16/387,506 priority patent/US10977498B2/en
Application granted granted Critical
Publication of CN106572352B publication Critical patent/CN106572352B/en
Priority to US17/198,177 priority patent/US11527068B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/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/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/115Selection of the code volume for a coding unit prior to coding

Abstract

The invention discloses a kind of crucial frame sign control method and device.In this method, according to the complexity of encoded frame, the complexity of the key frame of pending coding is estimated, and obtain the first quantization parameter for being used for coding, according to complexity and the first quantization parameter, whether the size after estimating key frame coding is more than preset threshold, if estimated result is more than preset threshold, then determine the second quantization parameter, it is encoded according to the second quantization parameter, so that coding after crucial frame sign be less than or equal to preset threshold, to avoid key frame it is excessive caused by abnormal problem, and then influence video quality.

Description

A kind of key frame sign control method and device
Technical field
The present invention relates to field of video encoding more particularly to a kind of crucial frame sign control method and device.
Background technique
The data volume of video image is bigger, it usually needs it encoded, the data after coding are known as video code flow, Video code flow is by wired or wireless network transmissions to user terminal, then is decoded viewing.Above-mentioned steps mainly include coding, Transmission, decoding etc., in those steps due to being limited by hardware or other conditions, it will usually to compressed video code flow Size there are certain requirements, for example there are upper limit values for network transmission.
Key frame in Video coding is also known as I frame, is the volume in cataloged procedure independent of other encoded video frames Code frame, can carry out independent decoding to I frame code stream, usually using I frame as random access frame in practical application.To realize independent solution The purpose of code, I frame coding can only use intra prediction, and without can be carried out inter-prediction, (usual inter-prediction is more than intra prediction Data redundancy can be eliminated), cause the size for encoding I frame bigger.However, in many application systems all can to coding after I frame Size it is restricted.
The purpose of rate control algorithm is that Video coding is distorted as far as possible while accurately reaching target bit rate in encoder It is small.And code rate refers to the total size of code stream in a period of time, rate control algorithm only reaches code stream within a certain period of time Target value usually can not accurately limit the coding size of frame a certain in cataloged procedure.Therefore, this method is unable to satisfy The demand that I frame sign is precisely limited.
A kind of estimation method of the I frame sign based on edge strength, after integral edge intensity and I the frame compression of I frame Mathematical correlation between frame sign selects quantization parameter.Specifically, whole based on being determined during the pretreatment of particular frame Edge intensity value computing simultaneously selects the quantization parameter for the particular frame according to the target frame sign that reference decoder buffer area provides.Choosing The optimal compression matter of I frame is kept while the quantization parameter selected out allows to work in the available code rate provided by reference decoder Amount.Party's law theory foundation be I frame integral edge intensity and I frame coding after size have good mathematical correlation, but It is from the point of view of the relational graph of its edge strength provided and frame sign, correlation is not fine.Secondly, this method needs to calculate Integral edge intensity, and it is not usually the calculative amount of encoder cataloged procedure that edge strength, which calculates, therefore, this method increases The overhead of encoder.Again, this method is according to the size of decoding buffer zone residue available space in conjunction with edge strength Obtained quantization parameter, the size after I frame encodes is not exceed to distribute to the big of I frame by decoding buffer zone remaining space It is small, but the size that cannot limit I frame meets preset range.
Therefore, there is presently no the methods controlled for I frame sign.
Summary of the invention
The present invention provides a kind of I frame sign control method and device, to realize that the size to I frame limits.
I frame sign control method provided in an embodiment of the present invention, comprising:
According to the complexity of encoded frame, the complexity of key frame to be encoded is estimated;
Obtain the first quantization parameter for coding;
Size according to the complexity of the key frame and first quantization parameter, after estimating the key frame coding It whether is more than preset threshold;
If estimating, the size after the key frame coding is more than preset threshold, it is determined that the second quantization parameter;According to described The size for the key frame that second quantization parameter encodes is less than or equal to preset threshold;
The key frame is encoded according to second quantization parameter.
Optionally, the complexity according to encoded frame, estimates the complexity of key frame to be encoded, packet It includes:
According to the former frame of key frame to be encoded or the complexity of preceding multiframe, to the complexity of key frame to be encoded into Row estimation.
Optionally, the complexity according to encoded frame, estimates the complexity of key frame to be encoded, packet It includes:
And, absolute error to key frame to be encoded and estimated according to the absolute error of encoded frame;
The complexity according to the key frame and first quantization parameter, after estimating the key frame coding Whether size is more than preset threshold, comprising:
According to the absolute error of the key frame and and first quantization parameter, after estimating key frame coding Whether size is more than preset threshold.
Optionally, this method, further includes:
If estimating, the size of the key frame is less than preset threshold, encodes the pass according to first quantization parameter Key frame.
Optionally, the preset threshold of the crucial frame sign, according to network transfer speeds and network transport latency Maximum value determines.
I frame sign control device provided in an embodiment of the present invention, comprising:
First estimation module estimates the complexity of key frame to be encoded for the complexity according to encoded frame Meter;
Module is obtained, for obtaining the first quantization parameter for being used for coding;
Second estimation module, for according to the key frame complexity and first quantization parameter, described in estimation Whether the size after key frame coding is more than preset threshold;
Determining module, if for estimating that the size after the key frame coding is more than preset threshold, it is determined that the second quantization Parameter;According to the size for the key frame that second quantization parameter encodes, it is less than or equal to preset threshold;
Coding module, for encoding the key frame according to second quantization parameter.
Optionally, first estimation module, is specifically used for:
According to the former frame of key frame to be encoded or the complexity of preceding multiframe, to the complexity of key frame to be encoded into Row estimation.
Optionally, first estimation module, is specifically used for:
And, absolute error to key frame to be encoded and estimated according to the absolute error of encoded frame;
Second estimation module, is specifically used for:
According to the absolute error of the key frame and and first quantization parameter, after estimating key frame coding Whether size is more than preset threshold.
Optionally, the coding module is also used to:
If estimating, the size of the key frame is less than preset threshold, encodes the pass according to first quantization parameter Key frame.
Optionally, the preset threshold of the crucial frame sign, according to network transfer speeds and network transport latency Maximum value determines.
In the above embodiment of the present invention, according to the complexity of encoded frame, the complexity of I frame to be encoded is estimated Meter, and the first quantization parameter for coding is obtained, it is big after estimating I frame coding according to complexity and the first quantization parameter Whether small be more than preset threshold, if estimated result is more than preset threshold, it is determined that the second quantization parameter is joined according to the second quantization Number encoded so that coding after I frame sign be less than or equal to preset threshold, to avoid I frame it is excessive caused by ask extremely Topic, and then influence video quality.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, 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 in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is the flow diagram of I frame sign control method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of specific embodiment provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of I frame sign control device provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
I frame is the important references frame in interframe compression coding, is the coded frame of a full frame data compression, and when decoding only uses I The data of frame can reconstruct current and back complete image.For example, terminal is sent to micro-control unit (Microcontroller Unit, abbreviation MCU) is not that complete width picture is sent to distal end every time, but only Latter width picture changed part on previous width field basis is sent, if Network status is bad, terminal is sent to remotely Picture will exist occur because of packet loss image flower screen, image Caton the phenomenon that, in this case if there is no I frame mechanism Terminal is allowed to retransmit the new complete image of a width to distal end, the flower screen of distal end output image, Caton phenomenon can be increasingly tighter Weight.
In order to solve due to I frame it is excessive caused by abnormal problem, for example, being caused due to the limitation of network transfer speeds Within a preset time without the transmission of completion I frame, the embodiment of the invention provides a kind of I frame sign control methods, on solving State problem.
It is the flow diagram of I frame sign control method provided in an embodiment of the present invention, as shown, the party referring to Fig. 1 Method the following steps are included:
Step 101, according to the complexity of encoded frame, the complexity of I frame to be encoded is estimated.
In above-mentioned steps 101, it is alternatively possible to according to the former frame of I frame to be encoded or the complexity of preceding multiframe Degree, estimates the complexity of I frame to be encoded.
Optionally, complexity can be characterized with absolute error and (SAD), i.e., according to the SAD of encoded frame to I to be encoded The SAD of frame is estimated.
For example, I frame to be encoded can be estimated according to the SAD of former frame according to the mathematical relationship as shown in formula (1) SAD.
SADcur=a*SADpre+b (1)
Wherein, SADcurIndicate the complexity of I frame to be encoded, SADpreIndicate the complexity of former frame, a and b distinguish table Show empirical coefficient, which can count by the SAD in advance to a certain number of video frames, fit a, b Value.
Optionally, it can also be counted according to the SAD of the I frame of certain data, determine reflecting for I frame and the SAD of previous I frame Penetrate relationship;When the SAD of the I frame to pending coding estimates, closed according to the SAD of previous I frame and the mapping counted System, determines the SAD of I frame to be encoded.
Step 102 obtains the first quantization parameter for being used for coding.
The relating to parameters that size and encoder after coding video frames select in an encoding process, these parameters include mould Formula, motion information, quantization parameter (Quantization Parameter, abbreviation QP) etc..Select different parameters can be to final The coding bit rate of video has an impact.In these parameters, quantization parameter control is lost during damaging quantification treatment The size of data volume has direct influence to the size of frame after coding.Lesser quantization parameter ensure that more bits are used It is encoded in image, spatial detail as much as possible can be provided when video is rebuild;Larger quantization parameter ensure that output code Rate does not exceed the limitation of buffer area, but increases the distortion after video is rebuild.In the case that other coding parameters all determine, Quantization parameter value directly determines the video quality of encoded video frame and the size of frame.
In practical application, generalling use the quantization parameter that rate control module obtains current encoded frame.Code rate controls mould Root tuber (sometimes can also be without reference to decoding buffer zone according to the target bit rate of input and the size of reference decoder buffer area Limitation), export the quantization parameter of current frame to be encoded.
Step 103, complexity and the first quantization parameter according to above-mentioned I frame, whether the size after estimating I frame coding More than preset threshold.
Specifically, when using SAD characterization complexity, in above-mentioned steps, then quantified according to the SAD of I frame and first Parameter, whether the size after estimation I frame encodes is more than preset threshold.
Preferably, a certain number of samples can be trained using the method for support vector machines in advance, determination is used for Judge I frame sign whether be more than preset threshold kernel function.For example, acquiring a large amount of I frame coded data, comprising: I frame it is big Then small, I frame complexity, quantization parameter are trained the data of acquisition using the method for support vector machines, wherein core Function is using linear kernel function, as shown in formula (2):
Svm_res=qp_w*qp_scale* (qp+qp_shift)+sr_w*sr_scale* (sad+sr_shift)+ bias (2)
Wherein, sad indicates absolute error and qp indicates quantization parameter, qp_w, qp_scale, qp_shift, sr_w, sr_ Scale, sr_shift, bias indicate empirical coefficient.
By training, the empirical coefficient value of the kernel function as shown in formula (2) can be determined.It is determining such as formula (2) Shown in whether be greater than the classifier of preset threshold after kernel function to the I frame sign after coding.
Specifically, in above-mentioned steps 103, the SAD of above-mentioned I frame and the first quantization parameter are substituted into formula (2), if Svm_ Res > 0, then it is assumed that I frame sign after coding can be more than preset threshold, otherwise it is assumed that the I frame sign after coding do not exceed it is pre- If threshold value.
Optionally, preset threshold can be determined according to network transfer speeds and the maximum value of network transport latency.? In monitoring system, the code stream that usual front-end camera (including encoder) generates needs to be transmitted through the network to rear end i.e. receiving end (such as network storage equipment), due to using network transmission, receiving end needs to consider the factor of network delay.It is assumed that receiving end is set It (is more than to receive not yet completely this time that the upper limit value for the every frame video code flow network transport latency set, which is k seconds, One frame video code flow then treats as abnormality processing, such as loss of data) because this time upper limit value needs to consider delay, usually It cannot be arranged too big.If video requency frame data is larger, network transmission time-consuming is more than the upper limit k seconds that network generates the waiting time, then recognizes It is abnormal for the video requency frame data network transmission.Assuming that the size of video frame be M bits, network transfer speeds vbits/s, then The video frame network transmission needs time-consuming M/v seconds.If k < M/v, the network latency needed is more than network transport latency Upper limit value, will appear handle correct data extremely as network transmission at this time.Since the embodiment of the present invention passes through control The method of I frame sign processed solves the above problems, and therefore, it is necessary to enable M≤v*k.It is alternatively possible to by the preset threshold of I frame sign Network transfer speeds are set as multiplied by network transport latency (v*k) bits.
Due to I frame data be much larger than other frames data, can the size of data only to I frame estimated, controlled System, certain embodiment of the present invention are not limited to this, can also be based on the technical concept similar with the embodiment of the present invention, to other views Frequency frame is estimated, is controlled.
If step 104 estimates that the size after above-mentioned I frame coding is more than preset threshold, it is determined that the second quantization parameter.
In above-mentioned steps, the second quantization parameter determined enables to the I after being encoded according to the quantization parameter Frame sign is less than or equal to preset threshold.
Still by taking the above-mentioned linear kernel function determined as an example, size after estimating above-mentioned I frame coding is more than preset threshold, That is when Svm_res > 0, the Svm_res=0 in formula (2) can be enabled, available:
Qp=- ((sr_w*sr_scale* (sad+sr_shift))+bias)/(qp_w*qp_scale)-qp_shift (3)
Enable fixed_x1=- ((sr_w*sr_scale*sr_shift)+bias)/(qp_w*qp_scale), x2=- (sr_w*sr_scale)/(qp_w*qp_scale), then available:
Qp=x2*sad+fixed_x1-qp_shift (4)
According to the quantization parameter that formula (4) is determined, the second quantization parameter can be used as, be used for subsequent cataloged procedure, So that the size of the I frame of next code is less than or equal to preset threshold.But the second quantization parameter is not limited to be counted according to formula (4) The numerical value of calculating is also possible to other values that can satisfy Svm_res≤0;Alternatively, if using other in above-mentioned steps 103 Algorithm estimates I frame sign, then can also be accordingly using other calculations when determining the second quantization parameter at step 104 Method.
Step 105 encodes above-mentioned I frame according to the second quantization parameter.
Wherein, above-mentioned I frame is encoded according to the second quantization parameter, the size of the I frame after enabling to coding is less than or equal to pre- If threshold value.
Optionally, it if being to be less than preset threshold to the estimated result of I frame sign, is encoded still according to the first quantization parameter The I frame.
Above-described embodiment for a clearer understanding of the present invention, it is above-mentioned to the present invention below with a specific embodiment The specific implementation process of embodiment is described, and detailed process is as shown in Figure 2.
Assuming that there are linear relationship, the linear relationship such as aforementioned formula (1) institutes between the SAD of I frame and the SAD of former frame It states.According to collected a large amount of I sample, linear fit is carried out, determines empirical coefficient a and b.In a specific embodiment In, the empirical coefficient determined is a=1, b=1, formula (5) can be obtained:
SADcur=SADpre (5)
Above-mentioned formula indicates that the SAD of current I frame is equal with the SAD of former frame.
The preset threshold of the I frame sign determined according to network transfer speeds and network transport latency is 300kbits.Then it according to the preset threshold, is trained using a large amount of I frame samples of the support vector machines to acquisition, wherein adopt Collection I frame coded data includes: the size of I frame, the SAD of I frame, quantization parameter.I frame using size greater than 300kbits is as positive sample This, i.e. Svm_res=1 in formula (2), using the I frame less than or equal to 300kbits as negative sample, i.e., in formula (2) Svm_res=0, to determine the empirical coefficient in formula (2).In a specific embodiment, the empirical coefficient determined For sr_w=-5.5082, sr_shift=-0.0804, sr_scale=19.6308, bias=9.5505, qp_w= Formula formula (6) can be obtained in 8.6304, qp_shift=-0.2903, qp_scale=14.5165:
Svm_res=125.2832016* (qp-0.2903)+108.13037256* (sad-0.0804)+9.5505 (6)
When estimating current I frame SAD to be encoded, by the SAD of the former frame of the I framepreIt substitutes into formula (5), obtains To the SAD of the I framecur.Then by the SAD of the I framecurFormula (6) are substituted into the first quantization parameter qp_1 for being currently used in coding, Svm_res is calculated.If Svm_res=0, then it is assumed that I frame size after coding does not exceed 300kbits, therefore, It is encoded according to the first quantization parameter qp_1;If Svm_res=1, then it is assumed that the I frame by coding after size can be more than 300kbits, at this point it is possible to enable the part of formula right side of the equal sign be equal to 0, then by the SAD of the I framecurIt substitutes into, it is counter to solve qp, Then as the second quantization parameter qp_2 is encoded according to the second quantization parameter qp_2.
In the above embodiment of the present invention, the complexity of I frame to be encoded is estimated, and obtain for coding the One quantization parameter, according to complexity and the first quantization parameter, whether the size after estimating I frame coding is more than preset threshold, if Estimated result is more than preset threshold, it is determined that the second quantization parameter is encoded according to the second quantization parameter, so that coding I frame sign afterwards be less than or equal to preset threshold, to avoid I frame it is excessive caused by abnormal problem, and then influence video quality.
Based on the same technical idea, the embodiment of the invention provides a kind of I frame sign control devices, for realizing above-mentioned Embodiment of the method, as described in Figure 3, which includes:
First estimation module 301 estimates the complexity of I frame to be encoded for the complexity according to encoded frame Meter;
Module 302 is obtained, for obtaining the first quantization parameter for being used for coding;
Second estimation module 303, for according to the I frame complexity and first quantization parameter, estimate the I Whether the size after frame coding is more than preset threshold;
Determining module 304, if for estimating that the size after the I frame coding is more than preset threshold, it is determined that the second quantization Parameter;According to the size for the I frame that second quantization parameter encodes, it is less than or equal to preset threshold;
Coding module 305, for encoding the I frame according to second quantization parameter.
Optionally, the first estimation module 301, is specifically used for:
According to the former frame of I frame to be encoded or the complexity of preceding multiframe, the complexity of I frame to be encoded is estimated Meter.
Optionally, the first estimation module 301, is specifically used for:
And, absolute error to I frame to be encoded and estimated according to the absolute error of encoded frame;
Second estimation module, is specifically used for:
According to the absolute error of the I frame and and first quantization parameter, the size after estimating I frame coding be No is more than preset threshold.
Optionally, coding module 305 is also used to:
If estimating, the size of the I frame is less than preset threshold, encodes the I frame according to first quantization parameter.
Optionally, the preset threshold of I frame sign, the maximum value according to network transfer speeds and network transport latency are true It is fixed.
In the above embodiment of the present invention, the complexity of I frame to be encoded is estimated, and obtain for coding the One quantization parameter, according to complexity and the first quantization parameter, whether the size after estimating I frame coding is more than preset threshold, if Estimated result is more than preset threshold, it is determined that the second quantization parameter is encoded according to the second quantization parameter, so that coding I frame sign afterwards be less than or equal to preset threshold, to avoid I frame it is excessive caused by abnormal problem, and then influence video quality.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (8)

1. a kind of key frame sign control method characterized by comprising
According to the complexity of encoded frame, the complexity of key frame to be encoded is estimated;
Obtain the first quantization parameter for coding;
According to the complexity of the key frame and first quantization parameter, whether the size after estimating the key frame coding More than preset threshold;
If estimating, the size after the key frame coding is more than preset threshold, it is determined that the second quantization parameter;According to described second The size for the key frame that quantization parameter encodes is less than or equal to preset threshold;
The key frame is encoded according to second quantization parameter;
The complexity according to encoded frame, estimates the complexity of key frame to be encoded, comprising:
According to the former frame of key frame to be encoded or the complexity of preceding multiframe, the complexity of key frame to be encoded is estimated Meter;Or according to the absolute error of encoded frame and, absolute error to key frame to be encoded and estimate.
2. the method as described in claim 1, which is characterized in that
The complexity according to the key frame and first quantization parameter, the size after estimating the key frame coding It whether is more than preset threshold, comprising:
According to the absolute error of the key frame and and first quantization parameter, size after estimating key frame coding It whether is more than preset threshold.
3. the method as described in claim 1, which is characterized in that further include:
If estimating, the size of the key frame is less than preset threshold, encodes the key according to first quantization parameter Frame.
4. the method as described in claim 1, which is characterized in that the preset threshold of the key frame sign, according to network transmission Speed and the maximum value of network transport latency determine.
5. a kind of key frame sign control device characterized by comprising
First estimation module estimates the complexity of key frame to be encoded for the complexity according to encoded frame;
Module is obtained, for obtaining the first quantization parameter for being used for coding;
Second estimation module, for according to the key frame complexity and first quantization parameter, estimate the key Whether the size after frame coding is more than preset threshold;
Determining module, if for estimating that the size after the key frame coding is more than preset threshold, it is determined that the second quantization parameter; According to the size for the key frame that second quantization parameter encodes, it is less than or equal to preset threshold;
Coding module, for encoding the key frame according to second quantization parameter;
First estimation module, is specifically used for:
According to the former frame of key frame to be encoded or the complexity of preceding multiframe, the complexity of key frame to be encoded is estimated Meter;Or according to the absolute error of encoded frame and, absolute error to key frame to be encoded and estimate.
6. device as claimed in claim 5, which is characterized in that
Second estimation module, is specifically used for:
According to the absolute error of the key frame and and first quantization parameter, size after estimating key frame coding It whether is more than preset threshold.
7. device as claimed in claim 5, which is characterized in that the coding module is also used to:
If estimating, the size of the key frame is less than preset threshold, encodes the key according to first quantization parameter Frame.
8. device as claimed in claim 5, which is characterized in that the preset threshold of the key frame sign, according to network transmission Speed and the maximum value of network transport latency determine.
CN201610917915.8A 2016-10-18 2016-10-21 A kind of key frame sign control method and device Active CN106572352B (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN201610917915.8A CN106572352B (en) 2016-10-21 2016-10-21 A kind of key frame sign control method and device
EP17862412.8A EP3513563A4 (en) 2016-10-18 2017-10-17 Methods and systems for video processing
PCT/CN2017/106484 WO2018072675A1 (en) 2016-10-18 2017-10-17 Methods and systems for video processing
US16/387,506 US10977498B2 (en) 2016-10-18 2019-04-17 Methods and systems for video processing
US17/198,177 US11527068B2 (en) 2016-10-18 2021-03-10 Methods and systems for video processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610917915.8A CN106572352B (en) 2016-10-21 2016-10-21 A kind of key frame sign control method and device

Publications (2)

Publication Number Publication Date
CN106572352A CN106572352A (en) 2017-04-19
CN106572352B true CN106572352B (en) 2019-09-17

Family

ID=58533182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610917915.8A Active CN106572352B (en) 2016-10-18 2016-10-21 A kind of key frame sign control method and device

Country Status (1)

Country Link
CN (1) CN106572352B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3513563A4 (en) 2016-10-18 2019-07-24 Zhejiang Dahua Technology Co., Ltd Methods and systems for video processing
CN110662044B (en) * 2019-10-22 2022-02-18 浙江大华技术股份有限公司 Video coding method, video coding device and computer storage medium
CN111787327B (en) * 2020-07-01 2022-08-02 苏州智感电子科技有限公司 Code stream smoothing control method and system
CN113422958B (en) * 2021-05-31 2022-11-08 珠海全志科技股份有限公司 Method, system and medium for controlling size of video coding frame layer code stream
CN113660487B (en) * 2021-07-02 2024-03-19 珠海全志科技股份有限公司 Parameter determination method and device for distributing corresponding bit number for frame image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909662A (en) * 2006-08-07 2007-02-07 浙江大学 Video compression code ratio control method using uneven distribution of frame target bit number
CN101325711A (en) * 2008-07-16 2008-12-17 上海大学 Method for controlling self-adaption code rate based on space-time shielding effect
CN101895759A (en) * 2010-07-28 2010-11-24 南京信息工程大学 H.264 code rate control method
CN104159109A (en) * 2014-05-28 2014-11-19 百视通网络电视技术发展有限责任公司 Bit rate control method and system based on VBR video encoding
CN105376568A (en) * 2015-12-22 2016-03-02 广州通达汽车电气股份有限公司 Optimization method of ABR video coding code rate control

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3024314B1 (en) * 2014-07-25 2017-12-08 Allegro Dvt LOW ENCODED VIDEO ENCODER

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909662A (en) * 2006-08-07 2007-02-07 浙江大学 Video compression code ratio control method using uneven distribution of frame target bit number
CN101325711A (en) * 2008-07-16 2008-12-17 上海大学 Method for controlling self-adaption code rate based on space-time shielding effect
CN101895759A (en) * 2010-07-28 2010-11-24 南京信息工程大学 H.264 code rate control method
CN104159109A (en) * 2014-05-28 2014-11-19 百视通网络电视技术发展有限责任公司 Bit rate control method and system based on VBR video encoding
CN105376568A (en) * 2015-12-22 2016-03-02 广州通达汽车电气股份有限公司 Optimization method of ABR video coding code rate control

Also Published As

Publication number Publication date
CN106572352A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN106572352B (en) A kind of key frame sign control method and device
CN109862359A (en) Bit rate control method, device and electronic equipment based on hierarchical B-frame
CN104301724B (en) Method for processing video frequency, encoding device and decoding device
CN108293130A (en) Pass through the device and method of the coding and decoding video of intra prediction
CN107872669B (en) Video code rate treating method and apparatus
CN110876060B (en) Code rate adjusting method and device in coding process
CA2972989C (en) A method of encoding video with film grain
JP4308227B2 (en) Video quality estimation device, video quality management device, video quality estimation method, video quality management method, and program
TW201306601A (en) Frame encoding selection based on frame similarities and visual quality and interests
CN114051139B (en) Video coding method and device
CN109660801A (en) The method for video coding that quantization parameter is limited
CN109618159A (en) A kind of self-adaptive encoding method based on resolution ratio corresponding relationship
EP3510773B1 (en) Quantisation parameter determination and layered coding
US9635362B2 (en) System and method for the dynamic reduction of the entropy of a signal upstream to a data compression device
CN101389012B (en) Method and device for rate distortion rate control
CN105744270B (en) A kind of method for video coding and device with holder
CN109803146A (en) The second-compressed method and apparatus of video
CN110855908B (en) Multi-party video screen mixing method and device, network equipment and storage medium
CN106888374B (en) A kind of 3 d video encoding method, apparatus and video processing equipment
CN111050169B (en) Method and device for generating quantization parameter in image coding and terminal
Barannik et al. A method to control bit rate while compressing predicted frames
CN105979261B (en) A kind of selection method and device of intra prediction mode
CN105704446B (en) A kind of method and device of multiwindow video switching
CN106937168B (en) Video coding method, electronic equipment and system using long-term reference frame
WO2017105391A1 (en) A method to encode video with close multiple scene changes

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