CN104202660A - Video dividing and transcoding method and device - Google Patents

Video dividing and transcoding method and device Download PDF

Info

Publication number
CN104202660A
CN104202660A CN201410469989.0A CN201410469989A CN104202660A CN 104202660 A CN104202660 A CN 104202660A CN 201410469989 A CN201410469989 A CN 201410469989A CN 104202660 A CN104202660 A CN 104202660A
Authority
CN
China
Prior art keywords
frame
transcoding
sub
sheet
film source
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.)
Pending
Application number
CN201410469989.0A
Other languages
Chinese (zh)
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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201410469989.0A priority Critical patent/CN104202660A/en
Publication of CN104202660A publication Critical patent/CN104202660A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a video dividing and transcoding method and device. The method includes: dividing a video source into a plurality of sub-videos, wherein each sub-video comprises a plurality of frames; transcoding each sub-video to obtain the global statistic information of each sub-video, wherein the global statistic information of each sub-video at least comprises the frame level information of all the frames in the video source; estimating the complexity of each frame according to the frame level information of all the frames in the video source, and adjusting the quantization parameters in each frame level information of each frame according to the complexity of each frame and preset target code rate of the video source after transcoding; transcoding an optional frame in each sub-video according to the adjusted quantization parameters of the optional frame in each sub-video until all the sub-videos are transcoded, and combining all the transcoded sub-videos according to the sequence, obtained during video source dividing, of the sub-videos to obtain the jointed transcoded video source. The method has the advantages that effective video source code rates are reasonably distributed through comprehensive and global consideration, and even quality and definition of the whole video source during playing are achieved.

Description

Burst code-transferring method and device
Technical field
The application relates to technical field of telecommunications, is specifically related to a kind of method and burst transcoding device of burst transcoding.
Background technology
Society, along with the electric terminal system being in various forms and the generation of various players, to the call format of video file also becoming increasingly complex, variation.Each family's terminal has the own video format of supporting, the player that the terminal of take is carrier also has the video format of oneself supporting, and on network, provide Downloadable video file often to only have a kind of form, moreover also often more single from the video file format of some video record instrument outputs, if a kind of video file of form need to be play or another kind of player is play in another terminal, its form likely can not meet the demand of terminal or player, now just need to carry out video format conversion is video code conversion, to meet user's demand.
Video code conversion is exactly a kind of video file of form to be converted to the video file of another form, in practical operation, and the video file that some are long, its video code conversion time is longer, to user, brings puzzlement.For addressing this problem, mostly adopt the speed that a long video slicing transcoding is promoted to transcoding, be about to segment length's video and be divided into some sub-sheets, every height sheet carries out while transcoding on different CPU or transcoding machine simultaneously, after completing etc. all whole transcodings of sub-sheet, again all sub-sheet after transcoding is merged to splicing and process, become a new complete video.
But separate between each height sheet due to separated some sub-sheets, the Data Rate Distribution that can not take the whole situation into account and plan accordingly, causes the quality of each height sheet uneven.So just need to provide a kind of method to deal with because Data Rate Distribution is uneven and then make the quality of each height sheet different, cause coding quality afterwards compared with the quality of full wafer coding, to have the problem of obvious decline.
Summary of the invention
The application's technical problem to be solved is to provide a kind of method and burst transcoding device of burst transcoding, solves long video in burst transcoding process, because the different Data Rate Distribution of taking the whole situation into account and plan accordingly causes the quality of each height sheet uneven.
In order to solve the problems of the technologies described above, the application has disclosed a kind of burst code-transferring method, comprising: a film source is divided into some sub-sheets, and wherein every height sheet comprises some frames; Described some sub-sheets are carried out respectively to pre-transcoding, obtain the global statistics information of every height sheet, the global statistics information of described every height sheet at least comprises the frame level information of all frames in described film source; According to the complexity of the every frame of frame level data-evaluation of all frames in described film source, and according to the target bit rate after the complexity of described every frame and default film source transcoding, adjust the quantization parameter in the frame level information of every frame; According to the quantization parameter after the adjustment of arbitrary frame in every height sheet, arbitrary frame in described every height sheet is carried out to transcoding, until all sub-sheet transcodings complete, all sub-sheet after the order of the sub-sheet obtaining while cutting apart according to described film source completes transcoding merges, and is spliced into the described film source after transcoding.
Further, according to the target bit rate after the complexity of described every frame and default film source transcoding, adjust the quantization parameter in the frame level information of every frame, comprising: step a: the quantification increment of adjusting described arbitrary frame according to the complexity of arbitrary frame; Step b: be that described arbitrary frame distributes transcoding bit number according to the frame level information of the quantification increment after the adjustment of described arbitrary frame and described arbitrary frame, and the transcoding bit number distributing by every frame calculates the transcoding code check of the described film source after adjustment; Step c: the transcoding code check of the described film source after relatively adjusting and the target bit rate after default film source transcoding, if both differ by more than predetermined threshold value, according to the complexity ratio between all frames in described film source, again adjust the quantification increment in the frame level information of every frame, repeated execution of steps b to c; If differing, both are less than or equal to predetermined threshold value, execution step d; Steps d: the quantification increment after the adjustment of arbitrary frame described in the step b carrying out is for the last time converted to the quantization parameter after the final adjustment of every frame.
Further, according to the frame level information of the quantification increment after the adjustment of described arbitrary frame and described arbitrary frame, be that described arbitrary frame distributes transcoding bit number, comprise: according to the transcoding bit number of the residual error transcoding bit number in the frame level information of described arbitrary frame, motion vector and header transcoding bit number, in conjunction with the quantification increment of described arbitrary frame, calculate the transcoding bit number distributing for described arbitrary frame.
Further, the transcoding bit number distributing by every frame calculates the transcoding code check of the described film source after adjustment, comprising: for arbitrary sub-sheet, according to the transcoding bit number that in described arbitrary sub-sheet, every frame distributes, calculate the transcoding code check of described arbitrary sub-sheet; Averaging again after the transcoding code check of all sub-sheets is superposeed, calculates the transcoding code check of the described film source after adjustment.
Further, described some sub-sheets are carried out respectively to pre-transcoding, obtain the global statistics information of every height sheet, the global statistics information of described every height sheet at least comprises the frame level information of all frames in described film source, comprise: described some sub-sheets are carried out respectively to pre-transcoding, obtain the statistical information of every height sheet; To arbitrary sub-sheet, the statistical information of described arbitrary sub-sheet is made number one, after the order of the sub-sheet obtaining while cutting apart according to described film source comes the statistical information of described arbitrary sub-sheet by the statistical information of other sub-sheets, thereby the statistical information of all sub-sheets is merged to the global statistics information that obtains described every height sheet.
Further, the statistical information of described every height sheet, at least comprises: the frame level information of each frame of sequentially arranging in described sub-sheet; In the global statistics information of described every height sheet, the frame level information of the end frame of last height sheet, the frame level information that connects the start frame of a rear sub-sheet, and when the described arbitrary sub-sheet making number one be not the order cut apart according to sub-sheet rank the first sub-sheet time, the frame level information of the start frame of the sub-sheet that the order of cutting apart according to sub-sheet ranks the first, connects the frame level information of the end frame of the sub-sheet that comes end.
Further, the complexity of described every frame, be described every frame pixel play up number of times with respect to the comparison value of playing up number of times of all pixels of whole film source.
Further, the global statistics information of described every height sheet that pre-transcoding obtains, at least also comprises the quantification increment of each macro block that each frame in described film source is contained; According to the quantization parameter after the adjustment of arbitrary frame in every height sheet, described arbitrary frame is carried out to transcoding, comprise: to arbitrary macro block, according to the quantization parameter after the adjustment of the quantification increment of described arbitrary macro block and described arbitrary macro block place frame, obtain the quantization parameter after the adjustment of arbitrary macro block; According to the quantization parameter after the adjustment of each macro block in arbitrary frame, each macro block in arbitrary frame is carried out to transcoding, until all macro blocks all complete transcoding in described arbitrary frame.
In order to solve the problems of the technologies described above, itself has please also disclosed a kind of burst transcoding device, comprise: pre-transcoding module, for a film source is divided into some sub-sheets, wherein every height sheet comprises some frames, described some sub-sheets are carried out respectively to pre-transcoding, obtain the global statistics information of every height sheet, the global statistics information of described every height sheet at least comprises the frame level information of all frames in described film source; Data Rate Distribution module, for the complexity of the every frame of frame level data-evaluation according to all frames in described film source, and according to the target bit rate after the complexity of described every frame and default film source transcoding, adjusts the quantization parameter in the frame level information of every frame; Transcoding module, carries out corresponding transcoding according to the quantization parameter after the adjustment of arbitrary frame in every height sheet to described arbitrary frame, until the transcoding of all sub-sheets completes, all sub-sheet after the order of cutting apart according to sub-sheet completes transcoding merges, and is spliced into described film source.
Further, described Data Rate Distribution module, for adjusting the quantification increment of described arbitrary frame according to the complexity of arbitrary frame, according to the frame level information of the quantification increment after the adjustment of described arbitrary frame and described arbitrary frame, be that described arbitrary frame distributes transcoding bit number, and the transcoding bit number distributing by every frame calculate the transcoding code check of the described film source after adjustment, the transcoding code check of the described film source after relatively adjusting and the target bit rate after default film source transcoding, if both differ by more than predetermined threshold value, according to the complexity ratio between all frames in described film source, again adjust the quantification increment in the frame level information of every frame, according to the frame level information of the quantification increment after every framing control and every frame, be that every frame distributes transcoding bit number, and the transcoding bit number distributing by every frame calculates the transcoding code check of the described film source after adjustment, again detect the transcoding code check of the described film source after adjusting and the target bit rate after default film source transcoding, until differing, both are less than or equal to described threshold value, quantification increment using the quantification increment of every frame that adjustment obtains for the last time after the final adjustment of every frame, quantification increment after the final adjustment of described every frame is converted to the quantization parameter after the final adjustment of every frame.
Compared with prior art, the application can obtain and comprise following technique effect:
When each height sheet is carried out to Data Rate Distribution, capital considers the situation of other all sub-sheets, from overall angle, the frame of having adjusted before considering has distributed how many transcoding bit numbers, and whole film source is also left how many transcoding bit numbers, after the frame that also do not have to adjust how much have be to need to distribute larger transcoding bit number, and present frame is compared with frame below, from ratio, be want some transcoding bit numbers of overabsorption or distribute less, under so comprehensive overall situation is considered, determine that arbitrary frame distributes how many transcoding bit numbers suitable, thereby effective film source code check is reasonably distributed, make content comparatively complicated, the sub-sheet high to demand bit rate all obtained the Data Rate Distribution that conforms to, and the simple sub-sheet of content does not just need larger code check, like this after every height sheet transcoding completes, after sub-sheet splicing, whole film source is in playing process, quality, definition can be comparatively even.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the present application, forms the application's a part, and the application's schematic description and description is used for explaining the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the method flow diagram of the embodiment of the present application one;
Fig. 2 is the method flow diagram of the embodiment of the present application two;
Fig. 3 is the method flow diagram of the embodiment of the present application three;
Fig. 4 is the method flow diagram of the embodiment of the present application four;
Fig. 5 is the structure drawing of device of the embodiment of the present application five.
Embodiment
To coordinate drawings and Examples to describe the application's execution mode in detail below, by this application's implementation procedure how application technology means solve technical problem and reach technology effect can be fully understood and be implemented according to this.
As used some vocabulary in the middle of specification and claim, censure specific components.Those skilled in the art should understand, and hardware manufacturer may be called same assembly with different nouns.This specification and claims are not used as distinguishing the mode of assembly with the difference of title, but the difference in function is used as the criterion of distinguishing with assembly.If " comprising " mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition " couple ", or " electric connection " word comprises directly any and electric property coupling means indirectly at this.Therefore, if describe a first device in literary composition, be coupled to one second device, represent that described first device can directly be electrically coupled to described the second device, or be indirectly electrically coupled to described the second device by other device or the means that couple.Specification subsequent descriptions is for implementing the application's better embodiment, and right described description is to illustrate that the application's rule is object, not in order to limit the application's scope.The application's protection range is when being as the criterion depending on the claims person of defining.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, commodity or the system that make to comprise a series of key elements not only comprise those key elements, but also comprise other key element of clearly not listing, or be also included as the intrinsic key element of this process, method, commodity or system.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, commodity or the system that comprises described key element and also have other identical element.Described in the embodiment of the present application, " transcoding " can also be called " coding ".
embodiment mono-
A kind of burst code-transferring method that the embodiment of the present application discloses, as shown in Figure 1, it comprises the following steps:
Step S100, is divided into some sub-sheets by a film source.
Can determine the quantity of cutting apart sub-sheet according to the duration of film source and the ability of single cpu or the working condition of burst transcoding device of processing one to one every height sheet.In general, the duration of every height sheet approaches, but is all to using key frame as the beginning of cutting apart sub-sheet.Every height sheet after cutting apart also comprises some frames, and each frame also comprises some macro blocks.Meanwhile, after cutting apart, the transcoding code check of every height sheet all equates, equals the transcoding code check of film source, and doing is like this to calculate quantization parameter for convenient below, thereby redistributes transcoding code check for every height sheet.
Preferably, it 2.5 minutes is the duration of a sub-sheet that the present embodiment adopts, and for example 25 minutes film sources of overall length have just been divided into 10 sub-sheets.
Step S102, carries out respectively pre-transcoding to the some sub-sheet obtaining in step S100, obtains the global statistics information of every height sheet.
In existing mode, after pre-transcoding, can obtain the statistical information of every height sheet, the statistical information of every height sheet generally comprises: the macro-block level information of each macro block in the frame level information of every frame and every frame in the global information of every height sheet, every height sheet.
The global information of every height sheet, comprising: overall transcoding parameter, such as code check of whole film source etc.; The frame level information of every frame, comprise: quantization parameter (quantizationparameter, qp), bit information, inter macroblocks number, intra-frame macro block number, reference frame and weight estimation coefficient (weighting coefficients) that frame type, transcoding are used; The macro-block level information of each macro block, comprising: the quantification increment (quantizationscale, qscale) of each macro block in frame.
Statistical information is the basis of carrying out transcoding Data Rate Distribution and transcoding, as the mode of prior art is only used the statistical information of every height sheet to current sub-sheet transcoding, and does not consider the overall situation, can cause so every height sheet only according to the situation of self, to distribute transcoding code check.Seem and distribute rationally, in its tangible whole film source, every height sheet can not be in full accord for the requirement of transcoding code check, there is the image data amount of a little large, for transcoding code check, require high, and have the image data amount of a little little, for transcoding code check, require very low, in the situation that the transcoding limited bit rate of whole film source, do not have transcoding Data Rate Distribution to having most on the sub-sheet of demand, after every height sheet transcoding completes, cause on the contrary each sub-tablet quality uneven, and then quality scope after transcoding of the sub-sheet that content is more complicated can be declined to a great extent.
And what obtain by pre-transcoding in the application is the global statistics information of every height sheet, the global statistics information of described every height sheet at least comprises: the macro-block level information of each macro block in every frame in the frame level information of all frames and film source in the global information of all sub-sheets, film source.Obviously, different from existing mode, in the application, the global statistics information of every height sheet not only has the statistical information of current sub-sheet, also has the statistical information of other all sub-sheets in film source.Like this, when each height sheet is carried out to transcoding Data Rate Distribution, capital considers the situation of other all sub-sheets, from overall angle, effective film source code check is reasonably distributed, that content is comparatively complicated, the sub-sheet high to transcoding demand bit rate all obtained the Data Rate Distribution that conforms to, like this after every height sheet transcoding completes, after sub-sheet splicing, whole film source is in playing process, and quality, definition can be comparatively even.
For how, when pre-transcoding, obtain the global statistics information of every height sheet, reference example two and Fig. 2.
Step S104, according to the complexity of the every frame of frame level data-evaluation of all frames in described film source, and according to the target bit rate after the complexity of described every frame and default film source transcoding, adjusts the quantization parameter in the frame level information of every frame.
Target bit rate after film source transcoding is the transcoding code check of wishing that whole film source has after transcoding, but whole film source is difficult to accurately equal target bit rate after transcoding after the actual transcoding through step S100 to S106, but meeting infinite approach target bit rate, in a rational threshold interval round target bit rate.
The complexity of described every frame, refer to described every frame pixel play up number of times with respect to the comparison value of playing up number of times of all pixels of whole film source, for weighing the complexity of the content that every frame carries, the bit rate that the frame that complexity is high obviously need to take is also high.The method of measuring the complexity of every frame belongs to the category of prior art, can be referring to the published patent documentation about herein, and on these documents, the method for the complexity of the every frame of disclosed measurement all can be for the application's scheme.
Below enumerating corresponding example conducts further description complexity.For example, only demonstrate a face wall at a certain frame in the picture that the video data carrying presents, the complexity of this frame is 1; If showing in the picture that the video data carrying at a certain frame presents that there is a people at the station above of wall, the complexity of its picture is higher, and the complexity of this frame is 2; If there is a doggie to stand in the centre of people and wall in the picture presenting at the video data that has again a frame to carry, the complexity of its picture is the highest in three, and the complexity of this frame is 3, by that analogy.It should be noted that, the value of above-mentioned complexity is only used for convenience of description, does not limit the application's protection range.The complexity of present frame refers to the number of times that picture that present frame presents need to be played up, and the complexity of film source is to have gathered the complexity of all pictures in whole film source, and the complexity of film source is a fixing numerical value.The ratio of the complexity of a certain frame and the complexity of whole film source obtain the complexity ratio of described frame.
According to the complexity of the every frame of frame level data-evaluation of all frames in described film source, according to the complexity of described every frame, obtain the quantification increment of every frame, according to the quantification incremental computations of every frame, go out the transcoding code check that whole film source may reach, if the target bit rate after this transcoding code check and default film source transcoding differs larger, the quantification increment that every frame is described is obtained improper, adjust the quantification increment of every frame, calculate again the transcoding code check that whole film source may reach, again compare the target bit rate after this transcoding code check and default film source transcoding, if still differ larger, continue to adjust in the mode of iteration the quantification increment of every frame, until the target bit rate after the transcoding code check that whole film source may reach and default film source transcoding is close, difference reaches a reasonable interval, the quantification increment of finally adjusting the every frame obtaining is converted to quantization parameter.
Step S106, according to the quantization parameter after the adjustment of arbitrary frame in every height sheet, arbitrary frame in described every height sheet is carried out to corresponding transcoding, until the transcoding of all sub-sheets completes, all sub-sheet after the order of the sub-sheet obtaining while cutting apart according to described film source completes transcoding merges, and is spliced into the described film source after transcoding.
To the result before every height sheet transcoding, be: suppose that A is the original code check of described film source, the N obtaining after cutting apart a sub-sheet code check is respectively A1, A2 ... An, n=[1, N], A1 is exactly the actual bit rate of the 1st sub-sheet that obtains after cutting apart, A2 is exactly the actual bit rate of the 2nd sub-sheet that obtains after cutting apart ..., A1=A2 now ...=An, obviously also has following relation (A1+A2+ ... An)/N=A.
Result after every height sheet transcoding is: suppose that B is the target bit rate after default film source transcoding, N sub-sheet code check is respectively B1, B2 ... Bn, n=[1, N], B1 is exactly the pre-transcoding code check of setting to the 1st sub-sheet according to B, B2 is exactly the pre-transcoding code check of setting to the 2nd sub-sheet according to B ... (B1+B2+ ... Bn)/N=B, and B1, B2 ... between Bn, according to actual needs separately, configure, so B1, B2 ... may be different in numerical relation between Bn.
embodiment bis-
In step S102, carry out the process of pre-transcoding, acquisition be the global statistics information of every height sheet, the statistical information that comprises all sub-sheets of whole film source, certainly, for different frames, in global statistics information, the putting in order of statistical information of all sub-sheets had any different.When each height sheet is carried out to Data Rate Distribution, all can consider the situation of other all sub-sheets, from overall angle, effective film source code check is reasonably distributed.
As shown in Figure 2, step S102 further comprises:
Step S1020, carries out respectively pre-transcoding to described some sub-sheets, obtains the statistical information of every height sheet.
All sub-sheets are carried out respectively to pre-transcoding, and wherein every height sheet carries out pre-transcoding by corresponding transcoder or CPU separately respectively, between sub-sheet, when pre-transcoding, is separate carrying out.
For example, film source is divided into 100 sub-sheets, by the order of cutting apart, the sequence number of sub-sheet is respectively 0 to 100.After pre-transcoding, obtain respectively the statistical information of sub-sheet 0, the statistical information of sub-sheet 1, the statistical information of sub-sheet 2 ... the statistical information of sub-sheet 100.
Step S1022, to arbitrary sub-sheet, the statistical information of described arbitrary sub-sheet is made number one, after the order of the sub-sheet obtaining while cutting apart according to described film source comes the statistical information of described arbitrary sub-sheet by the statistical information of other sub-sheets, thereby the statistical information of all sub-sheets is merged to the global statistics information that obtains described every height sheet.
For example, after pre-transcoding, obtain respectively the statistical information of sub-sheet 0, the statistical information of sub-sheet 1, the statistical information of sub-sheet 2 ... the statistical information of sub-sheet 100.For sub-sheet 0, the statistical information of sub-sheet 0 is made number one, the statistical information of sub-sheet 1 afterwards, the statistical information of sub-sheet 2 ... it is finally the statistical information of sub-sheet 100, then this little is combined, has so just obtained a complete statistical information that comprises all sub-sheets and with the orderly statistical information string of the statistical information beginning of sub-sheet 0.The global statistics information that this statistical information string is exactly sub-sheet 0.
Specifically, during merging, the frame level information of the end frame of last height sheet, connects the frame level information of the start frame of a rear sub-sheet.The statistical information of described every height sheet, at least comprises: the frame level information of each frame of sequentially arranging in described sub-sheet.The example continuing above, the frame level information of the end frame in sub-sheet 0 is connected with the frame level information of start frame in sub-sheet 1, the frame level information of the end frame in sub-sheet 1 is connected with the frame level information of start frame in sub-sheet 2, by that analogy, until the frame level information of the end frame in sub-sheet 99 is connected with the frame level information of start frame in sub-sheet 100.
Also have a kind of situation, for example, after pre-transcoding, obtain respectively the statistical information of sub-sheet 0, the statistical information of sub-sheet 1, the statistical information of sub-sheet 2 ... the statistical information of sub-sheet 100.For sub-sheet 2, the statistical information of sub-sheet 2 is made number one, be the statistical information of sub-sheet 3 afterwards, the statistical information of sub-sheet 4 ... finally the statistical information of sub-sheet 100, the statistical information of sub-sheet 0, the statistical information of sub-sheet 1.Then this little is combined, has so just obtained a complete statistical information that comprises all sub-sheets and with the orderly statistical information string of the statistical information beginning of sub-sheet 2.The global statistics information that this statistical information string is exactly sub-sheet 2.
Specifically, when the described arbitrary sub-sheet making number one be not the order cut apart according to sub-sheet rank the first sub-sheet time, the frame level information of the start frame of the sub-sheet that the order of cutting apart according to sub-sheet ranks the first, connects the frame level information of the end frame of the sub-sheet that comes end.For example, the frame level information of the end frame in sub-sheet 2 is connected with the frame level information of start frame in sub-sheet 3, the frame level information of the end frame in sub-sheet 3 is connected with the frame level information of start frame in sub-sheet 4, by that analogy, until the frame level information of the end frame in sub-sheet 99 is connected with the frame level information of start frame in sub-sheet 100, then the frame level information of the end frame in sub-sheet 100 is connected with the frame level information of start frame in sub-sheet 0, finally the frame level information of the end frame in sub-sheet 0 is connected with the frame level information of start frame in sub-sheet 1, so just obtained the orderly statistical information string with the statistical information beginning of sub-sheet 2.The global statistics information that this statistical information string is exactly sub-sheet 2, the global statistics information of sub-sheet 2 comprises the frame level information with all frames of film source of the frame level information beginning of the frame in sub-sheet 2.
Only know follow-up transcoding situation (complexity), could set up rational transcoding code check for current sub-sheet.Obviously, the Rate Control that global statistics information can be taken the whole situation into account and plan accordingly, the while can also be instructed the Rate Control of present frame.
embodiment tri-
In step S104, the quantization parameter of the every frame of initial setting up, this initial setting up is not consider the overall situation of other frames of film source.So the quantization parameter of initial setting up can complete transcoding, but after the effect of transcoding and transcoding, the code check of whole film source is improper possibly, also need further iteration adjustment, but the quantization parameter of every frame initial setting up provides good adjustments basic for follow-up adjustment.After can be according to the overall situation of all frames of film source, for each frame configures rational quantization parameter, then simulate transcoding and obtain film source code check, whether the setting of quantization parameter of relatively considering every frame by the transcoding code check of whole film source and the film source target bit rate of setting is reasonable, the unreasonable quantization parameter that continues the every frame of iteration adjustment.
As shown in Figure 3, step S104 further comprises:
Step S1040, according to the complexity of the every frame of frame level data-evaluation of all frames in described film source.
Step S1042, according to the quantification increment of the described arbitrary frame of complexity adjustment of arbitrary frame.
According to the complexity of arbitrary frame, be that described arbitrary frame initial setting up quantizes increment, for example, can quantize according to this formula (1.1) initial assignment of increment:
Qscale=complexity^0.6; Formula (1.1)
Wherein, the complexity that complexity is arbitrary frame, the quantification increment that qscale is described arbitrary frame.Quantification increment that in this way just can the every frame of initial setting up, the quantification increment of every frame of this initial setting up is used in calculating afterwards, the quantization parameter in the frame level information of the every frame obtaining while not using pre-transcoding.Need explanation, above-mentioned formula is just in order preferably to describe the present embodiment, and it does not make restriction to the application's protection range, and other initial assignment modes also can realize the application.
Step S1044 is that described arbitrary frame distributes transcoding bit number according to the frame level information of the quantification increment after the adjustment of arbitrary frame and described arbitrary frame.
The frame level information of described arbitrary frame comprises the bit information of described arbitrary frame, this bit information comprises: the residual error transcoding bit number of described arbitrary frame, the transcoding bit number of motion vector and header transcoding bit number, according to the transcoding bit number of the residual error transcoding bit number of described arbitrary frame, motion vector and header transcoding bit number, in conjunction with the quantification increment after the adjustment of described arbitrary frame, calculate the transcoding bit number distributing for described arbitrary frame, for example, can carry out the calculating that distributes transcoding bit number for described arbitrary frame according to this formula (1.2):
Expected_bits=text_bits * qscale 1.1+ mv_bits * qscale 0.5+ misc_bits formula (1.2)
Wherein, qscale is the quantification increment after the adjustment of described arbitrary frame, text_bits is the residual error transcoding bit number of described arbitrary frame, mv_bits is the transcoding bit number of the motion vector of described arbitrary frame, misc_bits is the header transcoding bit number of described arbitrary frame, and expected_bits is the transcoding bit number distributing for every frame.Need explanation, above-mentioned formula is just in order preferably to describe the present embodiment, and it does not make restriction to the application's protection range, and other initial assignment modes also can realize the application.
Here can also be according to the absolute error of the quantification increment of described arbitrary frame and data that described arbitrary frame carries and, calculate the signaling rate distortion factor of described arbitrary frame, according to the signaling rate distortion estimation of described arbitrary frame, for describing the minimum transcoding bit number of data that described arbitrary frame carries, the transcoding bit number distributing for described arbitrary frame in this step is not less than described minimum transcoding bit number.The transcoding bit number simultaneously distributing when described arbitrary frame is less than minimum transcoding bit number, also can know and tune up the transcoding bit number that described arbitrary frame distributes, corresponding strategy and the direction of knowing the quantification increment of adjusting described arbitrary frame.
Step S1046, the transcoding bit number distributing by every frame estimates the transcoding code check of the described film source after adjustment.
For arbitrary sub-sheet, according to the transcoding bit number that in described arbitrary sub-sheet, every frame distributes, calculate the transcoding code check of described arbitrary sub-sheet; For example, with the transcoding bit number that in described arbitrary sub-sheet, every frame distributes, make the cumulative total transcoding bit number that obtains described arbitrary sub-sheet, then with total transcoding bit number of described arbitrary sub-sheet divided by the duration that is multiplied by described arbitrary sub-sheet, thereby obtain the transcoding code check of described arbitrary sub-sheet, and then obtain the transcoding code check of all sub-sheets.
Averaging again after the transcoding code check of all sub-sheets is superposeed, calculates the transcoding code check of the described film source after adjustment.For example, film source always has 100 sub-sheets, and the transcoding code check stack of 100 sub-sheets, then divided by 100, has just been obtained to the transcoding code check of the described film source after adjusting.
Step S1048, the transcoding code check of the described film source after relatively adjusting and the target bit rate after default film source transcoding, if both differ by more than a threshold value, perform step S1050, if both differ, is less than or equal to described threshold value, performs step S1052.
Step S1050, according to the complexity ratio between all frames in described film source, adjusts the quantification increment in the frame level information of every frame again, returns to execution step S1044;
In step S1042, according to the complexity of arbitrary frame, be just directly the quantification increment initial assignment of described arbitrary frame, the process of this assignment is as described in front step S1042, do not consider the overall situation, just independently consider the situation of each frame, this assignment is obviously to need to adjust, because can not reasonably reflect that each frame is for the demand that quantizes increment and the distribution of transcoding bit number.
In step S1050, according to the complexity ratio between all frames in described film source, can reasonably infer and each frame should in what status in whole film source, thereby estimate the reasonable demand of the transcoding bit number of oneself.For example, for arbitrary frame, according to the complexity ratio of the frame of having added up before described arbitrary frame, the complexity ratio of the frame of not adding up after described arbitrary frame, readjusts the quantification increment of described arbitrary frame.
While adjusting the quantification increment in the frame level information of every frame in step S1050, do not use the formula (1.1) using in the operation of step S1042.Because the transcoding bit number that should distribute of every frame and the complexity of every frame are directly proportional, if the complexity of arbitrary frame is high, and the complexity ratio of it and other frames of film source is also high, illustrate that the transcoding bit number that described arbitrary frame should distribute is larger, and this transcoding bit number to account for the proportion of total transcoding bit number of whole film source also large, contrary reason is similar, according to the ratio of complexity, just can know like this ratio and the adjustment trend of distribution of the transcoding bit number of each frame, the transcoding bit number that a certain frame distributes has if lacked, can suitably heighten, like this will corresponding adjustment amount quantizer input quantization increment.Quantize increment and there are a plurality of numerical value ranks, when adjustment amount quantizer input quantization increment, just heighten a numerical value rank accordingly like this, often heighten a rank, just return to step S1044.By the operation of similar mode, repeatedly repeatedly adjust the quantification increment of every frame.
In the specific implementation of quantification increment of adjusting every frame, can realize the rule of thumb rank table of set amount quantizer input quantization increment, for example set several ranks, the corresponding concrete quantification increment numerical value of each rank, the initial quantization parameters arranging according to step S1042 is selected corresponding rank, according to the ratio of the complexity of present frame, know the adjustment trend of the transcoding bit number of present frame, according to the corresponding rank of heightening or turn down a quantification increment of the adjustment trend of the transcoding bit number of present frame, then according to step S1044, to step S1050, go iteration.Certainly, in the specific implementation of the application for the method for adjustment of the quantification increment of every frame, be not limited to this.
Step S1052, the quantification increment using the quantification increment of adjusting for the last time the every frame obtain after the final adjustment of every frame, is converted to the quantification increment after the final adjustment of described every frame the quantization parameter after the final adjustment of every frame.
In this step, obtained the applicable quantification increment of final adjustment, the quantification increment after the final adjustment of this every frame.Obviously, from step S1040 to step S1052, be by continuous calculation, the film source code check that simulation transcoding finally obtains, whether the quantification increment of calculating every frame is reasonable, and the value that quantizes increment can finally have influence on the transcoding code check of whole film source.
What in actual transcoding, need to use is quantization parameter, so also the quantification increment after the adjustment of described every frame will be converted to quantization parameter, the quantization parameter of every frame and the transcoding bit number distributing for every frame are inversely proportional to, for example, can calculate according to this formula (1.3) quantization parameter of every frame:
QP=12.0f+6.0f*log2f (qscale/0.85f) formula (1.3)
F is float Floating-point Computation, quantification increment after the adjustment of the arbitrary frame of qscale, QP is the quantization parameter of the arbitrary frame after corresponding conversion, and the quantization parameter of this arbitrary frame after transforming is exactly the quantization parameter of every frame of using while carrying out formal transcoding in step S106.Need explanation, above-mentioned formula is just in order preferably to describe the present embodiment, and it does not make restriction to the application's protection range, and other initial assignment modes also can realize the application.
embodiment tetra-
At step S100~S104, substantially complete the preparation before all transcodings, and by simulation estimate, obtained the distribution of the transcoding bit number of every frame in the most rational every height sheet and every height sheet, this distribution is to realize by the quantization parameter of every frame.In S106, will carry out real transcoding according to the quantization parameter of the every frame after the adjustment finally obtaining.
In step S102, obtained the global statistics information of every height sheet, as previously mentioned, the global statistics information of every height sheet at least also comprises the quantification increment of each macro block that interior each frame of described film source is contained.As shown in Figure 4, step S106 further comprises:
Step S1060, to arbitrary macro block, according to the quantization parameter after the adjustment of the quantification increment of described arbitrary macro block and described arbitrary macro block place frame, obtains the quantization parameter after the adjustment of arbitrary macro block.
Macro block is the least unit of video file, and each frame of film source all comprises a plurality of macro blocks.Each macro block also has the quantization parameter of oneself, and this quantization parameter has also determined the transcoding bit number of macroblock allocation, but the quantization parameter of macro block does not need, as every frame, to iterate to adjust.
The quantization parameter that has obtained final every frame of determining by step S104, this quantization parameter is the average quantisation parameter of every frame in fact, is the average of the quantization parameter of each macro block in every frame.And in step S102, from the global statistics information of every height sheet, obtained the quantification increment of each macro block during pre-transcoding.Therefore according to the quantification increment of each macro block in the average quantisation parameter of arbitrary frame and frame, just can obtain the quantization parameter of each macro block, for example, for each macro block in frame, on the basis of average quantisation parameter, increase or reduce the corresponding increment that quantizes, certainly, the application is not limited to this.
Step S1062, according to the quantization parameter after the adjustment of each macro block in arbitrary frame, carries out transcoding to each macro block in arbitrary frame, until all macro blocks all complete transcoding in described arbitrary frame, has just completed the transcoding to arbitrary frame.
embodiment five
A kind of burst transcoding device that the embodiment of the present application also discloses, as shown in Figure 5, comprising: the pre-transcoding module 500, Data Rate Distribution module 502 and the transcoding module 504 that are connected successively.
Pre-transcoding module 500, for a film source is divided into some sub-sheets, wherein every height sheet comprises some frames, described some sub-sheets are carried out respectively to pre-transcoding, obtain the global statistics information of every height sheet, the global statistics information of described every height sheet at least comprises the frame level information of all frames in described film source;
Data Rate Distribution module 502, for the complexity of the every frame of frame level data-evaluation according to all frames in described film source, and according to the target bit rate after the complexity of described every frame and default film source transcoding, adjusts the quantization parameter in the frame level information of every frame;
Transcoding module 504, carries out corresponding transcoding according to the quantization parameter after the adjustment of arbitrary frame in every height sheet to described arbitrary frame, until the transcoding of all sub-sheets completes, all sub-sheet after the order of cutting apart according to sub-sheet completes transcoding merges, and is spliced into described film source.
Described Data Rate Distribution module 502, further comprises: quantize increasing amount adjustment unit, transcoding code check computing unit, comparing unit and quantization parameter computing unit.
Described quantification increasing amount adjustment unit, is further used for according to the quantification increment of the described arbitrary frame of complexity adjustment of arbitrary frame.
Described transcoding code check computing unit, being used for according to the frame level information of the quantification increment after the adjustment of described arbitrary frame and described arbitrary frame is that described arbitrary frame distributes transcoding bit number, and the transcoding bit number distributing by every frame calculates the transcoding code check of the described film source after adjustment.
Described comparing unit, for the transcoding code check of the described film source after relatively adjusting and the target bit rate after default film source transcoding, if both differ by more than predetermined threshold value, according to the complexity ratio between all frames in described film source, again adjust the quantification increment in the frame level information of every frame, repeat to call and quantize increasing amount adjustment unit, transcoding code check computing unit and comparing unit; If both differ, be less than or equal to predetermined threshold value, call quantization parameter computing unit.By repeating to call quantification increasing amount adjustment unit, transcoding code check computing unit, according to the frame level information of the quantification increment after every framing control and every frame, be that every frame distributes transcoding bit number, and the transcoding bit number distributing by every frame calculate the transcoding code check of the described film source after adjustment; And then calling comparing unit, the transcoding code check of the described film source after again relatively adjusting and the target bit rate after default film source transcoding, be less than or equal to described threshold value until both differ, and then calls described quantization parameter computing unit.
Described quantization parameter computing unit, for the quantification increment after the final adjustment of every frame using the quantification increment of adjusting for the last time the every frame obtain, is converted to the quantification increment after the final adjustment of described every frame the quantization parameter after the final adjustment of every frame.
According to the frame level information of the quantification increment after the adjustment of described arbitrary frame and described arbitrary frame, be that described arbitrary frame distributes transcoding bit number, further comprise: according to the transcoding bit number of the residual error transcoding bit number in the frame level information of described arbitrary frame, motion vector and header transcoding bit number, in conjunction with the quantification increment of described arbitrary frame, calculate the transcoding bit number distributing for described arbitrary frame.
Wherein, the transcoding bit number distributing by every frame calculates the transcoding code check of the described film source after adjustment, further comprises: for arbitrary sub-sheet, according to the transcoding bit number that in described arbitrary sub-sheet, every frame distributes, calculate the transcoding code check of described arbitrary sub-sheet; Averaging again after the transcoding code check of all sub-sheets is superposeed, calculates the transcoding code check of the described film source after adjustment.
Described some sub-sheets are carried out respectively to pre-transcoding, obtain the global statistics information of every height sheet, the global statistics information of described every height sheet at least comprises the frame level information of all frames in described film source, further comprise: described some sub-sheets are carried out respectively to pre-transcoding, obtain the statistical information of every height sheet; To arbitrary sub-sheet, the statistical information of described arbitrary sub-sheet is made number one, after the order of the sub-sheet obtaining while cutting apart according to described film source comes the statistical information of described arbitrary sub-sheet by the statistical information of other sub-sheets, thereby the statistical information of all sub-sheets is merged to the global statistics information that obtains described every height sheet.
The statistical information of described every height sheet, at least comprises: the frame level information of each frame of sequentially arranging in described sub-sheet; In the global statistics information of described every height sheet, the frame level information of the end frame of last height sheet, the frame level information that connects the start frame of a rear sub-sheet, and when the described arbitrary sub-sheet making number one be not the order cut apart according to sub-sheet rank the first sub-sheet time, the frame level information of the start frame of the sub-sheet that the order of cutting apart according to sub-sheet ranks the first, connects the frame level information of the end frame of the sub-sheet that comes end.
The global statistics information of described every height sheet that pre-transcoding obtains, at least also comprises the quantification increment of each macro block that each frame in described film source is contained; According to the quantization parameter after the adjustment of arbitrary frame in every height sheet, described arbitrary frame is carried out to transcoding, further comprise: to arbitrary macro block, according to the quantization parameter after the adjustment of the quantification increment of described arbitrary macro block and described arbitrary macro block place frame, obtain the quantization parameter after the adjustment of arbitrary macro block; According to the quantization parameter after the adjustment of each macro block in arbitrary frame, each macro block in arbitrary frame is carried out to transcoding, until all macro blocks all complete transcoding in described arbitrary frame.The technical scheme of this device and the functional character of each module, connected mode, corresponding with feature and technical scheme described in previous embodiment one to four, weak point refers to previous embodiment one to four.
the application's application scenarios and application example
In order to understand better the application's core thinking, then this enumerates main application scenarios, and the application's protection range was not limited to this at that time.
Suppose that a video film source has 15 minutes, average bit rate is 100kbps, and picture in this video film source is not all valid data, for example wherein having most is blank screen, because blank screen takies transcoding bit number, make blank screen valid data afterwards there is no enough transcoding bit numbers, and cause comparing blank screen valid data before, declining appears in image quality.At this moment can consider that by transcoding, carrying out transcoding bit number sends out and redistribute, because blank screen partly distributes higher transcoding code check obviously nonsensical, if the transcoding bit number that this part transcoding code check is corresponding is assigned on valid data, can make the quality of whole video greatly promote, make the effect of whole film source can be more even.At this moment the target bit rate after default film source transcoding is still 100kbps.
First cut apart---can video film source be divided into three sub-sheets by rational cutting, every height sheet 5 minutes, its neutron sheet 1 and sub-sheet 3 are respectively effective video data, and in sub-sheet 2, are one section of blank screens.The average bit rate of every height sheet is all 100kbps, and the target bit rate after default film source transcoding is also 100kbps.
Carry out afterwards pre-transcoding---obtained transcoding bit number etc. the statistical information of each frame in the average bit rate of every height sheet, sub-sheet, for sub-sheet 1, the statistical information of three sub-sheets is merged, the statistical information of sub-sheet 1 is front, the statistical information of sub-sheet 2 is rear, the statistical information of sub-sheet 3 in the end, obtains the global statistics information of sub-sheet 1; For sub-sheet 2, the statistical information of three sub-sheets is merged, the statistical information of sub-sheet 2 is front, and the statistical information of sub-sheet 3 is rear, and the statistical information of sub-sheet 1 in the end, obtains the global statistics information of sub-sheet 2; For sub-sheet 3, the statistical information of three sub-sheets is merged, the statistical information of sub-sheet 3 is front, and the statistical information of sub-sheet 1 is rear, and the statistical information of sub-sheet 2 in the end, obtains the global statistics information of sub-sheet 3.
Then adjust code check---wish under the prerequisite of film source total bitrate 100kbps now, by sub-sheet 1, 2, 3 change into applicable transcoding code check, all or 5 minutes long, during according to pre-transcoding, the global statistics information of sub-sheet 1 is the every frame distribution transcoding bit number in sub-sheet 1, total transcoding bit number under 100kbps is distributed, the process of distributing can be planned as a whole sub-sheet 1, 2 and 3 situation, the continuous iteration adjustment of quantification increment to the frame under every height sheet, while adjusting the frame in current sub-sheet, to consider the frame of having adjusted before a true frame and the situation that also has the frame of adjusting below, in fact that the frame of having adjusted before throughput quantizer input quantization increment is calculated has distributed how many transcoding bit numbers, and whole film source is also left how many transcoding bit numbers, after the frame that also do not have to adjust how much have be to need to distribute larger transcoding bit number, and present frame is compared with frame below, from ratio, be want some transcoding bit numbers of overabsorption or distribute less, under so comprehensive overall situation is considered, determine that present frame distributes how many transcoding bit numbers suitable.The key factor of this adjustment and measurement is exactly the complexity ratio of each frame and the quantification increment of every frame.Finally obtain the quantification increment of every frame under each suitable sub-sheet, make sub-sheet 1,2 and 3 all obtain applicable transcoding code check.The quantification increment of every frame under each sub-sheet is converted to the quantization parameter of every frame.
Transcoding---according to the transcoding bit number transcoding of each frame after distributing, the quantization parameter of every frame namely, antithetical phrase sheet 1,2 and 3 carries out transcoding, then the sub-sheet after transcoding 1,2 and 3 is merged, and just can obtain reaching the film film source of 100kbps.The final transcoding code check of film film source is just in time not necessarily target bit rate 100kbps, may there is a little difference, for example, sub-sheet 1 and sub-sheet 3 are respectively 150Kbps, sub-sheet 2 is 10Kbps, and the average of the transcoding code check of sub-sheet 1, sub-sheet 2 and sub-sheet 3 is 103kbps left and right, press close to very much 100kbps.And through redistributing transcoding bit number, sub-sheet 2 this section of blank screen pictures are not just almost depleted to transcoding bit number, and almost most transcoding bit numbers have all been assigned on sub-sheet 1 and sub-sheet 3.
Certainly, under other scenes, film film source such as 10 minutes, the average bit rate of this film film source is 100kbps, hope changes into 500kbps by transcoding by its code check, total transcoding bit number has amplified 5 times, must relate to the problem of the distribution of total transcoding bit number, also can carry out by the way redistributing of bit rate.
In addition, if also there is this invalid data that does not need to take more transcoding bit number of blank screen described above in film film source, also can in conjunction with above mode cut down the transcoding bit number consumption of blank screen data.
It should be noted that, above-mentioned concrete numerical value is only for description scheme better, the application's protection range is not restricted.
Above-mentioned explanation has illustrated and has described the application's embodiment, but as previously mentioned, be to be understood that the application is not limited to disclosed form herein, should not regard the eliminating to other embodiment as, and can be used for various other combinations, modification and environment, and can, in invention contemplated scope described herein, by technology or the knowledge of above-mentioned instruction or association area, change.And the spirit and scope that the change that those skilled in the art carry out and variation do not depart from the application, all should be in the protection range of the application's claims.

Claims (10)

1. a burst code-transferring method, is characterized in that, comprising:
One film source is divided into some sub-sheets, and wherein every height sheet comprises some frames;
Described some sub-sheets are carried out respectively to pre-transcoding, obtain the global statistics information of every height sheet, the global statistics information of described every height sheet at least comprises the frame level information of all frames in described film source;
According to the complexity of the every frame of frame level data-evaluation of all frames in described film source, and according to the target bit rate after the complexity of described every frame and default film source transcoding, adjust the quantization parameter in the frame level information of every frame;
According to the quantization parameter after the adjustment of arbitrary frame in every height sheet, arbitrary frame in described every height sheet is carried out to transcoding, until all sub-sheet transcodings complete, all sub-sheet after the order of the sub-sheet obtaining while cutting apart according to described film source completes transcoding merges, and is spliced into the described film source after transcoding.
2. burst code-transferring method as claimed in claim 1, is characterized in that, according to the target bit rate after the complexity of described every frame and default film source transcoding, adjusts the quantization parameter in the frame level information of every frame, further comprises:
Step a: the quantification increment of adjusting described arbitrary frame according to the complexity of arbitrary frame;
Step b: be that described arbitrary frame distributes transcoding bit number according to the frame level information of the quantification increment after the adjustment of described arbitrary frame and described arbitrary frame, and the transcoding bit number distributing by every frame calculates the transcoding code check of the described film source after adjustment;
Step c: the transcoding code check of the described film source after relatively adjusting and the target bit rate after default film source transcoding, if both differ by more than predetermined threshold value, according to the complexity ratio between all frames in described film source, again adjust the quantification increment in the frame level information of every frame, repeated execution of steps b to c; If differing, both are less than or equal to predetermined threshold value, execution step d;
Steps d: the quantification increment after the adjustment of arbitrary frame described in the step b carrying out is for the last time converted to the quantization parameter after the final adjustment of every frame.
3. burst code-transferring method as claimed in claim 2, is characterized in that, according to the frame level information of the quantification increment after the adjustment of described arbitrary frame and described arbitrary frame, is that described arbitrary frame distributes transcoding bit number, further comprises:
According to the transcoding bit number of the residual error transcoding bit number in the frame level information of described arbitrary frame, motion vector and header transcoding bit number, in conjunction with the quantification increment of described arbitrary frame, calculate the transcoding bit number distributing for described arbitrary frame.
4. the method for burst transcoding as claimed in claim 2, is characterized in that, the transcoding bit number distributing by every frame calculates the transcoding code check of the described film source after adjustment, further comprises:
For arbitrary sub-sheet, according to the transcoding bit number that in described arbitrary sub-sheet, every frame distributes, calculate the transcoding code check of described arbitrary sub-sheet;
Averaging again after the transcoding code check of all sub-sheets is superposeed, calculates the transcoding code check of the described film source after adjustment.
5. the method for burst transcoding as claimed in claim 1, it is characterized in that, described some sub-sheets are carried out respectively to pre-transcoding, obtain the global statistics information of every height sheet, the global statistics information of described every height sheet at least comprises the frame level information of all frames in described film source, further comprises:
Described some sub-sheets are carried out respectively to pre-transcoding, obtain the statistical information of every height sheet;
To arbitrary sub-sheet, the statistical information of described arbitrary sub-sheet is made number one, after the order of the sub-sheet obtaining while cutting apart according to described film source comes the statistical information of described arbitrary sub-sheet by the statistical information of other sub-sheets, thereby the statistical information of all sub-sheets is merged to the global statistics information that obtains described every height sheet.
6. the method for burst transcoding as claimed in claim 5, is characterized in that,
The statistical information of described every height sheet, at least comprises: the frame level information of each frame of sequentially arranging in described sub-sheet;
In the global statistics information of described every height sheet, the frame level information of the end frame of last height sheet, the frame level information that connects the start frame of a rear sub-sheet, and when the described arbitrary sub-sheet making number one be not the order cut apart according to sub-sheet rank the first sub-sheet time, the frame level information of the start frame of the sub-sheet that the order of cutting apart according to sub-sheet ranks the first, connects the frame level information of the end frame of the sub-sheet that comes end.
7. the method for burst transcoding as claimed in claim 1, is characterized in that,
The complexity of described every frame, be described every frame pixel play up number of times with respect to the comparison value of playing up number of times of all pixels of whole film source.
8. the method for burst transcoding as claimed in claim 1, is characterized in that,
The global statistics information of described every height sheet that pre-transcoding obtains, at least also comprises the quantification increment of each macro block that each frame in described film source is contained;
According to the quantization parameter after the adjustment of arbitrary frame in every height sheet, described arbitrary frame is carried out to transcoding, further comprises:
To arbitrary macro block, according to the quantization parameter after the adjustment of the quantification increment of described arbitrary macro block and described arbitrary macro block place frame, obtain the quantization parameter after the adjustment of arbitrary macro block;
According to the quantization parameter after the adjustment of each macro block in arbitrary frame, each macro block in arbitrary frame is carried out to transcoding, until all macro blocks all complete transcoding in described arbitrary frame.
9. a burst transcoding device, is characterized in that, comprising:
Pre-transcoding module, for a film source is divided into some sub-sheets, wherein every height sheet comprises some frames, and described some sub-sheets are carried out respectively to pre-transcoding, obtain the global statistics information of every height sheet, the global statistics information of described every height sheet at least comprises the frame level information of all frames in described film source;
Data Rate Distribution module, for the complexity of the every frame of frame level data-evaluation according to all frames in described film source, and according to the target bit rate after the complexity of described every frame and default film source transcoding, adjusts the quantization parameter in the frame level information of every frame;
Transcoding module, carries out corresponding transcoding according to the quantization parameter after the adjustment of arbitrary frame in every height sheet to described arbitrary frame, until the transcoding of all sub-sheets completes, all sub-sheet after the order of cutting apart according to sub-sheet completes transcoding merges, and is spliced into described film source.
10. burst transcoding device as claimed in claim 9, is characterized in that,
Described Data Rate Distribution module, is further used for according to the quantification increment of the described arbitrary frame of complexity adjustment of arbitrary frame, according to the frame level information of the quantification increment after the adjustment of described arbitrary frame and described arbitrary frame, be that described arbitrary frame distributes transcoding bit number, and the transcoding bit number distributing by every frame calculate the transcoding code check of the described film source after adjustment, the transcoding code check of the described film source after relatively adjusting and the target bit rate after default film source transcoding, if both differ by more than predetermined threshold value, according to the complexity ratio between all frames in described film source, again adjust the quantification increment in the frame level information of every frame, according to the frame level information of the quantification increment after every framing control and every frame, be that every frame distributes transcoding bit number, and the transcoding bit number distributing by every frame calculates the transcoding code check of the described film source after adjustment, again detect the transcoding code check of the described film source after adjusting and the target bit rate after default film source transcoding, until differing, both are less than or equal to described threshold value, quantification increment using the quantification increment of every frame that adjustment obtains for the last time after the final adjustment of every frame, quantification increment after the final adjustment of described every frame is converted to the quantization parameter after the final adjustment of every frame.
CN201410469989.0A 2014-09-15 2014-09-15 Video dividing and transcoding method and device Pending CN104202660A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410469989.0A CN104202660A (en) 2014-09-15 2014-09-15 Video dividing and transcoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410469989.0A CN104202660A (en) 2014-09-15 2014-09-15 Video dividing and transcoding method and device

Publications (1)

Publication Number Publication Date
CN104202660A true CN104202660A (en) 2014-12-10

Family

ID=52087875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410469989.0A Pending CN104202660A (en) 2014-09-15 2014-09-15 Video dividing and transcoding method and device

Country Status (1)

Country Link
CN (1) CN104202660A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581169A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Grading transcoding method and device
CN106993199A (en) * 2017-04-28 2017-07-28 暴风集团股份有限公司 A kind of method and system of real-time video transcoding
WO2019071984A1 (en) * 2017-10-10 2019-04-18 腾讯科技(深圳)有限公司 Video transcoding method, computer device and storage medium
CN110753242A (en) * 2019-11-01 2020-02-04 深圳市梦网百科信息技术有限公司 Method and system for adjusting quantization parameters of transcoding slice source frame layer
CN111031389A (en) * 2019-12-11 2020-04-17 Oppo广东移动通信有限公司 Video processing method, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547349A (en) * 2009-04-27 2009-09-30 宁波大学 Method for controlling code rate of secondary AVS encoding of video signal
JP2010050911A (en) * 2008-08-25 2010-03-04 Canon Inc Encoding apparatus
CN102158699A (en) * 2011-03-28 2011-08-17 广州市聚晖电子科技有限公司 Embedded video compression coding system with image enhancement function
CN102665077A (en) * 2012-05-03 2012-09-12 北京大学 Rapid and efficient encoding-transcoding method based on macro block classification
CN103731678A (en) * 2013-12-30 2014-04-16 世纪龙信息网络有限责任公司 Video file parallel transcoding method and system
CN103763559A (en) * 2014-01-09 2014-04-30 能力天空科技(北京)有限公司 Video file transcoding method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010050911A (en) * 2008-08-25 2010-03-04 Canon Inc Encoding apparatus
CN101547349A (en) * 2009-04-27 2009-09-30 宁波大学 Method for controlling code rate of secondary AVS encoding of video signal
CN102158699A (en) * 2011-03-28 2011-08-17 广州市聚晖电子科技有限公司 Embedded video compression coding system with image enhancement function
CN102665077A (en) * 2012-05-03 2012-09-12 北京大学 Rapid and efficient encoding-transcoding method based on macro block classification
CN103731678A (en) * 2013-12-30 2014-04-16 世纪龙信息网络有限责任公司 Video file parallel transcoding method and system
CN103763559A (en) * 2014-01-09 2014-04-30 能力天空科技(北京)有限公司 Video file transcoding method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑从卓等: "存储应用中AVS编码的可变码率控制", 《计算机工程》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581169A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Grading transcoding method and device
CN106993199A (en) * 2017-04-28 2017-07-28 暴风集团股份有限公司 A kind of method and system of real-time video transcoding
WO2019071984A1 (en) * 2017-10-10 2019-04-18 腾讯科技(深圳)有限公司 Video transcoding method, computer device and storage medium
CN109660825A (en) * 2017-10-10 2019-04-19 腾讯科技(深圳)有限公司 Video transcoding method, device, computer equipment and storage medium
CN109660825B (en) * 2017-10-10 2021-02-09 腾讯科技(深圳)有限公司 Video transcoding method and device, computer equipment and storage medium
CN110753242A (en) * 2019-11-01 2020-02-04 深圳市梦网百科信息技术有限公司 Method and system for adjusting quantization parameters of transcoding slice source frame layer
CN110753242B (en) * 2019-11-01 2021-10-12 深圳市梦网视讯有限公司 Method and system for adjusting quantization parameters of transcoding slice source frame layer
CN111031389A (en) * 2019-12-11 2020-04-17 Oppo广东移动通信有限公司 Video processing method, electronic device and storage medium
CN111031389B (en) * 2019-12-11 2022-05-20 Oppo广东移动通信有限公司 Video processing method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN105187835B (en) Adaptive video code-transferring method and device based on content
CN104202660A (en) Video dividing and transcoding method and device
US8405773B2 (en) Video communication quality estimation apparatus, method, and program
CN103402099B (en) The method and system that the picture-level rate of Video coding controls
CN101743753B (en) A buffer-based rate control exploiting frame complexity, buffer level and position of intra frames in video coding
JP4594389B2 (en) Video quality estimation apparatus, method, and program
CN101466035B (en) Method for distributing video image set bit based on H.264
CN101325698B (en) Bit rate control method and apparatus for intra-only video sequence coding
US20110299588A1 (en) Rate control in video communication via virtual transmission buffer
CN109862359A (en) Bit rate control method, device and electronic equipment based on hierarchical B-frame
CN102761741B (en) Video encoding code rate control system and method on basis of caches at encoding and decoding ends
CN102137258B (en) Method for controlling three-dimensional video code rates
CN101795415A (en) Method and device for controlling code rate in video coding
CN108235016A (en) A kind of bit rate control method and device
US20190320175A1 (en) Video coding method, computer device, and storage medium
CN105227955B (en) Ultra high-definition low delay video code rate control method
CN104159095B (en) A kind of multiple views texture video and the bit rate control method of depth map encoding
CN114900692A (en) Video stream frame rate adjusting method and device, equipment, medium and product thereof
CN104581169A (en) Grading transcoding method and device
US20130094571A1 (en) Low latency video compression
CN106454386B (en) A kind of method and apparatus of the Video coding based on JND
CN102780880A (en) Cloud computing terminal and encoding and decoding control method thereof
CN109618156A (en) A kind of video frequency coding rate method of adjustment
CN100486335C (en) Bit rate automatic regulating device
CN105323578A (en) Statistical multiplexing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20181019