CN104410861A - Video encoding method and device - Google Patents

Video encoding method and device Download PDF

Info

Publication number
CN104410861A
CN104410861A CN201410682689.0A CN201410682689A CN104410861A CN 104410861 A CN104410861 A CN 104410861A CN 201410682689 A CN201410682689 A CN 201410682689A CN 104410861 A CN104410861 A CN 104410861A
Authority
CN
China
Prior art keywords
parameter
encoding stream
encoded
encoding
coding
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
CN201410682689.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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410682689.0A priority Critical patent/CN104410861A/en
Publication of CN104410861A publication Critical patent/CN104410861A/en
Priority to PCT/CN2015/081814 priority patent/WO2016082529A1/en
Pending legal-status Critical Current

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/103Selection of coding mode or of prediction mode
    • 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/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters

Landscapes

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

Abstract

An embodiment of the invention provides a video encoding method and device. The method includes: respectively encoding to-be-encoded frame images according to at least two groups encoding parameters to obtain at least two encoding streams; respectively acquiring the corresponding encoding information of each encoding stream; selecting the encoding stream with the highest image quality from the encoding streams according to the encoding information corresponding to each encoding stream. By the method, encoding image quality can be increased.

Description

Method for video coding and device
Technical field
The embodiment of the present invention relates to signal processing technology, particularly relates to a kind of method for video coding and device.
Background technology
Picture quality is a vital ring for video coding apparatus.An outstanding video coding apparatus, according to the demand of the feature of difference image to be encoded and subjective and objective picture quality, should select suitable coding parameter.But in actual applications because each frame image to be encoded is before uncoded, be all unknown for code device, be thus difficult to select rational coding parameter before encoding.
For obtaining preferably coded image, prior art, by repeatedly encoding to every two field picture, determines the encoding stream of every two field picture then from this repeatedly encodes multiple encoding streams of obtaining.
But, due to the restriction of the performance of video coding apparatus own, may make to be restricted the picture quality of the encoding stream obtained of repeatedly encoding that every two field picture carries out, the picture quality of the encoding stream of every two field picture cannot be made to be restricted.
Summary of the invention
The embodiment of the present invention provides a kind of method for video coding and device, limited and be difficult to reach desirable image quality requirements with the coding quality solving prior art image.
First aspect, the embodiment of the present invention provides a kind of method for video coding, comprising:
Encode to obtain at least two encoding streams to two field picture to be encoded respectively according at least two group coding parameters;
Coded message corresponding to each encoding stream is obtained respectively according to described at least two encoding streams;
The coded message corresponding according to described each encoding stream selects the encoding stream that picture quality is the highest from described at least two encoding streams.
According to first aspect, in the first mode in the cards of first aspect, described every group coding parameter at least to comprise in following two parameters one: start frame level quantized parameter and target bit.
According to the first mode in the cards of first aspect, in the second mode in the cards, the coded message that described each encoding stream is corresponding at least to comprise in following two parameters one: the average quantisation parameter after coding and final bit number;
The described coded message corresponding according to described each encoding stream selects the encoding stream that picture quality is the highest from described at least two encoding streams, comprising:
In average quantisation parameter from the coded message that described each encoding stream is corresponding after coding and corresponding coding parameter start frame level quantized parameter difference in select difference minimum encoding stream as the highest encoding stream of picture quality; Or,
From the coded message that described each encoding stream is corresponding in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality; Or,
In average quantisation parameter from the coded message that described each encoding stream is corresponding after coding and corresponding coding parameter start frame level quantized parameter difference in select difference minimum, and from coded message corresponding to described each encoding stream in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality.
According to the second of first aspect mode in the cards, in the third mode in the cards, described two field picture to be encoded comprises: at least one macro block;
Described in described basis, at least two encoding streams obtain coded message corresponding to described each encoding stream respectively, comprising:
Obtain the quantization parameter of each macro block in described each encoding stream, determine the average quantisation parameter of at least one macro block described according to the quantization parameter of described each macro block, and the average quantisation parameter of at least one macro block described is defined as the average quantisation parameter after described coding; Or,
Obtain the bit number of each macro block in described each encoding stream, and determine the bit number sum of at least one macro block described according to the bit number of described each macro block, and the bit number sum of at least one macro block described is defined as described final bit number.
According to the first mode in the cards of first aspect, in the 4th kind of mode in the cards, the coded message that described each encoding stream is corresponding also comprises Y-PSNR PSNR;
The described coded message corresponding according to described each encoding stream selects the encoding stream that picture quality is the highest from described at least two encoding streams, comprising:
By the size of PSNR in the coded message that at least two encoding streams described in are relatively corresponding, using encoding stream corresponding for the coded message that comprises maximum PSNR value as the highest encoding stream of picture quality.
According to the 4th kind of mode in the cards of first aspect, in the 5th kind of mode in the cards, the coded message that at least two encoding streams described in described basis obtain described each encoding stream corresponding respectively comprises:
PSNR corresponding to described each encoding stream is obtained respectively according to described at least two encoding streams.
According to the first of first aspect to the 5th kind of mode in the cards any one, in the 6th kind of mode in the cards, before described basis at least two group coding parameter encodes to obtain at least two encoding streams to two field picture to be encoded respectively, described method also comprises:
Preanalysis is carried out to obtain preanalysis information to described two field picture to be encoded;
At least two group coding parameters described in determining according to described preanalysis information.
According to the 6th kind of mode in the cards of first aspect, in the 7th kind of mode in the cards, described determine according to described preanalysis information described in before at least two group coding parameters, described method also comprises:
Obtain to the two field picture before described two field picture to be encoded carry out encoding obtain the coding parameter that the highest encoding stream of picture quality uses;
Described determine according to described preanalysis information described at least two group coding parameters comprise:
At least two group coding parameters described in determining according to described preanalysis information and described used coding parameter.
According to the 6th kind or the 7th kind of mode in the cards of first aspect, in the 8th kind of mode in the cards, described preanalysis information comprises: the Texture complication of described two field picture to be encoded;
Described determine according to described preanalysis information described at least two group coding parameters, comprising:
The Texture complication of more described two field picture to be encoded and the size of the benchmark Texture complication preset, if the Texture complication of described two field picture to be encoded is greater than described benchmark Texture complication, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in described baseline encoded parameter is reduced, thus at least two group coding parameters described in obtaining.
According to the 6th kind or the 7th kind of mode in the cards of first aspect, in the 9th kind of mode in the cards, described preanalysis information comprises: the movable information of described two field picture to be encoded;
Described determine according to described preanalysis information described at least two group coding parameters, comprising:
The movable information of more described two field picture to be encoded and the size of the baseline locomotor information preset, if the movable information of described two field picture to be encoded is greater than described baseline locomotor information, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in described baseline encoded parameter is reduced, thus at least two group coding parameters described in obtaining.
Second aspect, the embodiment of the present invention provides a kind of video coding apparatus, comprising: coding module, acquisition module and selection module; Described coding module is connected with described acquisition module, described acquisition module and described selection model calling;
Wherein, described coding module, for encoding to obtain at least two encoding streams to two field picture to be encoded respectively according at least two group coding parameters;
Described acquisition module, for obtaining coded message corresponding to described each encoding stream respectively according to described at least two encoding streams;
Described selection module, selects the encoding stream that picture quality is the highest for the coded message corresponding according to described each encoding stream from described at least two encoding streams.
According to second aspect, in the first mode in the cards of second aspect, described every group coding parameter at least to comprise in following two parameters one: start frame level quantized parameter and target bit.
According to the first mode in the cards of second aspect, in the second mode in the cards, the coded message that described each encoding stream is corresponding at least to comprise in following two parameters one: the average quantisation parameter after coding and final bit number;
Described selection module, the encoding stream selecting difference minimum in the difference also for start frame level quantized parameter in the average quantisation parameter after coding from coded message corresponding to described each encoding stream and corresponding coding parameter is as the highest encoding stream of picture quality; Or, from the coded message that described each encoding stream is corresponding in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality; Or, in average quantisation parameter from the coded message that described each encoding stream is corresponding after coding and corresponding coding parameter start frame level quantized parameter difference in select difference minimum, and from coded message corresponding to described each encoding stream in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality.
According to the second of second aspect mode in the cards, in the third mode in the cards, described two field picture to be encoded comprises: at least one macro block;
Described acquisition module, also for obtaining the quantization parameter of each macro block in described each encoding stream, determine the average quantisation parameter of at least one macro block described according to the quantization parameter of described each macro block, and the average quantisation parameter of at least one macro block described is defined as the average quantisation parameter after described coding; Or, obtain the bit number of each macro block in described each encoding stream, and determine the bit number sum of at least one macro block described according to the bit number of described each macro block, and the bit number sum of at least one macro block described is defined as described final bit number.
According to the first mode in the cards of second aspect, in the 4th kind of mode in the cards, the coded message that described each encoding stream is corresponding comprises PSNR;
Described selection module, also for the size by PSNR in coded message corresponding at least two encoding streams described in relatively, using encoding stream corresponding for the coded message that comprises maximum PSNR value as the highest encoding stream of picture quality.
According to the 4th kind of mode in the cards of second aspect, in the 5th kind of mode in the cards, described acquisition module, also for obtaining PSNR corresponding to described each encoding stream respectively according to described at least two encoding streams.
According to the first of second aspect to the 5th kind of mode in the cards any one, in the 6th kind of mode in the cards, described video coding apparatus also comprises:
Pre-analysis module, for described coding module according to described at least two group coding parameters respectively described two field picture to be encoded encoded to obtain at least two encoding streams before, preanalysis is carried out to obtain preanalysis information to described two field picture to be encoded;
Determination module, at least two group coding parameters described in determining according to described preanalysis information.
According to the 6th kind of mode in the cards of second aspect, in the 7th kind of mode in the cards, described acquisition module, also for the two field picture before obtaining described two field picture to be encoded carry out encoding obtain the coding parameter that the highest encoding stream of picture quality uses;
Described determination module, also at least two group coding parameters described in determining according to described preanalysis information and described used coding parameter.
According to the 6th kind or the 7th kind of mode in the cards of second aspect, in the 8th kind of mode in the cards, described preanalysis information comprises: the Texture complication of described two field picture to be encoded;
Described determination module, also for the Texture complication of more described two field picture to be encoded and the size of the benchmark Texture complication preset, if the Texture complication of described two field picture to be encoded is greater than described benchmark Texture complication, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in described baseline encoded parameter is reduced, thus at least two group coding parameters described in obtaining.
According to volume the 6th kind or the 7th kind of mode in the cards of second aspect, in the 9th kind of mode in the cards, described preanalysis information comprises: the movable information of described two field picture to be encoded;
Described determination module, also for the movable information of more described two field picture to be encoded and the size of the baseline locomotor information preset, if the movable information of described two field picture to be encoded is greater than described baseline locomotor information, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in described baseline encoded parameter is reduced, thus at least two group coding parameters described in obtaining
The method for video coding that the present embodiment provides and device, by encoding to obtain at least two encoding streams to two field picture to be encoded respectively according at least two group coding parameters, coded message corresponding to described each encoding stream is obtained respectively according to each encoding stream, the coded message corresponding according to described each encoding stream selects the encoding stream that picture quality is the highest from described at least two encoding streams, make the restriction not being subject to video coding apparatus performance of the picture quality of the encoding stream of every two field picture, without the need to improving the performance of video coding apparatus itself, group number by improving the coding parameter adopted of encoding realizes higher image quality requirements, ensure quality of coded picture better.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, introduce doing one to the accompanying drawing used required in embodiment or description of the prior art simply below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of the method for video coding that Fig. 1 provides for the embodiment of the present invention one;
The flow chart of the method for video coding that Fig. 2 provides for the embodiment of the present invention two;
The flow chart of the method for video coding that Fig. 3 provides for the embodiment of the present invention three;
The flow chart of the method for video coding that Fig. 4 provides for the embodiment of the present invention four;
The structural representation of the video coding apparatus that Fig. 5 provides for the embodiment of the present invention five;
The structural representation of the another kind of video coding apparatus that Fig. 6 provides for the embodiment of the present invention five.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
The flow chart of the method for video coding that Fig. 1 provides for the embodiment of the present invention one.The method for video coding of the present embodiment can be performed by video coding apparatus.This method for video coding can be applicable to personal computer, consumption electronic product or video server realizes compress to store or transmit to digital video file.This video coding apparatus can be positioned at CD writer or video disc player.Wherein, CD writer can be digital versatile disc (Digital Versatile Disc, be called for short DVD) or the Writing device of video and audio CD disc (Video CompactDisc, be called for short VCD), this video disc player can be the reading device of DVD or VCD.This method for video coding can also be applied in the scene such as satellite and terrestrial television broadcasts system, video conference, safety monitoring, medical teaching, classroom recorded broadcast, court's trial system.This video coding apparatus can hardware, or the mode that hardware and software module combines is integrated in computer system or video server.As shown in Figure 1, this method for video coding can be specifically comprise:
Step 101, basis at least two group coding parameters encode to obtain at least two encoding streams to two field picture to be encoded respectively.
Optionally, this at least two group codings parameter can be respectively the coding parameter comprising at least one different index parameter.This two field picture to be encoded is any frame image of video resource to be encoded.This two field picture to be encoded can be by this video resource to be encoded is carried out temporal partitioning by second, then video resource per second is carried out according to the frame rate preset the image that temporal partitioning obtains again.This at least two group codings parameter can be that this video coding apparatus generates according to the parameter create-rule preset, the coding parameter that other devices that also can receive for this video coding apparatus are inputted by outer input interface.In the method for video coding that the embodiment of the present invention provides, by encoding to this two field picture to be encoded respectively according to this at least two group codings parameter, can by the demand to this video coding apparatus performance, be dispersed on coding parameters different in this at least two group codings parameter, without the need to improving the performance of this video coding apparatus itself, namely there is by increasing many group codings gain of parameter the encoding stream of higher picture quality.
Encoding to this two field picture to be encoded respectively according to this at least two group codings parameter, can be that synchronization carries out.Carrying out encoding to this two field picture to be encoded can be performed by the coding module in this video coding apparatus.Optionally, the embodiment of the present invention can be by least two coding modules in this video coding apparatus respectively according to the group coding parameter in this at least two group codings parameter, this two field picture to be encoded is encoded simultaneously.
According to this at least two group codings parameter, two field picture to be encoded is encoded, the coded system adopted can be such as arbitrary dynamic image expert group (Motion Pictures Experts Group, be called for short MPEG) coded system, or arbitrary H.26X coded system.It should be noted that, identical to two field picture to be encoded adopted coded system of encoding respectively according to this at least two group codings parameter.
Step 102, obtain coded message corresponding to each encoding stream respectively according to these at least two encoding streams.
Particularly, obtain the coded message that each encoding stream is corresponding, can be in the process of encoding at the two field picture to be encoded to this according to every group coding parameter and after end-of-encode, obtain the coded message that this each encoding stream is corresponding.The coded message that this each encoding stream is corresponding, can comprise the encoded infonnation of this each encoding stream, as bit size, signal to noise ratio etc. after coding.
Step 103, the coded message corresponding according to this each encoding stream select the encoding stream that picture quality is the highest from these at least two encoding streams.
Optionally, this video coding apparatus, can be the picture quality that the coded message corresponding according to this each encoding stream determines this each encoding stream, then according to the picture quality of this each encoding stream, from these at least two encoding streams, select the encoding stream that picture quality is the highest.The coded message corresponding according to this each encoding stream determines the picture quality of this each encoding stream, the picture quality of this each encoding stream can be made more accurate, thus ensure more accurate from the encoding stream that this picture quality selected in these at least two encoding streams is the highest according to the picture quality of this each encoding stream.
For example, in the embodiment of the present invention, the coded message corresponding according to this each encoding stream determines the picture quality of this each encoding stream, can be the signal to noise ratio or bit size etc. that the coded message corresponding according to this each encoding stream determines this each encoding stream, then according to the signal to noise ratio or bit size etc. of this each encoding stream, the picture quality of this each encoding stream is determined.
The method for video coding that the embodiment of the present invention provides, by encoding to obtain at least two encoding streams to this two field picture to be encoded respectively according to this at least two group codings parameter, coded message corresponding to each encoding stream is obtained respectively according to these at least two encoding streams, then corresponding according to this each encoding stream coded message selects the encoding stream that picture quality is the highest from these at least two encoding streams, the picture quality of the encoding stream of every two field picture can be made not by the restriction of video coding apparatus performance, without the need to improving the performance of this video coding apparatus itself, namely the group number by improving coding parameter realizes higher image quality requirements, ensure quality of coded picture better.
Embodiment two
The embodiment of the present invention two also provides a kind of method for video coding.Optionally, in the method for video coding that above-described embodiment one provides, this every group coding parameter at least can to comprise in following two parameters one: start frame level quantized parameter and target bit.
Particularly, in this at least 2 group coding parameter, the parameter type included by every group coding parameter is identical, and just the concrete numerical value of the parameter of those identical types is different.This start frame level quantized parameter in every group coding parameter is the initial quantization parameter of this two field picture to be encoded.
This target bit in this every group coding parameter, can carry out to this two field picture to be encoded the accessible target bits size that coding generates encoding stream for what preset.
Further, the coded message that this each encoding stream is corresponding at least can to comprise in following two parameters one: the average quantisation parameter after coding and final bit number.
Particularly, the parameter type included by coded message that this each encoding stream is corresponding is corresponding with the parameter type included by this every group coding parameter.Group coding parameter as every in this comprises start frame level quantized parameter, and the coded message that so this each encoding stream is corresponding must comprise: the average quantisation parameter after coding.Group coding parameter as every in this comprises target bit, then the coded message that this each encoding stream is corresponding comprises final bit number.Group coding parameter as every in this comprises: start frame level quantized parameter and target bit, then the coded message that this each encoding stream is corresponding comprises: the average quantisation parameter after coding and final bit number.
Optionally, coded message corresponding according to this each encoding stream in above-mentioned steps 103 selects the encoding stream that picture quality is the highest from these at least two encoding streams, can comprise:
In average quantisation parameter from the coded message that this each encoding stream is corresponding after coding and corresponding coding parameter start frame level quantized parameter difference in select difference minimum encoding stream as the highest encoding stream of picture quality.
Particularly, can be the difference calculating start frame level quantized parameter in the average quantisation parameter after encoding in coded message corresponding to this each encoding stream and corresponding coding parameter respectively, and encoding stream minimum for difference is defined as the highest encoding stream of picture quality.
For example, if this at least two group codings parameter is 3 group coding parameters, comprise respectively: initial quantization parameter 1, initial quantization parameter 2 and initial quantization parameter 3.This initial quantization parameter 1 is represented by initial QP1, and this initial quantization parameter 2 is represented by initial QP2, and this initial quantization parameter 3 is represented by initial QP3.According to the coding parameter comprising this initial QP1, this two field picture to be encoded is carried out encoding coded message corresponding to the encoding stream that obtains, comprise average quantisation parameter 1; According to the coding parameter comprising this initial QP2, this two field picture to be encoded is carried out encoding coded message corresponding to the encoding stream that obtains, comprise average quantisation parameter 2; According to the coding parameter comprising this initial QP3, this two field picture to be encoded is carried out encoding coded message corresponding to the encoding stream that obtains, comprise average quantisation parameter 3.This average quantisation parameter 1 is represented by average QP1, and this average quantisation parameter 2 is represented by average QP2, and this average quantisation parameter 3 is represented by average QP3.
In the method for video coding that the embodiment of the present invention provides, it can be the difference comparing the difference of the difference of this initial QP1 and average QP1, initial QP2 and average QP2, initial QP3 and average QP3 respectively, determine the picture quality of the encoding stream that each coding module obtains, the encoding stream selecting difference minimum from these at least two encoding streams is the encoding stream that picture quality is the highest.If the coded message that this each encoding stream is corresponding only comprises final bit number, or, the scheme of the average quantisation parameter after the coded message that this each encoding stream is corresponding comprises coding and final bit number can be adopt above-mentioned similar scheme to realize, and does not repeat them here.
Alternately, coded message corresponding according to this each encoding stream in above-mentioned steps 103 selects the encoding stream that picture quality is the highest from these at least two encoding streams, can also comprise:
From the coded message that this each encoding stream is corresponding in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality.
Alternately, coded message corresponding according to this each encoding stream in above-mentioned steps 103 selects the encoding stream that picture quality is the highest from these at least two encoding streams, can also comprise:
In average quantisation parameter from the coded message that this each encoding stream is corresponding after coding and corresponding coding parameter start frame level quantized parameter difference in select difference minimum, and from coded message corresponding to this each encoding stream in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality.
Further, this two field picture to be encoded comprises: at least one macro block.
If this two field picture to be encoded comprises: at least one macro block, so, encoding to this two field picture to be encoded according to this at least two group codings parameter, can be encode for multiple macro blocks of this two field picture to be encoded respectively according to this at least two group codings parameter.Coded start state, the initial quantization parameter that each macro block in this two field picture to be encoded is corresponding is identical, the start frame level quantized parameter so in this every group coding parameter, then can be the quantization parameter of arbitrary macro block in this two field picture to be encoded.
Optionally, obtain coded message corresponding to each encoding stream respectively according to these at least two encoding streams in step 102 in above-described embodiment one, comprising:
Obtain the quantization parameter of each macro block in this each encoding stream, determine the average quantisation parameter of this at least one macro block according to the quantization parameter of this each macro block, and the average quantisation parameter of this at least one macro block is defined as the average quantisation parameter after this coding; Or,
Obtain the bit number of each macro block in this each encoding stream, and determine the bit number sum of this at least one macro block according to the bit number of this each macro block, and the bit number sum of this at least one macro block is defined as this final bit number.
Further, the coded message that this each encoding stream is corresponding also comprises Y-PSNR (Peak Signalto Noise Ratio is called for short PSNR).
The flow chart of the method for video coding that Fig. 2 provides for the embodiment of the present invention two.As shown in Figure 2, on the basis of the method for video coding that the method provides at above-described embodiment one, coded message corresponding according to this each encoding stream in step 103 selects the encoding stream that picture quality is the highest from these at least two encoding streams, can comprise:
Step 201, by comparing the size of PSNR in coded message corresponding to these at least two encoding streams, using encoding stream corresponding for the coded message that comprises maximum PSNR value as the highest encoding stream of picture quality.
Optionally, obtain coded message corresponding to this each encoding stream respectively according to these at least two encoding streams in the step 102 of above-described embodiment one can comprise:
Step 201a, obtain PSNR corresponding to this each encoding stream respectively according to these at least two encoding streams.
The method for video coding that the embodiment of the present invention two provides, by providing the different parameters included by coding parameter, there is provided multiple to determine the encoding stream that picture quality is the highest and obtain the implementation of coded message of this each encoding stream, quality of coded picture can be ensured better.
It should be noted that, this at least 2 group coding parameter can also comprise: estimation (MotionEstimation, be called for short ME) at least one in parameter, mode adjudging (Mode Decision, be called for short MD) parameter and macro-block level Rate Control parameter.
The coded message that this each encoding stream is corresponding can also comprise: macro block (mb) type statistical information.
Particularly, this ME parameter can comprise the parameter such as the direction of motion and movement length that in this two field picture to be encoded, each pixel is corresponding.This MD Parametric Representation carries out to this two field picture to be encoded the coding mode adopted of encoding, and can be the frame type according to this two field picture to be encoded, the different coding pattern determined.This MD parameter can comprise: arbitrary in frame mode, inter-frame mode or transparent (Skip) pattern.Two field picture as to be encoded in this is I two field picture, then this MD parameter can be frame mode; Two field picture as to be encoded in this is P frame or B two field picture, then this MD parameter can comprise frame mode, inter-frame mode.That is, according to frame mode and inter-frame mode, precoding is carried out respectively to each macro block in this P frame or B two field picture, and utilance distortion criterion calculates the image fault of the encoding stream after being encoded by the two field picture of two kinds of coded systems to this coding, the coded system of the minimum correspondence of distortion is then selected to encode.If this two field picture to be encoded is identical with the ME parameter of previous frame image, shows that this two field picture to be encoded is inactive state, then select the MD parameter that previous frame image is corresponding, the coding mode that namely this two field picture to be encoded adopts can select skip pattern.
Macro-block level Rate Control parameter refers to texture according to each macro block in this two field picture to be encoded or sound information, to the parameter that the quantization parameter of each macro block of the two field picture of this coding adjusts.If this at least two group codings parameter comprises this macro-block level Rate Control parameter, respectively the two field picture of this coding is encoded according to this at least two group codings parameter, can for adopting macro-block level Rate Control parameter in the process of encoding to each macro block of this two field picture to be encoded, each macro block in the two field picture to be encoded to this carries out the fine setting of quantization parameter.
If the macro block (mb) type statistical information that the coded message that this each encoding stream is corresponding comprises says, in the process that this two field picture to be encoded is encoded, also the macro block (mb) type in this two field picture to be encoded and corresponding number are added up.
Embodiment three
The embodiment of the present invention three also provides a kind of method for video coding.The flow chart of the method for video coding that Fig. 3 provides for the embodiment of the present invention three.As shown in Figure 3, the method that the embodiment of the present invention three provides, before encoding to obtain at least two encoding streams to two field picture to be encoded respectively according at least two group coding parameters in a step 101, the method also comprises:
Step 301, preanalysis is carried out to obtain preanalysis information to this two field picture to be encoded.
Step 302, determine this at least two group codings parameter according to this preanalysis information.
Preanalysis is carried out to this two field picture to be encoded, can be by before encoding to this two field picture to be encoded, preanalysis is carried out to this two field picture to be encoded, obtain preanalysis information.This preanalysis information can comprise the analytical information of this two field picture to be encoded.
Wherein, if this two field picture to be encoded is non-first two field picture, then preanalysis is carried out to this two field picture to be encoded, can be by this two field picture to be encoded, and the N two field picture before the two field picture of this coding, analyze, thus preanalysis is carried out to this two field picture to be encoded.This preanalysis information also comprises: the analytical information of the N two field picture before this two field picture to be encoded.Wherein, N can be more than or equal to 1.For example, if this two field picture to be encoded is the 4th two field picture of this video resource, N is 2.So in this step 301, preanalysis is carried out, Ke Yishi to this two field picture to be encoded, to the 4th two field picture, and the 4th 2 two field pictures before two field picture analyze, that is, the 2nd two field picture, the 3rd two field picture and the 4th two field picture are analyzed, thus obtains this preanalysis information.
Preanalysis is carried out to this two field picture to be encoded, and determine this at least two group codings parameter according to the preanalysis information that this preanalysis obtains, this at least two group codings parameter and this two field picture to be encoded can be made to adapt, ensure the picture quality of according to this at least two group codings parameter, this two field picture to be encoded being carried out to these at least two encoding streams that coding obtains, thus ensure quality of coded picture better.
Optionally, before determining this at least two group codings parameter according to this preanalysis information in step 302, the method also comprises:
Obtain to the two field picture before this two field picture to be encoded carry out encoding obtain the coding parameter that the highest encoding stream of picture quality uses.
Further, determine this at least two group codings parameter according to this preanalysis information in step 302, can comprise:
This at least two group codings parameter is determined according to this preanalysis information and this coding parameter used.
Due in the method for video coding that the embodiment of the present invention provides, also can carry out according to the two field picture before this two field picture to be encoded encoding obtain the coding parameter that the highest encoding stream of picture quality uses, and this preanalysis information determines this at least two group codings parameter, this at least two group codings parameter can be made more accurate, thus ensure quality of coded picture better.
Optionally, this preanalysis information comprises: the Texture complication of this two field picture to be encoded.
Particularly, if this two field picture to be encoded is non-first two field picture, the Texture complication of this two field picture to be encoded can comprise the frequency domain information converting of front and back frame residual error.Before and after this, the frequency domain information converting of frame residual error can be, the residual error that the two field picture to be encoded by this and each parameter of previous frame image carry out subtracting each other rear acquisition carries out discretely converting the information after (Discrete Cosine Transform is called for short DCT) in advance.
Further, in the embodiment of the present invention three, step 302 determines this at least two group codings parameter according to this preanalysis information, can comprise:
The relatively Texture complication of this two field picture to be encoded and the size of the benchmark Texture complication preset, if the Texture complication of this two field picture to be encoded is greater than this benchmark Texture complication, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in this baseline encoded parameter is reduced, thus obtain this at least two group codings parameter.
Optionally, this preanalysis information also can comprise: the movable information of this two field picture to be encoded.
Further, step 302 determines this at least two group codings parameter according to this preanalysis information, can comprise:
The relatively movable information of this two field picture to be encoded and the size of the baseline locomotor information preset, if the movable information of this two field picture to be encoded is greater than this baseline locomotor information, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in this baseline encoded parameter is reduced, thus obtain this at least two group codings parameter.
The method for video coding that the embodiment of the present invention three provides, determine that the implementation of this at least two group codings parameter is described the method for video coding that above-described embodiment two provides by multiple, this at least two group codings parameter can be made more accurate, thus ensure quality of coded picture better.
Embodiment four
The embodiment of the present invention four also provides a kind of method for video coding.The flow chart of the method for video coding that Fig. 4 provides for the embodiment of the present invention four.The method for video coding that the embodiment of the present invention four provides can be explained the method for video coding of any embodiment in above-described embodiment one to three by concrete example.As described in Figure 4, the method can comprise:
Step 401, carry out preanalysis to obtain preanalysis information to this two field picture to be encoded, this preanalysis information comprises: the Texture complication of this two field picture to be encoded.
Particularly, this video coding apparatus, can be before N (N>1) frame of this two field picture to be encoded, carry out preanalysis to this two field picture to be encoded.
The size of step 402, the Texture complication comparing this two field picture to be encoded and the benchmark Texture complication preset.
If the Texture complication of this two field picture to be encoded of step 403 is greater than this benchmark Texture complication, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, with, according at least two kinds of bit number amounts of decrease, target bit in this baseline encoded parameter is reduced, thus obtain this at least two group codings parameter; Wherein, every group coding parameter comprises: start frame level quantized parameter and target bit.
It should be noted that, this preanalysis information also can comprise the movable information of this two field picture to be encoded, or, the Texture complication of this two field picture to be encoded and the movable information of this two field picture to be encoded.Preanalysis information is comprised to the movable information of this two field picture to be encoded, or, similar in the implementation procedure of the Texture complication of this two field picture to be encoded and the movable information of this two field picture to be encoded and above-described embodiment three, do not repeat them here.
Step 404, basis at least two group coding parameters encode to obtain at least two encoding streams to two field picture to be encoded respectively.
Step 405, obtain the quantization parameter of each macro block in each encoding stream, determine the average quantisation parameter of this at least one macro block according to the quantization parameter of this each macro block, and the average quantisation parameter of this at least one macro block is defined as the average quantisation parameter after coding corresponding to this each encoding stream.
Step 406, obtain the bit number of each macro block in this each encoding stream, determine the bit number sum of this at least one macro block according to the bit number of this each macro block, and the bit number sum of at least one macro block is defined as the final bit number after coding corresponding to this each encoding stream.
In the coding parameter of step 407, average quantisation parameter from coded message corresponding to this each encoding stream after coding and correspondence start frame level quantized parameter difference in select difference minimum, and from coded message corresponding to this each encoding stream in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality.
It should be noted that, the PSNR of this each encoding stream also can be obtained according to this each encoding stream, then from these at least two encoding streams, select the encoding stream that picture quality is the highest according to the PSNR of this each encoding stream, its concrete implementation procedure and above-described embodiment two similar, do not repeat them here.
The method for video coding that the embodiment of the present invention four provides, is specifically described the method in above-described embodiment one to three described in any embodiment by example, its concrete implementation procedure and beneficial effect similar to the above embodiments, do not repeat them here.
Embodiment five
The embodiment of the present invention five also provides a kind of video coding apparatus.The structural representation of the video coding apparatus that Fig. 5 provides for the embodiment of the present invention five.The video coding apparatus that the embodiment of the present invention five provides, can be used for performing the method for video coding in above-described embodiment one to four described in any embodiment.As shown in Figure 5, this video coding apparatus 500, can comprise: coding module 501, acquisition module 502 and selection module 503.Coding module 501 is connected with acquisition module 502, and acquisition module 502 is connected with selection module 503.
Wherein, coding module 501, for encoding to obtain at least two encoding streams to two field picture to be encoded respectively according at least two group coding parameters.
Acquisition module 502, for obtaining coded message corresponding to this each encoding stream respectively according to these at least two encoding streams.
Select module 503, from these at least two encoding streams, select the encoding stream that picture quality is the highest for the coded message corresponding according to this each encoding stream.
Particularly, coding module 501 can be processor.Acquisition module 502 and selection module 503 accessible site are on a micro controller unit (Micro Controller Unit is called for short MCU).This coding module 501, acquisition module 502 and selection module 503 can be used as one chip microcomputer (Single ChipMicrocomputer is called for short SCM), are integrated in this video coding apparatus.Method for video coding in above-described embodiment one to four described in any embodiment, the form by reduced instruction set computer (Reduced InstructionSet Computing is called for short RISC) is embedded in this SCM.This coding module 501, acquisition module 502 and selection module 503, each module by calling corresponding instruction set to realize the function of each module, thus realizes the coding of video resource.
The video coding apparatus that the embodiment of the present invention five provides, can perform the method in above-described embodiment one to four described in any embodiment, its concrete implementation procedure and beneficial effect similar to the above embodiments, do not repeat them here.
The embodiment of the present invention five also provides a kind of video coding apparatus.The structural representation of the another kind of video coding apparatus that Fig. 6 provides for the embodiment of the present invention five.As shown in Figure 6, on the basis of the video coding apparatus that this video coding apparatus 500 provides in the invention described above embodiment five, wherein, coding module 501 can comprise at least two encoders 601.Each encoder 601 can be a microprocessing unit (MicroProcessor Unit is called for short MPU).Coding module 501 is encoded to two field picture to be encoded respectively according at least two group coding parameters, can be encoded by each encoder 601 wherein according to a group coding parameter to this two field picture to be encoded simultaneously.If coding module 501 comprises at least two encoders 601, then the handling property of each encoder 601, as all equal in performances such as processing speed, internal memory, buffer memorys, and its difference is only the coding parameter difference of encoding adopted to this two field picture to be encoded.
Optionally, this every group coding parameter at least to comprise in following two parameters one: start frame level quantized parameter and target bit.
Further, the coded message that this each encoding stream is corresponding at least to comprise in following two parameters one: the average quantisation parameter after coding and final bit number.
Select module 503, the encoding stream selecting difference minimum in the difference also for start frame level quantized parameter in the average quantisation parameter after coding from coded message corresponding to this each encoding stream and corresponding coding parameter is as the highest encoding stream of picture quality; Or the encoding stream selecting difference minimum in the difference for target bit in bit number final from coded message corresponding to this each encoding stream and corresponding coding parameter is as the highest encoding stream of picture quality; Or, select difference minimum in difference for start frame level quantized parameter in the average quantisation parameter after coding from coded message corresponding to this each encoding stream and corresponding coding parameter, and from coded message corresponding to this each encoding stream in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality.
Optionally, this two field picture to be encoded comprises: at least one macro block.
Further, acquisition module 502, also for obtaining the quantization parameter of each macro block in this each encoding stream, determine the average quantisation parameter of this at least one macro block according to the quantization parameter of this each macro block, and the average quantisation parameter of this at least one macro block is defined as the average quantisation parameter after this coding; Or, for obtaining the bit number of each macro block in this each encoding stream, and determine the bit number sum of this at least one macro block according to the bit number of this each macro block, and the bit number sum of this at least one macro block be defined as this final bit number.
Alternately, the coded message that this each encoding stream is corresponding comprises PSNR.
Select module 503, also for the size by comparing PSNR in coded message corresponding to these at least two encoding streams, using encoding stream corresponding for the coded message that comprises maximum PSNR value as the highest encoding stream of picture quality.
Further, acquisition module 502, also for obtaining PSNR corresponding to this each encoding stream respectively according to these at least two encoding streams.
Further, this video coding apparatus 500 also comprises:
Pre-analysis module 602, before this encodes to obtain at least two encoding streams to two field picture to be encoded respectively according to this at least two group codings parameter at coding module 501, carries out preanalysis to obtain preanalysis information to this two field picture to be encoded.
Particularly, pre-analysis module 602 according to frame level parallel pipelining process mode, can carry out work with coding module 501.That is, if while this pre-analysis module carries out preanalysis to M two field picture, this coding module 501 is encoded to the image of this M-N frame.Suppose that this N be 1, M is 2, that is, when this pre-analysis module carries out preanalysis to this second two field picture, coding module 501 is encoded to this first two field picture.If when this two field picture to be encoded is last frame image, then the coding flow process of this video coding apparatus to this video resource terminates.
This video coding apparatus 500 also comprises: determination module 603.
Determination module 603, for determining this at least two group codings parameter according to this preanalysis information.
Further, acquisition module 502, also for obtain to the two field picture before this two field picture to be encoded carry out encoding obtain the coding parameter that the highest encoding stream of picture quality uses.
Determination module 603, also for determining this at least two group codings parameter according to this preanalysis information and this coding parameter used.
Optionally, this preanalysis information comprises: the Texture complication of this two field picture to be encoded.
Determination module 603, also for the size of the Texture complication comparing this two field picture to be encoded and the benchmark Texture complication preset, if the Texture complication of this two field picture to be encoded is greater than this benchmark Texture complication, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in this baseline encoded parameter is reduced, thus obtain this at least two group codings parameter.
Alternately, this preanalysis information also can comprise: the movable information of this two field picture to be encoded.
Determination module 603, also for the size of the movable information comparing this two field picture to be encoded and the baseline locomotor information preset, if the movable information of this two field picture to be encoded is greater than this baseline locomotor information, according at least two amounts parameter amplification, QP average in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in this baseline encoded parameter is reduced, thus obtain this at least two group codings parameter.
The video coding apparatus that the embodiment of the present invention five provides, can perform the method in above-described embodiment one to four described in any embodiment, its concrete implementation procedure and beneficial effect similar to the above embodiments, do not repeat them here.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (20)

1. a method for video coding, is characterized in that, comprising:
Encode to obtain at least two encoding streams to two field picture to be encoded respectively according at least two group coding parameters;
Coded message corresponding to each encoding stream is obtained respectively according to described at least two encoding streams;
The coded message corresponding according to described each encoding stream selects the encoding stream that picture quality is the highest from described at least two encoding streams.
2. method for video coding according to claim 1, is characterized in that, described every group coding parameter at least to comprise in following two parameters one: start frame level quantized parameter and target bit.
3. method for video coding according to claim 2, is characterized in that, the coded message that described each encoding stream is corresponding at least to comprise in following two parameters one: the average quantisation parameter after coding and final bit number;
The described coded message corresponding according to described each encoding stream selects the encoding stream that picture quality is the highest from described at least two encoding streams, comprising:
In average quantisation parameter from the coded message that described each encoding stream is corresponding after coding and corresponding coding parameter start frame level quantized parameter difference in select difference minimum encoding stream as the highest encoding stream of picture quality; Or,
From the coded message that described each encoding stream is corresponding in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality; Or,
In average quantisation parameter from the coded message that described each encoding stream is corresponding after coding and corresponding coding parameter start frame level quantized parameter difference in select difference minimum, and from coded message corresponding to described each encoding stream in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality.
4. method for video coding according to claim 3, is characterized in that, described two field picture to be encoded comprises: at least one macro block;
Described in described basis, at least two encoding streams obtain coded message corresponding to each encoding stream respectively, comprising:
Obtain the quantization parameter of each macro block in described each encoding stream, determine the average quantisation parameter of at least one macro block described according to the quantization parameter of described each macro block, and the average quantisation parameter of at least one macro block described is defined as the average quantisation parameter after described coding; Or,
Obtain the bit number of each macro block in described each encoding stream, and determine the bit number sum of at least one macro block described according to the bit number of described each macro block, and the bit number sum of at least one macro block described is defined as described final bit number.
5. method for video coding according to claim 2, is characterized in that, the coded message that described each encoding stream is corresponding also comprises Y-PSNR PSNR;
The described coded message corresponding according to described each encoding stream selects the encoding stream that picture quality is the highest from described at least two encoding streams, comprising:
By the size of PSNR in the coded message that at least two encoding streams described in are relatively corresponding, using encoding stream corresponding for the coded message that comprises maximum PSNR value as the highest encoding stream of picture quality.
6. method for video coding according to claim 5, is characterized in that, the coded message that at least two encoding streams described in described basis obtain described each encoding stream corresponding respectively comprises:
PSNR corresponding to described each encoding stream is obtained respectively according to described at least two encoding streams.
7. the method for video coding according to any one of claim 2-6, is characterized in that, before described basis at least two group coding parameter encodes to obtain at least two encoding streams to two field picture to be encoded respectively, described method also comprises:
Preanalysis is carried out to obtain preanalysis information to described two field picture to be encoded;
At least two group coding parameters described in determining according to described preanalysis information.
8. method for video coding according to claim 7, is characterized in that, described determine according to described preanalysis information described in before at least two group coding parameters, described method also comprises:
Obtain to the two field picture before described two field picture to be encoded carry out encoding obtain the coding parameter that the highest encoding stream of picture quality uses;
Described determine according to described preanalysis information described at least two group coding parameters comprise:
At least two group coding parameters described in determining according to described preanalysis information and described used coding parameter.
9. the method for video coding according to claim 7 or 8, is characterized in that, described preanalysis information comprises: the Texture complication of described two field picture to be encoded;
Described determine according to described preanalysis information described at least two group coding parameters, comprising:
The Texture complication of more described two field picture to be encoded and the size of the benchmark Texture complication preset, if the Texture complication of described two field picture to be encoded is greater than described benchmark Texture complication, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in described baseline encoded parameter is reduced, thus at least two group coding parameters described in obtaining.
10. the method for video coding according to claim 7 or 8, is characterized in that, described preanalysis information comprises: the movable information of described two field picture to be encoded;
Described determine according to described preanalysis information described at least two group coding parameters, comprising:
The movable information of more described two field picture to be encoded and the size of the baseline locomotor information preset, if the movable information of described two field picture to be encoded is greater than described baseline locomotor information, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in described baseline encoded parameter is reduced, thus at least two group coding parameters described in obtaining.
11. 1 kinds of video coding apparatus, is characterized in that, comprising: coding module, acquisition module and selection module; Described coding module is connected with described acquisition module, described acquisition module and described selection model calling;
Wherein, described coding module, for encoding to obtain at least two encoding streams to two field picture to be encoded respectively according at least two group coding parameters;
Described acquisition module, for obtaining coded message corresponding to described each encoding stream respectively according to described at least two encoding streams;
Described selection module, selects the encoding stream that picture quality is the highest for the coded message corresponding according to described each encoding stream from described at least two encoding streams.
12. video coding apparatus according to claim 11, is characterized in that, described every group coding parameter at least to comprise in following two parameters one: start frame level quantized parameter and target bit.
13. video coding apparatus according to claim 12, is characterized in that, the coded message that described each encoding stream is corresponding at least to comprise in following two parameters one: the average quantisation parameter after coding and final bit number;
Described selection module, the encoding stream selecting difference minimum in the difference also for start frame level quantized parameter in the average quantisation parameter after coding from coded message corresponding to described each encoding stream and corresponding coding parameter is as the highest encoding stream of picture quality; Or,
The encoding stream selecting difference minimum in difference for target bit in bit number final from coded message corresponding to described each encoding stream and corresponding coding parameter is as the highest encoding stream of picture quality; Or,
Select difference minimum in difference for start frame level quantized parameter in the average quantisation parameter after coding from coded message corresponding to described each encoding stream and corresponding coding parameter, and from coded message corresponding to described each encoding stream in final bit number and corresponding coding parameter target bit difference in select difference minimum encoding stream as the highest encoding stream of picture quality.
14. video coding apparatus according to claim 13, is characterized in that, described two field picture to be encoded comprises: at least one macro block;
Described acquisition module, also for obtaining the quantization parameter of each macro block in described each encoding stream, determine the average quantisation parameter of at least one macro block described according to the quantization parameter of described each macro block, and the average quantisation parameter of at least one macro block described is defined as the average quantisation parameter after described coding; Or, for obtaining the bit number of each macro block in described each encoding stream, and determine the bit number sum of at least one macro block described according to the bit number of described each macro block, and the bit number sum of at least one macro block described be defined as described final bit number.
15. video coding apparatus according to claim 12, is characterized in that, the coded message that described each encoding stream is corresponding comprises PSNR;
Described selection module, also for the size by PSNR in coded message corresponding at least two encoding streams described in relatively, using encoding stream corresponding for the coded message that comprises maximum PSNR value as the highest encoding stream of picture quality.
16. video coding apparatus according to claim 15, is characterized in that,
Described acquisition module, also for obtaining PSNR corresponding to described each encoding stream respectively according to described at least two encoding streams.
17. video coding apparatus according to any one of claim 12-16, it is characterized in that, described video coding apparatus also comprises:
Pre-analysis module, for described coding module according to described at least two group coding parameters respectively described two field picture to be encoded encoded to obtain at least two encoding streams before, preanalysis is carried out to obtain preanalysis information to described two field picture to be encoded;
Determination module, at least two group coding parameters described in determining according to described preanalysis information.
18. video coding apparatus according to claim 17, is characterized in that,
Described acquisition module, also for the two field picture before obtaining described two field picture to be encoded carry out encoding obtain the coding parameter that the highest encoding stream of picture quality uses;
Described determination module, also at least two group coding parameters described in determining according to described preanalysis information and described used coding parameter.
19. video coding apparatus according to claim 17 or 18, it is characterized in that, described preanalysis information comprises: the Texture complication of described two field picture to be encoded;
Described determination module, also for the Texture complication of more described two field picture to be encoded and the size of the benchmark Texture complication preset, if the Texture complication of described two field picture to be encoded is greater than described benchmark Texture complication, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in described baseline encoded parameter is reduced, thus at least two group coding parameters described in obtaining.
20. video coding apparatus according to claim 17 or 18, it is characterized in that, described preanalysis information comprises: the movable information of described two field picture to be encoded;
Described determination module, also for the movable information of more described two field picture to be encoded and the size of the baseline locomotor information preset, if the movable information of described two field picture to be encoded is greater than described baseline locomotor information, according at least two amounts parameter amplification, start frame level quantized parameter in the baseline encoded parameter preset is increased, or, according at least two kinds of bit number amounts of decrease, target bit in described baseline encoded parameter is reduced, thus at least two group coding parameters described in obtaining.
CN201410682689.0A 2014-11-24 2014-11-24 Video encoding method and device Pending CN104410861A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410682689.0A CN104410861A (en) 2014-11-24 2014-11-24 Video encoding method and device
PCT/CN2015/081814 WO2016082529A1 (en) 2014-11-24 2015-06-18 Video coding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410682689.0A CN104410861A (en) 2014-11-24 2014-11-24 Video encoding method and device

Publications (1)

Publication Number Publication Date
CN104410861A true CN104410861A (en) 2015-03-11

Family

ID=52648445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410682689.0A Pending CN104410861A (en) 2014-11-24 2014-11-24 Video encoding method and device

Country Status (2)

Country Link
CN (1) CN104410861A (en)
WO (1) WO2016082529A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811722A (en) * 2015-04-16 2015-07-29 华为技术有限公司 Video data coding and decoding method and device
WO2016082529A1 (en) * 2014-11-24 2016-06-02 华为技术有限公司 Video coding method and device
CN107155107A (en) * 2017-03-21 2017-09-12 腾讯科技(深圳)有限公司 Method for video coding and device, video encoding/decoding method and device
CN109510985A (en) * 2018-10-26 2019-03-22 西安科锐盛创新科技有限公司 Method for video coding and its device
WO2019242424A1 (en) * 2018-06-20 2019-12-26 腾讯科技(深圳)有限公司 Video encoding/decoding method and apparatus, computer device, and storage medium
WO2020088200A1 (en) * 2018-10-31 2020-05-07 腾讯科技(深圳)有限公司 Video encoding method and apparatus, and computer-readable storage medium and computer device
CN111147856A (en) * 2018-11-03 2020-05-12 广州灵派科技有限公司 Video coding method
CN112738516A (en) * 2021-03-30 2021-04-30 浙江华创视讯科技有限公司 Encoding method, encoding device, storage medium and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166770B (en) * 2018-07-18 2022-09-23 腾讯科技(深圳)有限公司 Video encoding method, video encoding device, computer equipment and storage medium
CN111193927B (en) 2018-11-14 2022-09-23 腾讯科技(深圳)有限公司 Encoded data processing method, apparatus, computer device and storage medium
CN112312135B (en) * 2020-10-23 2022-07-15 广州市百果园网络科技有限公司 Video publishing method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000054222A1 (en) * 1999-03-09 2000-09-14 Icompression, Inc. Elementary stream multiplexer
CN1492685A (en) * 2002-10-03 2004-04-28 ���µ�����ҵ��ʽ���� Image coding method and image coding device
CN1717675A (en) * 2002-11-26 2006-01-04 高通股份有限公司 System and method for optimizing multimedia compression using plural encoders
CN101552917A (en) * 2008-03-31 2009-10-07 深圳市融合视讯科技有限公司 Bit rate control method for video compression
CN103517067A (en) * 2012-12-14 2014-01-15 深圳百科信息技术有限公司 Initial quantitative parameter self-adaptive adjustment method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100855466B1 (en) * 2004-01-27 2008-09-01 삼성전자주식회사 Method for video coding and decoding, and apparatus for the same
CN101588252B (en) * 2008-05-23 2011-07-20 华为技术有限公司 Control method and control device of multipoint conference
CN101370140A (en) * 2008-09-25 2009-02-18 浙江大华技术股份有限公司 Multi-code stream generation method
CN104410861A (en) * 2014-11-24 2015-03-11 华为技术有限公司 Video encoding method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000054222A1 (en) * 1999-03-09 2000-09-14 Icompression, Inc. Elementary stream multiplexer
CN1492685A (en) * 2002-10-03 2004-04-28 ���µ�����ҵ��ʽ���� Image coding method and image coding device
CN1717675A (en) * 2002-11-26 2006-01-04 高通股份有限公司 System and method for optimizing multimedia compression using plural encoders
CN101552917A (en) * 2008-03-31 2009-10-07 深圳市融合视讯科技有限公司 Bit rate control method for video compression
CN103517067A (en) * 2012-12-14 2014-01-15 深圳百科信息技术有限公司 Initial quantitative parameter self-adaptive adjustment method and system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082529A1 (en) * 2014-11-24 2016-06-02 华为技术有限公司 Video coding method and device
CN104811722B (en) * 2015-04-16 2019-05-07 华为技术有限公司 A kind of decoding method and device of video data
WO2016165603A1 (en) * 2015-04-16 2016-10-20 华为技术有限公司 Encoding and decoding method and device for video data
CN104811722A (en) * 2015-04-16 2015-07-29 华为技术有限公司 Video data coding and decoding method and device
CN107155107A (en) * 2017-03-21 2017-09-12 腾讯科技(深圳)有限公司 Method for video coding and device, video encoding/decoding method and device
CN108495130A (en) * 2017-03-21 2018-09-04 腾讯科技(深圳)有限公司 Video coding, coding/decoding method and device, terminal, server and storage medium
WO2019242424A1 (en) * 2018-06-20 2019-12-26 腾讯科技(深圳)有限公司 Video encoding/decoding method and apparatus, computer device, and storage medium
US11172220B2 (en) 2018-06-20 2021-11-09 Tencent Technology (Shenzhen) Company Limited Video encoding method, and storage medium thereof
CN109510985A (en) * 2018-10-26 2019-03-22 西安科锐盛创新科技有限公司 Method for video coding and its device
CN109510985B (en) * 2018-10-26 2021-01-15 杭州联海网络科技有限公司 Video coding method and device thereof
WO2020088200A1 (en) * 2018-10-31 2020-05-07 腾讯科技(深圳)有限公司 Video encoding method and apparatus, and computer-readable storage medium and computer device
US11317097B2 (en) 2018-10-31 2022-04-26 Tencent Technology (Shenzhen) Company Limited Video encoding method and apparatus, computer-readable storage medium, and computer device
CN111147856A (en) * 2018-11-03 2020-05-12 广州灵派科技有限公司 Video coding method
CN112738516A (en) * 2021-03-30 2021-04-30 浙江华创视讯科技有限公司 Encoding method, encoding device, storage medium and electronic equipment
CN112738516B (en) * 2021-03-30 2021-07-09 浙江华创视讯科技有限公司 Encoding method, encoding device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2016082529A1 (en) 2016-06-02

Similar Documents

Publication Publication Date Title
CN104410861A (en) Video encoding method and device
CN102685478B (en) Encoding method and device, and decoding method and device
KR101391601B1 (en) Method and apparatus for image encoding by exponential-Golomb code using optimal thresholds, and method and apparatus for image decoding by exponential-Golomb code using optimal threshold
US11743475B2 (en) Advanced video coding method, system, apparatus, and storage medium
SG192360A1 (en) Multiple sign bit hiding within a transform unit
US10616498B2 (en) High dynamic range video capture control for video transmission
CN110677654B (en) Quantization parameter cascade method of high-efficiency video coding standard low-delay coding structure
CN102420988A (en) Multi-view video coding system utilizing visual characteristics
EP2675159B1 (en) Multi-bit information hiding using overlapping subsets
US20150189297A1 (en) Device and method for intra-encoding image blocks, storage medium carrying and use of a processing device for decoding intra-encoded image blocks
US8442338B2 (en) Visually optimized quantization
KR101305093B1 (en) Method and encoder for determining transform unit size
CN102577412B (en) Image coding method and device
CN114257818A (en) Video encoding and decoding method, device, equipment and storage medium
EP3278558B1 (en) Motion vector selection and prediction in video coding systems and methods
CN111182310A (en) Video processing method and device, computer readable medium and electronic equipment
CN104053009A (en) Encoding method of monitoring video and device
Wong et al. Impact analysis of baseband quantizer on coding efficiency for HDR video
CN102685483A (en) Coding method and device, and decoding method and device
Wang et al. Quality assessment for MPEG-2 video streams using a neural network model
RU2420912C1 (en) Method of distributing and transcoding video content
US8971393B2 (en) Encoder
Savic et al. An algorithm for grayscale images compression based on the forward adaptive quantizer designed for signals with discrete amplitudes
EP3166313A1 (en) Encoding and decoding method and corresponding devices
CN110099279B (en) Method for adjusting lossy compression based on hardware

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150311

RJ01 Rejection of invention patent application after publication