CN106658005A - Video coding method and device - Google Patents

Video coding method and device Download PDF

Info

Publication number
CN106658005A
CN106658005A CN201611255869.6A CN201611255869A CN106658005A CN 106658005 A CN106658005 A CN 106658005A CN 201611255869 A CN201611255869 A CN 201611255869A CN 106658005 A CN106658005 A CN 106658005A
Authority
CN
China
Prior art keywords
video
target bit
training
bit rate
encoder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611255869.6A
Other languages
Chinese (zh)
Other versions
CN106658005B (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.)
Shanghai Synacast Media Technology Co Ltd
Original Assignee
Shanghai Synacast Media 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 Shanghai Synacast Media Technology Co Ltd filed Critical Shanghai Synacast Media Technology Co Ltd
Priority to CN201611255869.6A priority Critical patent/CN106658005B/en
Publication of CN106658005A publication Critical patent/CN106658005A/en
Application granted granted Critical
Publication of CN106658005B publication Critical patent/CN106658005B/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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/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/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output

Abstract

The invention provides a video coding method and a video coding device. The method for training a video coder provided by the embodiment of the invention comprises the following steps of setting the coder to be a secondary coding mode; determining a plurality of target code rates; providing a plurality of training video sources, and executing the following operations on each training video source: using one of the plurality of target code rates as a target code rate, and acquiring a quantization parameter value of the training video source which passes through the coder for the first time; changing the target code rate, and repeating the above steps until the plurality of target code rates are traversed; and determining a relation curve of the target code rates and the quantization parameters of the training video sources. The method also comprises the step of acquiring a fitting curve based on one or more curves in respective relation curves of the target code rates and the quantization parameters of the plurality of training video sources, wherein the fitting curve is to be applied to subsequent video coding of the coder.

Description

Method for video coding and device
Technical field
The present invention is disclosed and is related to Video coding, more particularly to a kind of method and apparatus for reducing video code rate.
Background technology
Web Video Service provider can suppress specific code stream according to the network bandwidth.The user's of viewing Internet video Hardware and network condition are often complicated and diversified, and can vary widely with the time, such as network congestion, network jitter Deng, therefore, it is considered that it is difficult to the video that user customizes specific code check.
For the complexity for taking into account network service quality and realize, existing network video website is general all in advance by video Several gears are compressed to, such as smoothness, high definition, super clear, blue light etc., user can be according to the network condition of oneself and hardware bar Part, selects the video-see of suitable gear.
The prime cost of Internet video website is the network bandwidth expense of great number, accounts for the 60%-70% of totle drilling cost.With The resolution ratio of video and increasing for code check, and the lifting that user is required viewing experience, this departmental cost is also significantly increasing Plus.As how rational cost tackles above-mentioned change, and service quality (Quality of Service, QoS) is not reduced Under the premise of, become the task of top priority of Web Video Service provider.
At present, mostly estimated using time domain or the method for spatial domain estimation estimates video complexity, these are all computation-intensives The method of type, can significantly reduce coding rate, increase encoding time delay, and these methods do not have actual coding, so determining code check Accuracy is relatively low.
The content of the invention
To achieve these goals, a kind of embodiments in accordance with the present invention, it is desirable to provide complexity according to video content To be adaptively adjusted the scheme of video code rate, it is preferable that wish that the program can effectively reduce the encoder bit rate of video, so as to Reduce bandwidth cost.
Specifically, a kind of embodiment of open first aspect of the invention, there is provided side of training video encoder Method, including:
The encoder is set into secondary coding pattern;
Determine multiple target bit rates;
Multiple training film sources are provided, and following operation is performed for wherein each training film source:
- using in the plurality of target bit rate as target bit rate, the training film source is obtained once by described Quantization parameter value after encoder;
- change target bit rate, repeat the above steps, until traveling through the plurality of target bit rate;
- each target bit rate based on the training film source and quantization parameter value pair, determine the target bit rate of the training film source With quantization parameter relation curve;
It is bent with one or more in quantization parameter relation curve based on the respective target bit rate of the plurality of training film source Line, obtains a matched curve, and the matched curve is by for the follow-up Video coding of the encoder.
Optionally it is determined that the step of multiple target bit rates include:
- determine a continuous target bit rate set;
- discrete the plurality of target bit rate of sampling out from the continuous target bit rate set.
Alternatively, the plurality of training film source belongs to different video types.
Alternatively, obtain the training film source is once included the step of the quantization parameter value after the encoder:
Obtain training film source average quantisation parameter value once after the encoder.
Alternatively, based in the respective target bit rate of the plurality of training film source and quantization parameter relation curve or The step of a plurality of curve, one matched curve of acquisition, includes:Select the respective target bit rate of the plurality of training film source and quantify The higher a plurality of curve of quantization parameter, fits the matched curve in parameters relationship curve.
Alternatively, the matched curve correspondence complexity highest video, and be expressed from the next:Qp(k)=a × kb+ c, its Middle a, b and c are the model parameter of the encoder, and k represents code check, QpQuantization parameter value when () represents that code check is k k.
According to another aspect disclosed by the invention, there is provided a kind of method for video coding, including:
I. by video input to be encoded according to the encoder after preceding method training;
Ii. with first code check as target bit rate, the video is obtained average after the encoder for the first time Quantization parameter;
Iii. according to the average quantisation parameter obtained in the first code check and step ii arranged in step i, second code is calculated Rate;
Iv. the video is input into again the encoder by second code check as target bit rate, obtains having encoded Into the video.
Alternatively, step iii includes:
According to b (r)=d × ((QP (r)/QP1)eCalculating second code check, wherein b (r) is the second code to) × r Rate, d, e be predetermined constant, r be first code check, QP1For the average quantization ginseng obtained in step ii Number, QPR () is that r is substituted into the result after the matched curve of the encoder.
According to the embodiment of another aspect disclosed by the invention, there is provided a kind of computer of training video encoder sets It is standby, including:Processor;Memory, the memory storage can be by the instruction of the computing device, when the instruction is held During row so that operate below the computing device:
The encoder is set into secondary coding pattern;
Determine multiple target bit rates;
Multiple training film sources are provided, and following operation is performed for wherein each training film source:
- using in the plurality of target bit rate as target bit rate, the training film source is obtained once by described Quantization parameter value after encoder;
- change target bit rate, repeat the above steps, until traveling through the plurality of target bit rate;
- each target bit rate based on the training film source and quantization parameter value pair, determine the target bit rate of the training film source With quantization parameter relation curve;
And, based on one or many in the respective target bit rate of the plurality of training film source and quantization parameter relation curve Bar curve, obtains a matched curve, and the matched curve is by for the follow-up Video coding of the encoder.
Alternatively, the step of determination multiple target bit rates include:Determine a continuous target bit rate set;From institute State discrete the plurality of target bit rate of sampling out in continuous target bit rate set.
Alternatively, the plurality of training film source belongs to different video types.
Alternatively, obtain the training film source is once included the step of the quantization parameter value after the encoder:Obtain Obtain training film source average quantisation parameter value once after the encoder.
Alternatively, based in the respective target bit rate of the plurality of training film source and quantization parameter relation curve or The step of a plurality of curve, one matched curve of acquisition, includes:Select the respective target bit rate of the plurality of training film source and quantify The higher a plurality of curve of quantization parameter, fits the matched curve in parameters relationship curve.
Alternatively, the matched curve correspondence complexity highest video, and be expressed from the next:Qp(k)=a × kb+ c, its Middle a, b and c are the model parameter of the encoder, and k represents code check, QpQuantization parameter value when () represents that code check is k k.
According to the embodiment of another aspect disclosed by the invention, there is provided a kind of computer equipment for Video coding, Including:Processor;Memory, stores thereon the instruction for being available for the computing device, when executed so that Operate below the computing device:
I. by the encoder after the premenstrual computer equipment training stated of video input to be encoded;
Ii. with first code check as target bit rate, the video is obtained average after the encoder for the first time Quantization parameter;
Iii. according to the average quantisation parameter obtained in the first code check and step ii arranged in step i, second code is calculated Rate;
Iv. the video is input into again the encoder by second code check as target bit rate, obtains having encoded Into the video.
Alternatively, step iii includes:According to b (r)=d × ((Qp(r)/QP1)e) × r is calculating the second code Rate, wherein b (r) be second code check, d, e be predetermined constant, r be first code check, QP1For step ii In the average quantisation parameter that obtains, QPR () is that r is substituted into the result after the matched curve of the encoder.
Compared with prior art, embodiments of the invention have advantages below:It is basically unchanged in guarantee video subjectivity image quality On the premise of, establish video complexity and allow the model of reduction code check;Estimated according to the complicacy self-adaptive of video content Code check needed for video, using the result of first pass coding pass1 in 2pass Rate Controls mode in encoder video content is estimated Complexity, and the code check of second time coding pass2 is changed, hardly increase any amount of calculation;Bit after all of Video coding Rate and quantization parameter (Quantization Parameter, QP) all meet unified relation, and versatility is good.
Description of the drawings
By reading the detailed description made to non-limiting example made referring to the drawings, other of the invention Feature, objects and advantages will become more apparent upon:
Fig. 1 is the method flow schematic diagram of the training video encoder according to embodiment disclosed by the invention;
Fig. 2 is the method flow schematic diagram encoded to video according to embodiment disclosed by the invention;
Fig. 3 is the signal that the matched curve of relation between code check and quantization parameter is represented according to embodiment disclosed by the invention Figure.
Same or analogous reference represents same or analogous part in accompanying drawing.
Specific embodiment
Fig. 1 is the method flow schematic diagram of the training video encoder according to embodiment disclosed by the invention, party's code Can be realized by computer, encoder specifically can be implemented in combination in by computer software or with hardware type.
First, in step 12, encoder is set into secondary coding pattern, in other words, by the Rate Control of encoder Pattern is set to 2pass patterns.Into step 14.
At step 14, multiple target bit rates, for example, TBR1, TBR2 and TBR3 are determined.Specifically, step 14 can be real It is now as follows:Determine a continuous target bit rate set R;Sample out from this continuous target bit rate set discrete multiple Target bit rate, as the result of step 14.
In step 16, there is provided multiple training film sources, and for wherein each training film source execution step 162-166.Wherein, Preferably, these training film sources belong to different video type as much as possible, such as news, physical culture, film, animation etc..
In step 162, with TBR1 as target bit rate, the training film source is sent into encoder, obtain the training film source once Quantization parameter value after encoder, here, the quantization parameter (Q of acquisitionP) value can be mean value, that is, average quantization Parameter value.Thus, a target bit rate for belonging to the training film source and average quantisation parameter value pair are obtained.
In step 164, change with TBR2 as target bit rate, the operation in repeat step 162, be that the training film source is obtained TBR2 corresponding average quantisation parameter value, then, then changes with TBR3 as target bit rate, and the training film source is sent into encoder, Obtain the average quantisation parameter value corresponding with TBR3.
In step 166, each target bit rate and quantization parameter value pair based on the training film source determines the training film source Target bit rate and quantization parameter relation curve, according to an example, the relation curve can be as shown in Figure 3.
It is three groups of parameters pair of this training film source acquisition through step 16, is held by being respectively other training film sources The corresponding operation of row, can respectively obtain three groups of parameters pair for each training film source.If N number of training film source, then Jing steps 16, N bar curves can be obtained, so, contribute to finding out the TBR and quantization parameter corresponding to complexity highest video content The full curve of relation.
Preferably, in step 16, it is each training film source selection target code check, this example according to order from small to large In, it is assumed that TBR1<TBR2<TBR3.If magnitude relationship is unlike this between these parameters, the corresponding sequencing for selecting can Preferably accordingly adjust.
In step 18, from based on the respective target bit rate of the plurality of training film source and quantization parameter relation curve Bar or a plurality of curve, obtain a matched curve, and the matched curve is by for the follow-up Video coding of the encoder.
Specifically, the matched curve in step 18 can be described in the following manner:
Select the respective target bit rate of the plurality of training film source higher with quantization parameter in quantization parameter relation curve One or more curve, fits the matched curve.The curve can be represented with following formula:
Qp(k)=a × kb+c (1)
Wherein a, b and c are the model parameter of the encoder, and k represents code check, QpQuantization ginseng when () represents that code check is k k Numerical value, the matched curve correspondingly corresponds to complexity highest video, because according to coding theory, it is complicated under same code rate Spend the average quantisation parameter value used during high Video coding high.Complexity highest video described herein is not above-mentioned each instruction Complexity highest one in white silk source piece, but the wherein fitting of highest m corresponding data.
According to an alternative, the matched curve can also otherwise be fitted, such as multinomial.
The example that the present invention discloses the parameter selection of the encoder in embodiment is as shown in table 1:
The value of the model parameter of table 1
Gear Resolution ratio Code check/kbps a b c d e
Blue light/original painting 1920x1080 5000/6000 306.70 -0.32 16.99 1.0 1.4
It is super clear 1280x720 1800 194.10 -0.15 -25.05 0.8 0.5
High definition 720x404 850 160.60 -0.12 -34.92 0.8 0.5
It is smooth 480x270 290 -33.44 0.11 105.90 0.8 0.5
Those skilled in the art can according to actual needs select each ginseng according to above-mentioned example and the disclosure of this specification Several values.The selection of parameter a-e is typically when certain models fitting available data is selected, such as mesh during first encoding Average quantisation parameter value after the completion of coding rate and first encoding, arranges certain confidence border (such as 95%), performs interval and estimates The parameter value obtained after meter.
Preferably, when training film source is selected, the high video content of complexity can as far as possible be selected, it must be pointed out that, can Can there is video of the complexity higher than the highest complexity estimated, this is normal.Meanwhile, most complicated video council causes other Video is low and cause code check forecasting inaccuracy true with the relative complexity that its contrast is obtained.
Fig. 2 is the method flow schematic diagram encoded to video according to embodiment disclosed by the invention.
Training in the example shown in Fig. 1, encoder can be used for encoding video, specifically, ginseng Fig. 2 is seen, in step 110, by video input to be encoded according to the encoder Jing after said method training.
In step 112, with first code check as target bit rate, the video is obtained based on for the first time by the coding Average quantisation parameter after device, wherein, first code check can be optional one from aforesaid target bit rate continuous collection Individual code check.
In step 114, according to the first code check used in step 112 and the average quantisation parameter for obtaining, second code is calculated Rate.
In step 116, using second code check as target bit rate, the video is input into again the encoder, is obtained To the video that coding is completed.
Wherein, in step 114:
According to b (r)=d × ((Qp (r)/QP1)e)×r (2)
To calculate second code check, wherein b (r) is second code check, and d, e are predetermined constant (being shown in Table 1), R be first code check, QP1For the average quantisation parameter obtained in step ii, QPR () is that r is substituted into the coding Result after the matched curve of device.Average quantisation parameter value when formula (2) represents first encoding is arranged with during secondary coding Target bit rate relation.
Above-mentioned each method can realize that the computer typically has processor and memory by computer, will Can trigger after the software or instruction storage in memory for performing said method by computing device, you can realize the method such as this.
In order to test the performance of the model for proposing according to embodiments of the present invention, various types of test pieces are inventors tested a larged Source, and some special film sources, test the coding efficiency for obtaining as shown in table 2, and the configuration of test equipment is as shown in table 3.Adopt It is allocated as subjective evaluation index with MOS (Mean of Score) subjectivity suggestions, the test double stimulates quality to comment in strict accordance with continuous Valency method.The span of MOS is 0-50, and MOS values are bigger, illustrate that image quality is better." embodiment " is represented in the embodiment of the present invention The algorithm of proposition, acquiescence represents default encoder, by taking x264 encoders as an example." bit rate " represents the bit rate of video sequence, Representing more than 0 reduces, and represents less than 0 and improves;PSNR represents objective quality, and representing less than 0 reduces, and represents more than 0 and improves;Coding Speed represents and is lifted that representing less than 0 reduces more than 0.
The code check of table 2 saves ratio and image quality
Analytical table 2 can draw to draw a conclusion:
1) " MOS " row are compared it is found that " acquiescence " corresponding video MOS average marks are 49 points, " embodiment " is corresponding Video MOS average marks are 46.19 points, and to different video sequences, this point of change is little.The side of this explanation embodiment of the present invention Image quality and " acquiescence " that case is realized is closely, and little to different video sequence difference.
2) compared with " acquiescence ", the bit rate that the embodiment of the present invention is realized averagely reduces 33.29%, objective image quality index PSNR averagely declines 2.27dB, and coding rate averagely lifts 20.17%.Although PSNR declines are obvious, the index is Objective indicator, it is impossible to effectively weigh the subjective image quality of video.
In sum, the code check that the algorithm coding video sequence for disclosing proposition of the invention is obtained is than default code video sequence Code check reduce 33.29%, and subjective image quality is basically identical.
The test equipment of table 3 is configured
In specification disclosed by the invention, although flow chart is described as operations to be sequentially processed, but therein Many operations can by concurrently, concomitantly or while implement.Additionally, the order of operations can be rearranged.When Process when its operation is completed can be terminated, it is also possible to have the additional step being not included in accompanying drawing.The place Reason can correspond to method, function, code, subroutine, subprogram etc..
Alleged within a context " computer equipment ", referring to can perform numerical value meter by running preset program or instruction The intelligent electronic device of the predetermined process process such as calculation and/or logical calculated, it can include processor and memory, by processor The survival that execution prestores in memory instructs to perform predetermined process process, or is performed by hardware such as ASIC, FPGA, DSP Predetermined process process, or combined to realize by said two devices.Computer equipment include but is not limited to server, PC, Notebook computer, panel computer, smart mobile phone etc..
Computer equipment includes user equipment and the network equipment.Wherein, user equipment includes but is not limited to computer, intelligent hand Machine, PDA etc.;The network equipment includes but is not limited to single network server, the server group of multiple webservers composition or base In the cloud being made up of a large amount of computers or the webserver of cloud computing (Cloud Computing), wherein, cloud computing is distribution One kind that formula is calculated, a super virtual computer being made up of the loosely-coupled computer collection of a group.Wherein, the computer Equipment can isolated operation can access realizing the present invention, also network and by interacting behaviour with other computer equipments in network Make to realize the present invention.Wherein, the network residing for the computer equipment include but is not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN etc..
It should be noted that user equipment, the network equipment and network etc. are only for example, other are existing or may go out from now on Existing computer equipment or network is such as applicable to the present invention, also should be included within the scope of the present invention, and with reference side Formula is incorporated herein.
Method (some of them are illustrated by flow process) discussed in the specification disclosed by the invention can by hardware, Software, firmware, middleware, microcode, hardware description language or its any combination are implementing.When with software, firmware, middleware Or microcode to implement when, can be stored in machine to the program code or code segment of implementing necessary task or computer can In reading medium (such as storage medium).(one or more) processor can implement necessary task.
Concrete structure disclosed herein and function detail are only representational, and are for describing showing for the present invention The purpose of example property embodiment.But the present invention can be implemented by many alternative forms, and be not interpreted as It is limited only by the embodiments set forth herein.
It should be appreciated that when a unit is referred to as " connection " or during " coupled " to another unit, it can directly connect Another unit is connect or be coupled to, or there may be temporary location.On the other hand, when a unit is referred to as " directly connecting Connect " or " direct-coupling " arrive another unit when, then there is no temporary location.Should in a comparable manner explain and be used to retouch State relation between unit other words (such as compared to " between being directly in ... " " between being in ... ", " and with ... it is adjacent Closely " compared to " with ... be directly adjacent to " etc.).
Although it should be appreciated that may have been used term " first ", " second " etc. here to describe unit, But these units should not be limited by these terms.It is used for the purpose of a unit and another unit using these terms Make a distinction.For example, in the case of the scope without departing substantially from exemplary embodiment, it is single that first module can be referred to as second Unit, and similarly second unit can be referred to as first module.Term "and/or" used herein above include one of them or Any and all combination of more listed associated items.
Term used herein above is not intended to limit exemplary embodiment just for the sake of description specific embodiment.Unless Context clearly refers else, and singulative " one " otherwise used herein above, " one " also attempt to include plural number.Should also When being understood by, term " including " used herein above and/or "comprising" specify stated feature, integer, step, operation, The presence of unit and/or component, and do not preclude the presence or addition of one or more other features, integer, step, operation, unit, Component and/or its combination.
It should further be mentioned that in some replaces realization modes, the function/action being previously mentioned can be according to different from attached The order indicated in figure occurs.For example, depending on involved function/action, the two width figures for illustrating in succession actually may be used Substantially simultaneously to perform or can perform in a reverse order sometimes.
It should be noted that the present invention can be carried out in the assembly of software and/or software with hardware, for example, this Each bright device can be realized using special IC (ASIC) or any other similar hardware device.In one embodiment In, the software program of the present invention can pass through computing device to realize steps described above or function.Similarly, it is of the invention Software program (including related data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory, Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the present invention can employ hardware to realize, example Such as, as coordinating so as to perform the circuit of each step or function with processor.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of spirit or essential attributes without departing substantially from the present invention, the present invention can be in other specific forms realized.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference in claim should not be considered as and limit involved claim.This Outward, it is clear that " including ", a word was not excluded for other units or step, and odd number is not excluded for plural number.That what is stated in system claims is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table Show title, and be not offered as any specific order.

Claims (16)

1. a kind of method of training video encoder, including:
The encoder is set into secondary coding pattern;
Determine multiple target bit rates;
Multiple training film sources are provided, and following operation is performed for wherein each training film source:
- using in the plurality of target bit rate as target bit rate, obtain the training film source and once pass through the coding Quantization parameter value after device;
- change target bit rate, repeat the above steps, until traveling through the plurality of target bit rate;
- each target bit rate based on the training film source and quantization parameter value pair, determine the target bit rate and amount of the training film source Change parameters relationship curve;
Based on the respective target bit rate of the plurality of training film source and one or more curve in quantization parameter relation curve, obtain A matched curve is obtained, the matched curve is by for the follow-up Video coding of the encoder.
2. the method for training video encoder according to claim 1, wherein, the step of the determination multiple target bit rates Including:
- determine a continuous target bit rate set;
- discrete the plurality of target bit rate of sampling out from the continuous target bit rate set.
3. the method for training video encoder according to claim 1, wherein, the plurality of training film source belongs to difference Video type.
4. the method for training video encoder according to claim 1, wherein, obtain the training film source and once pass through institute The step of stating the quantization parameter value after encoder includes:
Obtain training film source average quantisation parameter value once after the encoder.
5. the method for training video encoder according to claim 1, wherein, it is respective based on the plurality of training film source The step of one or more curve in target bit rate and quantization parameter relation curve, one matched curve of acquisition, includes:
Quantization parameter is higher in the respective target bit rate of the plurality of training film source of selection and quantization parameter relation curve one Or a plurality of curve, fit the matched curve.
6. the method for training video encoder according to claim 5, wherein, the matched curve correspondence complexity highest Video, and be expressed from the next:
Qp(k)=a × kb+ c, wherein a, b and c are the model parameter of the encoder, and k represents code check, QpK () represents that code check is k When quantization parameter value.
7. a kind of method for video coding, including:
I. the encoder after the method by video input to be encoded according to any one of claim 1-6 is trained;
Ii. with first code check as target bit rate, the video is obtained based on first code check for the first time by the volume Average quantisation parameter after code device;
Iii. according to the average quantisation parameter obtained in the first code check and step ii arranged in step i, the second code check is calculated;
Iv. the video is input into again the encoder by second code check as target bit rate, obtains encoding what is completed The video.
8. method for video coding according to claim 1, wherein, step iii includes:According to b (r)=d × ((Qp (r)/QP1)eCalculating second code check, wherein b (r) is second code check to) × r, and d, e are predetermined constant, and r is First code check, QP1For the average quantisation parameter obtained in step ii, QPR () is that r is substituted into the encoder Matched curve after result.
9. a kind of computer equipment of training video encoder, including:
Processor;
Memory, the memory storage can be by the instruction of the computing device, when executed so that institute State and operated below computing device:
The encoder is set into secondary coding pattern;
Determine multiple target bit rates;
Multiple training film sources are provided, and following operation is performed for wherein each training film source:
- using in the plurality of target bit rate as target bit rate, obtain the training film source and once pass through the coding Quantization parameter value after device;
- change target bit rate, repeat the above steps, until traveling through the plurality of target bit rate;
- each target bit rate based on the training film source and quantization parameter value pair, determine the target bit rate and amount of the training film source Change parameters relationship curve;
And, it is bent with one or more in quantization parameter relation curve based on the respective target bit rate of the plurality of training film source Line, obtains a matched curve, and the matched curve is by for the follow-up Video coding of the encoder.
10. the computer equipment of training video encoder according to claim 9, wherein, it is described to determine multiple object codes The step of rate, includes:
- determine a continuous target bit rate set;
- discrete the plurality of target bit rate of sampling out from the continuous target bit rate set.
The computer equipment of 11. training video encoders according to claim 9, wherein, the plurality of training film source point Belong to different video types.
The computer equipment of 12. training video encoders according to claim 9, wherein, obtain the training film source one The step of secondary quantization parameter value by after the encoder, includes:
Obtain training film source average quantisation parameter value once after the encoder.
The computer equipment of 13. training video encoders according to claim 9, wherein, based on the plurality of training piece The step of one or more curve in the respective target bit rate in source and quantization parameter relation curve, one matched curve of acquisition, wraps Include:
Select a plurality of higher with quantization parameter in quantization parameter relation curve of the plurality of training respective target bit rate of film source Curve, fits the matched curve.
The computer equipment of 14. training video encoders according to claim 13, wherein, the matched curve correspondence is multiple Miscellaneous degree highest video, and be expressed from the next:
Qp(k)=a × kb+ c, wherein a, b and c are the model parameter of the encoder, and k represents code check, QpK () represents that code check is k When quantization parameter value.
A kind of 15. computer equipments for Video coding, including:
Processor;
Memory, stores thereon the instruction for being available for the computing device, when executed so that the process Device performs following operation:
I. the coding after the computer equipment by video input to be encoded according to any one of claim 9-14 is trained Device;
Ii. average quantisation parameter of the video for the first time after the encoder is obtained;
Iii. according to the average quantisation parameter obtained in the first code check and step ii arranged in step i, the second code check is calculated;
Iv. the video is input into again the encoder by second code check as target bit rate, obtains encoding what is completed The video.
16. computer equipments for Video coding according to claim 15, wherein, step iii includes:
According to b (r)=d × ((Qp(r)/QP1)eCalculating second code check, wherein b (r) is second code check to) × r, d, e For predetermined constant, r is first code check, QP1For the average quantisation parameter obtained in step ii, QP(r) It is that r is substituted into the result after the matched curve of the encoder.
CN201611255869.6A 2016-12-30 2016-12-30 Method for video coding and device Expired - Fee Related CN106658005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611255869.6A CN106658005B (en) 2016-12-30 2016-12-30 Method for video coding and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611255869.6A CN106658005B (en) 2016-12-30 2016-12-30 Method for video coding and device

Publications (2)

Publication Number Publication Date
CN106658005A true CN106658005A (en) 2017-05-10
CN106658005B CN106658005B (en) 2019-07-05

Family

ID=58837623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611255869.6A Expired - Fee Related CN106658005B (en) 2016-12-30 2016-12-30 Method for video coding and device

Country Status (1)

Country Link
CN (1) CN106658005B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107205150A (en) * 2017-07-14 2017-09-26 西安万像电子科技有限公司 Coding method and device
CN107371028A (en) * 2017-08-22 2017-11-21 南京惟初信息科技有限公司 A kind of high-quality video coding method for adapting to bandwidth
CN110418177A (en) * 2019-04-19 2019-11-05 腾讯科技(深圳)有限公司 Method for video coding, device, equipment and storage medium
CN112702605A (en) * 2020-12-24 2021-04-23 百果园技术(新加坡)有限公司 Video transcoding system, video transcoding method, electronic device, and storage medium
WO2021135715A1 (en) * 2019-12-31 2021-07-08 武汉Tcl集团工业研究院有限公司 Image compression method and apparatus
CN113347415A (en) * 2020-03-02 2021-09-03 阿里巴巴集团控股有限公司 Coding mode determining method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6876768B1 (en) * 1999-11-30 2005-04-05 Canon Kabushiki Kaisha Image processing apparatus and method, and storage medium
CN101854526A (en) * 2009-03-30 2010-10-06 国际商业机器公司 Code rate control method and code controller
CN104469367A (en) * 2014-12-16 2015-03-25 南京仟壹视讯信息技术有限公司 Video bitrate control method based on frame loss and quantization parameter adjustment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6876768B1 (en) * 1999-11-30 2005-04-05 Canon Kabushiki Kaisha Image processing apparatus and method, and storage medium
CN101854526A (en) * 2009-03-30 2010-10-06 国际商业机器公司 Code rate control method and code controller
CN104469367A (en) * 2014-12-16 2015-03-25 南京仟壹视讯信息技术有限公司 Video bitrate control method based on frame loss and quantization parameter adjustment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107205150A (en) * 2017-07-14 2017-09-26 西安万像电子科技有限公司 Coding method and device
CN107371028A (en) * 2017-08-22 2017-11-21 南京惟初信息科技有限公司 A kind of high-quality video coding method for adapting to bandwidth
CN110418177A (en) * 2019-04-19 2019-11-05 腾讯科技(深圳)有限公司 Method for video coding, device, equipment and storage medium
CN110418177B (en) * 2019-04-19 2021-06-11 腾讯科技(深圳)有限公司 Video encoding method, apparatus, device and storage medium
WO2021135715A1 (en) * 2019-12-31 2021-07-08 武汉Tcl集团工业研究院有限公司 Image compression method and apparatus
CN113132723A (en) * 2019-12-31 2021-07-16 武汉Tcl集团工业研究院有限公司 Image compression method and device
CN113132723B (en) * 2019-12-31 2023-11-14 武汉Tcl集团工业研究院有限公司 Image compression method and device
CN113347415A (en) * 2020-03-02 2021-09-03 阿里巴巴集团控股有限公司 Coding mode determining method and device
CN112702605A (en) * 2020-12-24 2021-04-23 百果园技术(新加坡)有限公司 Video transcoding system, video transcoding method, electronic device, and storage medium

Also Published As

Publication number Publication date
CN106658005B (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN106658005A (en) Video coding method and device
US7755627B2 (en) Global illumination filtering methods and apparatus
CN106296779B (en) A kind of threedimensional model rendering indication method and system
CN107231817A (en) Reduce the time delay in map interface
CN103188493B (en) Image encoding apparatus and image encoding method
CN110211119A (en) Image quality measure method, apparatus, electronic equipment and readable storage medium storing program for executing
CN105144231B (en) The method and apparatus for selecting dynamic range of images operator
CN110377740A (en) Feeling polarities analysis method, device, electronic equipment and storage medium
CN108989804A (en) The coding method of image and device
CN105898296A (en) Video coding frame selection method and device
CN113220815B (en) Regional information processing method and device
CN111539948B (en) Video quality evaluation method, device, electronic equipment and storage medium
CN102903064A (en) Renting deciding method and system
CN113128696A (en) Distributed machine learning communication optimization method and device, server and terminal equipment
CN106412567A (en) Method and system for determining video definition
CN109076211A (en) Renewal step by step in case of motion
CN101639940B (en) Method and system for extracting video attention window sequence based on video contents
CN104284195B (en) Depth map prediction technique, device, encoder and decoder in 3 D video
CN103796226B (en) A kind of network optimized approach and device
CN107767327B (en) Image rendering method and device, computing equipment and display equipment
CN113132757B (en) Data processing method and device
CN105516719B (en) A kind of method for video coding and device
US8994730B2 (en) Optimizing edge crossing computations when creating a drawing of a directed graph having a minimum number of edge crossings
CN113780548A (en) Method, apparatus, device and storage medium for training a model
CN106127404A (en) A kind of evaluation methodology, electronic equipment and electronic installation

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: 20190705

Termination date: 20211230