WO1999038333A1 - One-pass variable bit rate moving pictures encoding - Google Patents

One-pass variable bit rate moving pictures encoding Download PDF

Info

Publication number
WO1999038333A1
WO1999038333A1 PCT/SG1998/000007 SG9800007W WO9938333A1 WO 1999038333 A1 WO1999038333 A1 WO 1999038333A1 SG 9800007 W SG9800007 W SG 9800007W WO 9938333 A1 WO9938333 A1 WO 9938333A1
Authority
WO
WIPO (PCT)
Prior art keywords
bit rate
target
picmre
picture
encoding
Prior art date
Application number
PCT/SG1998/000007
Other languages
French (fr)
Inventor
Yau Wei Lucas Hui
Original Assignee
Sgs-Thomson Microelectronics Asia Pacific (Pte) 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 Sgs-Thomson Microelectronics Asia Pacific (Pte) Ltd. filed Critical Sgs-Thomson Microelectronics Asia Pacific (Pte) Ltd.
Priority to EP98908421A priority Critical patent/EP1051853B1/en
Priority to PCT/SG1998/000007 priority patent/WO1999038333A1/en
Priority to DE69815720T priority patent/DE69815720T2/en
Priority to US09/600,935 priority patent/US6654417B1/en
Publication of WO1999038333A1 publication Critical patent/WO1999038333A1/en

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/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/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
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/115Selection of the code volume for a coding unit prior to coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/149Data rate or code amount at the encoder output by estimating the code amount by means of a model, e.g. mathematical model or statistical model
    • 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/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/152Data rate or code amount at the encoder output by measuring the fullness of the transmission buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding

Definitions

  • the present invention relates to a method and apparatus for encoding moving pictures.
  • the present invention relates to a method and apparatus for performing variable bit rate control for a digital video encoder.
  • a sequence of moving pictures (e.g. video) is input to the encoder where it is compressed with a user defined target bitrate.
  • the target bitrate is set according to the communication channel bandwidth in which the compressed video is to be transmitted, or the storage media capacity in which the compressed video sequence is to be stored.
  • I-pictures intra-coded pictures used mainly for random access or scene update.
  • the P-pictures use forward motion predictive coding with reference to previously coded I- or P ⁇ pictures (anchor pictures), and the B-pictures use both forward and backward motion predictive/interpolative coding with reference to previously coded I-or P-pictures.
  • a group of picture is formed in encoded order starting with an I-picture and ending with the picture before the next I-picture in the sequence.
  • the pictures are partitioned into smaller and non-overlapping blocks of pixel data called Macroblocks (MBs) before encoding.
  • MBs Macroblocks
  • Each MB from a P- or B-picture is subjected to a motion estimation process in which forward motion vectors, and backward motion vectors in the case of a B-picture MB, are determined using reference pictures from a frame buffer. With the determined motion vectors, motion compensation is performed where the intra-or inter-picture prediction mode of the MB is first determined according to the accuracy of the motion vectors found, followed by generating the necessary predicted MB.
  • the predicted MB is then subjected to discrete cosine transform (DCT) and DCT coefficients quantization based on quantization matrices (QM) and quantization stepsize (QS).
  • DCT discrete cosine transform
  • QM quantization matrices
  • QS quantization stepsize
  • the quantized DCT coefficients of the MB is then run-length encoded with variable length codes (VLC) and multiplexed with additional information such as selected motion vectors, MB coding modes, quantization stepsize, and/or picture and sequence information, to form the output bitstream.
  • VLC variable length codes
  • Local decoding is performed by inverse quantizing the quantized DCT coefficients, followed by inverse DCT, and motion compensation. Local decoding is performed such that the reference pictures used in the motion compensation are identical to those to be by an external decoder.
  • the quantization stepsize (QS) used for quantizing the DCT coefficients of each MB has direct impact on the number of bits produced at the output of the VLC encoding process, and therefore the average ou ⁇ ut bit rate. It has also a direct impact on the encoding quality, which is output picture quality at the corresponding decoder. In general, larger QS generates lower output bit rate and lower encoding quality. In order to control ou ⁇ ut bit rate and picture quality so that the resulting bitstream can satisfy channel bandwidth or storage limitations as well as quality requirements, rate control and quantization control algorithms are used. Some methods for rate control and quantization control can be found in the abovementioned MPEG-2 TM5 (Test Model 5).
  • These methods comprise generally a bit allocation process, a rate control process, and an adaptive quantization process.
  • bit allocation process a target number of bits is assigned for a new picture to be coded according to a number of previously determined and preset parameters.
  • the rate control step then calculates a reference quantization stepsize QS ⁇ ef for each MB based on the target bits for the picture, the number of bits already used from the target bits in encoding MBs from that picture, and a virtual buffer model as given in MPEG-2 TM5.
  • the calculated QS ref is then scaled according to local activities of the MB, and an average MB activity determined from the previously coded picture.
  • This scaling is done according to a level of masking effects of coding noise by human perception for MB with high or low activities within a picture.
  • An example of an adaptive quantization technique is disclosed in United States Patent number 5,650,860, entitled “Adaptive Quantization”.
  • a video buffer verifier (VBV) may also be employed in such a way that underflow and overflow are prevented as required by the MPEG standard to ensure the target bit rate is maintained.
  • Techniques for underflow detection and protection are also disclosed in US Patent number 5,650,860.
  • the fixed target bitrate in the process outlined above has little or no relationship to the actual or varying complexity of the video scenes contained in the input picture sequence.
  • the target bitrate is actually defined by the communication channel bandwidth, or by the target storage capacity for the picture sequence, but the perceptual quality of the resulting pictures when decoded may vary from good to annoying from scene to scene according to scene complexity.
  • variable bit rate may be applied on individual segments of the picture sequences depending on its scene complexity to maximize bit rate allocation and encoded picture quality. Data bits may be reduced for less complex scene to save storage space and increase potential recording duration of the medium, or the resulting storage saving can be used for coding of more complex scenes.
  • VBR can also be applied to other applications such as a multi-channel video broadcasting network. Such channel bandwidth may be dynamically allocated to individual video sequences to be multiplexed together so that higher percentage of the bandwidth is used adaptively by sequences with complex scenes.
  • VBR control algorithms such as that disclosed in US Patent 5,650,860 require multiple encoding passes to properly distribute data bits.
  • the bit utilization information is determined for each scene or each picture in the input picture sequence. This may be done by fixing the reference quantization stepsize and disabling the VBV control.
  • the determined bit utilization information is then be used to generate a bit budget for each scene or picture such that an overall target number of bits to code the sequence is fixed, and so that a maximum bit rate is not violated.
  • the bit budget for each picture is modified so that the VBV buffer does not underflow.
  • steps from the first coding pass must be repeated with an adjusted reference quantization stepsize.
  • the input sequence is coded in a final pass using the generated bit budget information to achieve the target bits or bit rate.
  • This form of multiple-pass VBR encoder requires very large storage memory for storing the intermediate bit utilization information, and large computational capacity for the additional passes and the bit budget generation. Furthermore, such a VBR technique such as this cannot process the input sequence in real-time.
  • An object of the present invention is to provide a one-pass variable bit rate control technique for coding of moving pictures.
  • a method for variable bit rate control in a moving pictures encoder comprising: selecting a target picture encoding quality; selecting upper and lower bit rate limits; encoding at least one picture according to a target bit allocation based on an initial bit rate within the upper and lower bit rate limits; comparing the encoding quality of the at least one encoded picture with the target picture encoding quality; and adjusting the target bit allocation on the basis of said comparison, for encoding subsequent pictures.
  • the picture encoding quality is based on encoding quantization step-size.
  • the picture encoding quality is based on a mean square error.
  • the picture encoding quality may be based on a signal-to-noise ratio.
  • the comparing step includes measuring a difference in picture encoding quality between corresponding input and locally decoded pictures.
  • the pictures to be encoded are arranged in groups of pictures comprising an I-picture and at least one P-picture and/or B-picture, and wherein the or plurality of pictures in each group of target bit allocation is adjusted for each picture j_ pictures.
  • the target bit allocation is adjusted to achieve a target bit rate, determined on the basis of said comparison, for each picture or plurality of pictures in the group of pictures.
  • the target picture encoding quality may comprise a target encoding quantization step-size, wherein different target quantization step-sizes are selected for I-, P-, and B-pictures.
  • the method may include measuring an average quantization stepsize for at least one previously encoded picture, predicting a bit rate for a previously encoded I-, P-, and B-picture, and determining said target bit rate based on said predicted bit rate and a difference between the target encoding quantization step-size and the measured average quantization step-size.
  • the method of the invention may include measuring an average picture activity for the moving pictures, and modifying the measured difference in picture encoding quality on the basis of the average picture activity.
  • the present invention also provides control apparatus for a moving picture encoder, comprising: an input for receiving a target picture encoding quality; an input for receiving upper and lower bit rate limits; and and a controller for controlling the encoder so as to encode at least one picture according to a target bit allocation based on an initial bit rate within the upper and lower bit rate limits, compare the encoding quality of the at least one encoded picture with the target picture encoding quality, and adjust the target bit allocation on the basis of said comparison for encoding subsequent pictures.
  • the moving picture encoder includes a frequency transform coefficient quantizer for quantization of the encoded picture data
  • the controller comprises a bit rate controller coupled to control the quantization step size of the quantizer, a quantization step size comparator for comparing, as a measure of encoding quality, an actual quantization step size with a target quantization step size based on the target picture encoding quality, a bit allocation processor coupled to control the bit rate controller according to a number of bits remaining for encoding a group of pictures, and a target bit rate estimator coupled to receive the upper and lower bit rate limits and coupled to the bit allocation processor and the bit rate controller for controlling the quantization so that the required bit rate for the quantized picture data is within the upper and lower bit rate limits.
  • the present invention further provides a video picture encoder comprising: a picture input for receiving data for a plurality of moving pictures; a target quality input for receiving a target quality measure for encoded pictures; an encoder ou ⁇ ut for supplying encoded picture data; a bit rate limit input for receiving upper and lower bit rate limits for the encoded picture data; a frequency transform processor for frequency transform encoding picture data from the picture input; a coefficient quantizer for quantizing the encoded picture data according to a quantization step size; and a bit rate controller for dynamically controlling the quantization step size of the coefficient quantizer based on the target quality so that the encoder ou ⁇ ut remains within the upper and lower bit rate limits.
  • the video picture encoder may further include a frame bit counter for a number of remaining bits available for encoding a group of pictures, and a bit allocation processor for controlling the bit rate controller according to the remaining available bits.
  • the video picture encoder may further include a quality comparator for comparing the target quality with a measured encoding quality, and wherein the bit rate controller controls the quantization step size based on a difference between the target and measured qualities.
  • the measured encoding quality comprises the quantization step size.
  • the v ideo picture encoder may further include a local decoder for decoding the quantized encoded picture data, and a quality measurement processor for determining a quality difference between corresponding input and locally decoded pictures.
  • the quality measurement processor determines a difference in signal-to-noise ratio.
  • the quality measurement processor may determine a mean square error.
  • Such applications may include a randomly accessible recording medium or packetized communication network with variable instantaneous bit rate but also a maximum bandwidth specification.
  • such applications may also require that the input must be compressed in real-time; for example, live broadcasting or live recording cannot make use of multi-pass encoding. Therefore, it is also an object of the present invention to provide an encoder which can be operated in real time in a variable bit rate mode within the maximum and minimum bitrate boundary of the target application.
  • the present invention While encoding an input moving picmre sequence, the present invention continuously measures the resulting encoding picture quality, compares it to a defined target quality, and adjusts the encoding bit rate accordingly.
  • the target bit rate of the encoder By varying the target bit rate of the encoder within a defined maximum bit rate and a minimum bit rate according to a defined target encoded picture quality and the scene complexity, the encoder ensures consistent picture quality when possible and also that the maximum and minimum bit rate of the target application are not violated.
  • Figure 1 is a block diagram of an MPEG compliant constant bit rate video encoder constructed according to the prior art
  • Figure 2 is a block diagram of a variable bit rate moving pictures encoder according to one embodiment of the present invention.
  • Figure 3 is a block diagram of a moving pictures encoder according to an alternate embodiment of the present invention.
  • a block diagram of a generalized MPEG compliant video encoder 150 is illustrated in Figure 1.
  • a sequence of moving pictures (e.g. video) is input at 100 to the encoder 150 where it is compressed with a user defined target bitrate provided at 111.
  • the target bitrate is set according to the communication channel bandwidth in which the compressed video is to be transmitted, or to the storage media capacity in which a target duration of the compressed video is to be stored.
  • I-pictures which may be pre-processed for noise reduction or other purposes, are labelled as either I-pictures, P-pictures, or B-pictures, and stored in a frame buffer 101 according to re-ordering and processing needs.
  • the I-pictures are intra-coded pictures used mainly for random access or scene update.
  • the P-pictures use forward motion predictive coding with reference to previously coded I- or P- pictures (anchor pictures), and the B-pictures use both forward and backward motion predictive/interpolative coding with reference to previously coded I- or P-pictures.
  • a group of pictures (GOP) is formed in encoded order starting with an I-picture and ending with the picture immediately before the next I-picture in the sequence.
  • the input picture sequence may be either a field or frame structure sequence derived for an interlaced or progressive source.
  • MBs Macroblocks
  • Each MB from a P- or B-picture is subjected to a motion estimation process 102 in which forward motion vector(s), and backward motion vector(s) for the case of a B-picture MB, are determined using reference picture(s) from the frame buffer 101.
  • motion compensation 103 is performed where the intra- or inter-picture prediction mode of the MB is first determined according to the accuracy of the motion vector(s) found, followed by generating the necessary predicted MB.
  • the predicted MB is the input MB (i.e. no prediction).
  • the predicted MB is subjected to discrete cosine transform (DCT) 104 and DCT coefficient quantization 105 based on quantization matrices (QM) and quantization stepsize (QS).
  • DCT discrete cosine transform
  • QM quantization matrices
  • QS quantization stepsize
  • field or frame based DCT can be selected in 104.
  • the quantized DCT coefficients of the MB is then run-length encoded with variable length codes (VLC) at 106 and multiplexed with all necessary side information, for example selected motion vectors, MB coding modes, quantization stepsize, picture and sequence information, to form the ou ⁇ ut bitstream.
  • VLC variable length codes
  • the bitstream is stored in an encoder ou ⁇ ut buffer 107 for output at 108.
  • Local decoding is performed by inverse quantizing the quantized DCT coefficients (109), followed by inverse DCT 110, necessary motion compensation 103, and finally storing the reconstructed MB into frame buffer 101. Local decoding is performed such that the reference pictures used by motion compensation 103 is identical to those to be used by an external decoder.
  • the quantization stepsize (QS) used in 118 for quantizing the DCT coefficients of each MB has a direct impact on the number of bits produced at the ou ⁇ ut of the run-length VLC encoding process 106, and therefore the average ou ⁇ ut bit rate. It has also a direct impact on the encoding quality, which is ou ⁇ ut picture quality at the corresponding decoder. In general, larger QS generates lower ou ⁇ ut bit rate and lower encoding quality. In order to control ou ⁇ ut bit rate and picture quality so that the resulting bitstream can satisfy channel bandwidth or storage limitations as well as quality requirements, rate control and quantization control algorithms are used.
  • Step one is the bit allocation process 112 which assigns a target number of bits (T,, T P , or T B respectively) for a new I-, P- or B- picture to be coded.
  • the target number of bits can be computed as follows:
  • S safely Sp, Sg are number of bits generated by previously encoded I-, P-, B-picture respectively as computed by block 114,
  • Q ⁇ > Qp > Q B are ⁇ e average QS used by previously encoded I-, P-, B-picture respectively as computed by block 113,
  • Bit_Raie is the Target Bitrate supplied at 111
  • Picture_Rate is number of pictures coded per second
  • K P and Kg are constants (e.g. 1.0 and 1.4 respectively),
  • N P and N B are the number of P- and B-pictures remaining in the current GOP.
  • R is the remaining number of bits assigned to the GOP, where R is updated as follows:
  • R R - S l P B
  • S P B is the number of bits generated in the picture just encoded (picture type is I, P, or B)
  • N is the number of picmres in the GOP.
  • rate control (115) is performed. Basically, this step involves calculation of a reference quantization stepsize QS ref for each MB based on the target bits (T,, T P , or T B ) for the picture, the accumulated number of bits used from the target bits, and a virtual buffer model as given in MPEG-2 TM5.
  • Adaptive quantisation 118 is used in the third step for quantization control.
  • the calculated QS ref is scaled according to the local activities of the MB as generated by an MB activity calculation process 116, and the average MB activity of the previously coded picture (or optionally current picture) as produced by a frame activity average process 117.
  • This scaling is done according to a level of masking effects of coding noise by human perception for MBs with high or low activities within a picture.
  • an example of an adaptive quantization technique can be found in United States Patent number 5,650,860, "Adaptive Quantization".
  • the frame bit-count module 114 may contain a video buffer verifier (VBV) which is a virtual model of an input buffer of an external decoder.
  • VBV video buffer verifier
  • the VBV is maintained in such a way that underflow and overflow are prevented as required by the MPEG standard to ensure target bit rate 111 is maintained.
  • Techniques for underflow detection and protection may also be found in US Patent number 5,650,860.
  • VBR Variable bit rate
  • VBR encoder require huge storage memory for storing the intermediate bit utilization information, and large computation needs for the additional passes and the bit budgets generation, and furthermore such techniques cannot process the input sequence in real-time.
  • an encoder Before encoding an input picture sequence, an encoder according to an embodiment of the present invention is set with maximum and minimum bit rate of target application (the minimum bit rate for some applications may be zero), and a target quality for encoded pictures. An initial target bit rate will then be set or generated. The encoder compresses the input sequence according to this target bit rate using conventional bit rate control method.
  • the encoding quality (quality of encoded pictures) is measured against the target. If the encoding quality is lower than the target quality, the target encoding bit rate will be increased. On the other hand, if the encoding quality is higher than the target quality, the target bit rate will be decreased.
  • the level of new target bit rate adjustment may depend on the current target bit rate and the predicted bit rate based on encoding history so that it is not over adjusted unnecessarily.
  • the new target bit rate is also checked against the defined maximum and minimum bit rate.
  • the encoder will then re-adjust its rate control system with the new target bit rate, and continue to encode the rest of the input sequence. Furthermore, the encoder can ensure VBV compliant with existing methods using the defined maximum bit rate and/or the target bit rate. The process of determining new target bit rate based on encoding quality of past encoded picture(s) is repeated as needed.
  • FIG. 2 a block diagram of a one-pass variable bit rate moving pictures encoder 250 according to one embodiment of the present invention is illustrated. Those of ordinary skill in the art will recognise that a number of the functional blocks illustrated are common with the conventional MPEG encoder described above.
  • the input moving picmre sequence 200 is processed picture by picture according to its possible assigned picture coding type (I-, P-, 14
  • a frame buffer 201 is used to temporarily store the input pictures according to re-ordering and processing needs.
  • Each input picture is divided into Macroblocks (MB) before encoding. Temporal redundancy of each MB may be removed by motion estimation 202 and motion compensation 203.
  • a MB is subjected to discrete cosine transform (DCT) 204 and DCT coefficient quantization 205 based on quantization matrices and quantization stepsize.
  • the quantized MB of I- or P-picture is inverse quantized 209, inverse discrete cosine transformed 210, and subjected to corresponding motion compensation 203 so that the quantized MB is reconstructed and stored locally in frame buffer 201 for future motion estimation and compensation needs.
  • the quantized MB is run-length encoded with VLC (variable length coding) at 206, together with all necessary side information to form the encoded bitstream of the input sequence.
  • the encoded bitstream is stored in an ou ⁇ ut buffer 207 of the encoder for ou ⁇ ut at 208 at desired data rates.
  • Methods of motion estimation 202, motion compensation 203, DCT 204, DCT coefficient quantization 205, run-length VLC encoding 206, inverse quantization 209, and inverse DCT 210 may be those defined and/or allowed in the ISO/IEC MPEG-1 or MPEG-2 standards.
  • a target quality of encoding (219) and maximum/minimum bit rate (211) are set.
  • the maximum and minimum bit rates ⁇ BR max and BR partition in ), given as bits per second, define the boundary bit rates which the encoder shall operate at, and the target quality defines the encoded picture quality that the encoder shall target by constantly adjusting a target bit rate within the given bit rate boundaries.
  • the minimum bit rate may be set to zero.
  • target bit rate estimation 223 may be performed based the set target quality and the max/min bit rates to generate an initial target bit rate ⁇ BR largel ). Such initial estimate may be based on experimentally determined fixed values which may not directly relate to the picture(s) to be coded.
  • the bit allocation 212 is performed to determine a target number of bits for the picture to be coded (T I P B ).
  • a rate controller 215 15 is
  • the QS ref of each MB in the picmre to be coded can be computed, for example, as follows:
  • D I P B is virtual buffer fullness of corresponding I-, P-, or B-picture, updated (after coding each MB) by the difference between the bits used by the MB and the bits allocated to the MB based on the corresponding T l P B
  • Kj is a constant (eg. 31).
  • Adaptive quantization 218 may be applied in which the determined QS ref ⁇ ' s scaled according to the local activities of the MB as generated by MB activity calculation process 216 and the average MB activity of the previously coded (or optionally current picture) as produced by the frame activity average process 217.
  • Example implementations of the MB activity calculation 216, frame activity average 217, and adaptive quantization process 218 are found in MPEG-2 TM5.
  • the ou ⁇ ut quantization stepsize (QS) is used to quantized DCT coefficients of the MB.
  • the number of bits (S 1 P B , corresponding value for I-, P-, or B- picture) generated by encoding the picmre is accumulated by Frame Bit-Count 214, and the quantization stepsize (QS) is averaged by Frame Q Step Average 213 process.
  • the encoded picmre quality is also determined by Frame Quality Measure 220 process.
  • One method of determining the encoded picture quality is by the average value of the reference quantization stepsize (QS awrage ) used for coding the picmre since it indicates roughly the amount of quantization noise in the encoded picmre.
  • the target quality set at 219 is defined as the target reference quantization stepsize (QS ⁇ rjr« ).
  • the values can be determined by:
  • a further condition may be applied to the final QS M el for B-picmres such that it is not lower than the QS aver ⁇ ge of the last coded I- or P-picture so that bits can be efficiently used to improve the quality of anchor I- or P-pictures first before improving the quality of the B- pictures.
  • the value of QS ⁇ may be used at the rate controller 215 as a lower limit for the final ou ⁇ ut QS ref value so that when this target is reached (target quality reached), bits are saved for future encoding immediately.
  • the ou ⁇ ut reference quantization stepsize at rate controller 215 may be set according to:
  • an alternative embodiment of the present invention may consist of a method of target bitrate estimation comprising the steps of predicting a bitrate (BR predicled ) at a Bitrate Predictor 221 based on bits used for encoding the last I-, P-, and B- picture, and estimating a new target bitrate (BR Mrgel ) at the target bitrate estimator 222 based on the said predicted bit rate and the difference between QS a réelle r consult gt , and QS lar ⁇ /f .
  • the predicted bitrate (BR predjaed ) and the new target bitrate (BR ⁇ rgel ) may be computed as follows:
  • S,, Sp, S B are number of bits generated by previously encoded I-, P-, B-picture
  • n P is the total number of P-pictures in the current GOP
  • n B is the total number of B-picmres in the current GOP
  • K 2 may be a constant, or a factor of BR predictat , BR ⁇ , or BR urga .
  • the new target bit rate (BR ⁇ can be computed after encoding each picmre or after encoding a certain number of pictures.
  • the bit allocation process 212 and the rate controller 215 are updated with the new BR rge , value once it is determined.
  • An embodiment of the bit allocation process 212 comprises the steps of:
  • N P and N B are the number of P- and B-picmres remaining in the current GOP
  • T, T P , or T B determining the target number of bits (T Recipe T P , or T B ) to be used for coding the current picmre.
  • T,, T P , or T B for respective I-, P-, or B-picmre are given, for example, by:
  • T mi ⁇ Xp ⁇ Sp Q P , X B — S B , Q B , Kp and Kg are constants. 0
  • a minimum value (T mi ⁇ ) may be set as the lower boundary for T culinary T P , T B .
  • Figure 3 is a block diagram illustrating another embodiment of a one-pass variable bit rate moving picmres encoder 350 according to the present invention.
  • the encoding quality 324 is determined by comparing the original input picmre taken from input
  • MSE MSE
  • SNR signal-to-noise ratio
  • An input picmre or a given number of input picmres are first encoded with an initial set of encoding parameters. Each of these picmres may be given a picmre coding type of either I-, P-, or B-picmre.
  • the encoding technique such as those defined by the MPEG-1 or MPEG-2 10 standards may be utilized. Such techniques include motion estimation 302, motion compensation 303, discrete cosine transform 304, DCT coefficient quantization 305, and run- length VLC encoding 306 for temporal, spatial, and statistical redundancy reduction.
  • a frame buffer 301 is used for storing the input picmres for re-ordering and processing needs.
  • Rate Controller 315 determines reference quantization stepsize for each MB while coding the picmre.
  • Conventional adaptive quantization 318 which depends on MB activity calculation 316 and frame activity average
  • the coded picmres are locally decoded by inverse quantization 309, inverse discrete cosine transform 310, inverse of the motion compensation 303 to form the locally decoded picmres
  • the frame buffer 301 if necessary for fumre prediction use (ie. anchor pictures).
  • the locally decoded picmres 325 are used with reference to the original input pictures 300 for encoding quality determination 324.
  • the determined encoding quality is compared to the target quality given by 319 at frame quality measure process 320. It is also possible to offset the determined encoding quality by the picmre activity (ACT av Foster age ) before
  • the average level of activity within the picmre For example if the encoding quality is determined by the peak signal-to-noise ratio, then the resulting encoding quality difference (SNR diff ) at the output of frame quality measure 320 can be given by:
  • SNR diff SNR, ar/!e! - (SNR p mr , + K 5 x ACT merttge )
  • SNR piclure is the ou ⁇ ut of encoding quality measure 324, SNR ⁇ , is the target quality definable at 319, K 5 is a constant (eg. 0.018), and
  • ACT averoge is the average MB luminance block variance.
  • BR predicud is the result of bitrate predictor 321 .
  • K 6 is a suitable constant
  • BR- max and BR mifact are the maximum and minimum bitrate set at 311.
  • the bit allocation module 312 and the rate controller 315 take the updated BR tine rgel from the target bitrate estimator 322 and perform necessary bit allocation and bit rate control such that the resulting compressed moving picmre bitstreams will have encoded bit rate close to BR M ⁇ .,.
  • Existing techniques of VBV (video buffer verifier) underflow detection and protection may 22
  • the target bit rate BR rg! for encoding is adapted based on feedback on encoding quality, the encoding quality will always converge to a defined target quality. In such a way the encoding accommodates variable bit rates in real-time within single computational pass, and the encoding process can be better mned to changes in moving picmres scene content complexity. The overall percepmal quality of the encoded moving picmres sequence will be relatively consistent with reference to the defined target.
  • Embodiments according to the present invention can accommodate simplified models for estimation of target bit rate based on feedback and prediction. Overall impact to implementation and computation complexity as well as memory storage requirements of the encoder is minimized.

Abstract

A method and apparatus for encoding digital video utilising a single pass variable bit rate encoding procedure. An encoding quality is set and the bit rate for encoding blocks or frames in the sequence of moving pictures is determined to achieve the selected quality according to the complexity of the video sequence. The bit rate is constrained by predetermined upper and lower bit rate limits.

Description

ONE-PASS VARIABLE BIT RATE MOVING PICTURES ENCODING
Field of the nvention
The present invention relates to a method and apparatus for encoding moving pictures. In particular, the present invention relates to a method and apparatus for performing variable bit rate control for a digital video encoder.
Background of the Invention
Digital compression has been applied to moving pictures for the purposes of transmissions bandwidth or storage size reduction. One current art of such compression techniques can be derived from the ISO/TEC MPEG Standards, the ISO/TEC 11172-3 (MPEG-1), the ISO/IEC 13818-2 (MPEG-2) and the MPEG-2 TM5 (test model 5), developed by the Moving Picture Experts Group of the International Organisation for Standardization. The disclosures of those standards documents are hereby expressly incorporated into this specification by reference.
In a standard MPEG compliant video encoder, a sequence of moving pictures (e.g. video) is input to the encoder where it is compressed with a user defined target bitrate. The target bitrate is set according to the communication channel bandwidth in which the compressed video is to be transmitted, or the storage media capacity in which the compressed video sequence is to be stored.
Several different forms of coding can be employed depending upon the character of the input pictures, referred to as I-pictures, P-pictures, or B-pictures. The I-pictures are intra-coded pictures used mainly for random access or scene update. The P-pictures use forward motion predictive coding with reference to previously coded I- or P^ pictures (anchor pictures), and the B-pictures use both forward and backward motion predictive/interpolative coding with reference to previously coded I-or P-pictures. Furthermore, a group of picture (GOP) is formed in encoded order starting with an I-picture and ending with the picture before the next I-picture in the sequence.
The pictures are partitioned into smaller and non-overlapping blocks of pixel data called Macroblocks (MBs) before encoding. Each MB from a P- or B-picture is subjected to a motion estimation process in which forward motion vectors, and backward motion vectors in the case of a B-picture MB, are determined using reference pictures from a frame buffer. With the determined motion vectors, motion compensation is performed where the intra-or inter-picture prediction mode of the MB is first determined according to the accuracy of the motion vectors found, followed by generating the necessary predicted MB.
The predicted MB is then subjected to discrete cosine transform (DCT) and DCT coefficients quantization based on quantization matrices (QM) and quantization stepsize (QS). The quantized DCT coefficients of the MB is then run-length encoded with variable length codes (VLC) and multiplexed with additional information such as selected motion vectors, MB coding modes, quantization stepsize, and/or picture and sequence information, to form the output bitstream.
Local decoding is performed by inverse quantizing the quantized DCT coefficients, followed by inverse DCT, and motion compensation. Local decoding is performed such that the reference pictures used in the motion compensation are identical to those to be by an external decoder.
The quantization stepsize (QS) used for quantizing the DCT coefficients of each MB has direct impact on the number of bits produced at the output of the VLC encoding process, and therefore the average ouφut bit rate. It has also a direct impact on the encoding quality, which is output picture quality at the corresponding decoder. In general, larger QS generates lower output bit rate and lower encoding quality. In order to control ouφut bit rate and picture quality so that the resulting bitstream can satisfy channel bandwidth or storage limitations as well as quality requirements, rate control and quantization control algorithms are used. Some methods for rate control and quantization control can be found in the abovementioned MPEG-2 TM5 (Test Model 5). These methods comprise generally a bit allocation process, a rate control process, and an adaptive quantization process. In the bit allocation process, a target number of bits is assigned for a new picture to be coded according to a number of previously determined and preset parameters. The rate control step then calculates a reference quantization stepsize QSτef for each MB based on the target bits for the picture, the number of bits already used from the target bits in encoding MBs from that picture, and a virtual buffer model as given in MPEG-2 TM5. In the adaptive quantization process, the calculated QSref is then scaled according to local activities of the MB, and an average MB activity determined from the previously coded picture. This scaling is done according to a level of masking effects of coding noise by human perception for MB with high or low activities within a picture. An example of an adaptive quantization technique is disclosed in United States Patent number 5,650,860, entitled "Adaptive Quantization". A video buffer verifier (VBV) may also be employed in such a way that underflow and overflow are prevented as required by the MPEG standard to ensure the target bit rate is maintained. Techniques for underflow detection and protection are also disclosed in US Patent number 5,650,860.
It is apparent that the fixed target bitrate in the process outlined above has little or no relationship to the actual or varying complexity of the video scenes contained in the input picture sequence. The target bitrate is actually defined by the communication channel bandwidth, or by the target storage capacity for the picture sequence, but the perceptual quality of the resulting pictures when decoded may vary from good to annoying from scene to scene according to scene complexity.
For applications where picture sequences are compressed for storage and retrieval, for example DVD (Digital Video Disc or Digital Versatile Disc), variable bit rate (VBR) may be applied on individual segments of the picture sequences depending on its scene complexity to maximize bit rate allocation and encoded picture quality. Data bits may be reduced for less complex scene to save storage space and increase potential recording duration of the medium, or the resulting storage saving can be used for coding of more complex scenes. Similarly, VBR can also be applied to other applications such as a multi-channel video broadcasting network. Such channel bandwidth may be dynamically allocated to individual video sequences to be multiplexed together so that higher percentage of the bandwidth is used adaptively by sequences with complex scenes.
Existing VBR control algorithms such as that disclosed in US Patent 5,650,860 require multiple encoding passes to properly distribute data bits. In the first coding pass, the bit utilization information is determined for each scene or each picture in the input picture sequence. This may be done by fixing the reference quantization stepsize and disabling the VBV control.
The determined bit utilization information is then be used to generate a bit budget for each scene or picture such that an overall target number of bits to code the sequence is fixed, and so that a maximum bit rate is not violated. To accomplish this, the bit budget for each picture is modified so that the VBV buffer does not underflow. In cases that initial bit utilization information obtained is unrealistic for generating the bit budget, steps from the first coding pass must be repeated with an adjusted reference quantization stepsize. The input sequence is coded in a final pass using the generated bit budget information to achieve the target bits or bit rate. This form of multiple-pass VBR encoder requires very large storage memory for storing the intermediate bit utilization information, and large computational capacity for the additional passes and the bit budget generation. Furthermore, such a VBR technique such as this cannot process the input sequence in real-time.
Summary of the Invention
An object of the present invention is to provide a one-pass variable bit rate control technique for coding of moving pictures.
In accordance with the invention, there is provided a method for variable bit rate control in a moving pictures encoder, comprising: selecting a target picture encoding quality; selecting upper and lower bit rate limits; encoding at least one picture according to a target bit allocation based on an initial bit rate within the upper and lower bit rate limits; comparing the encoding quality of the at least one encoded picture with the target picture encoding quality; and adjusting the target bit allocation on the basis of said comparison, for encoding subsequent pictures.
In one form of the invention, the picture encoding quality is based on encoding quantization step-size.
In another form of the invention, the picture encoding quality is based on a mean square error. Alternatively, the picture encoding quality may be based on a signal-to-noise ratio. Preferably the comparing step includes measuring a difference in picture encoding quality between corresponding input and locally decoded pictures.
In a particular form of the invention, the pictures to be encoded are arranged in groups of pictures comprising an I-picture and at least one P-picture and/or B-picture, and wherein the or plurality of pictures in each group of target bit allocation is adjusted for each picture j_ pictures. Preferably the target bit allocation is adjusted to achieve a target bit rate, determined on the basis of said comparison, for each picture or plurality of pictures in the group of pictures.
The target picture encoding quality may comprise a target encoding quantization step-size, wherein different target quantization step-sizes are selected for I-, P-, and B-pictures.
In one form of the invention, the method may include measuring an average quantization stepsize for at least one previously encoded picture, predicting a bit rate for a previously encoded I-, P-, and B-picture, and determining said target bit rate based on said predicted bit rate and a difference between the target encoding quantization step-size and the measured average quantization step-size.
The method of the invention may include measuring an average picture activity for the moving pictures, and modifying the measured difference in picture encoding quality on the basis of the average picture activity.
The present invention also provides control apparatus for a moving picture encoder, comprising: an input for receiving a target picture encoding quality; an input for receiving upper and lower bit rate limits; and and a controller for controlling the encoder so as to encode at least one picture according to a target bit allocation based on an initial bit rate within the upper and lower bit rate limits, compare the encoding quality of the at least one encoded picture with the target picture encoding quality, and adjust the target bit allocation on the basis of said comparison for encoding subsequent pictures.
Preferably the moving picture encoder includes a frequency transform coefficient quantizer for quantization of the encoded picture data, and wherein the controller comprises a bit rate controller coupled to control the quantization step size of the quantizer, a quantization step size comparator for comparing, as a measure of encoding quality, an actual quantization step size with a target quantization step size based on the target picture encoding quality, a bit allocation processor coupled to control the bit rate controller according to a number of bits remaining for encoding a group of pictures, and a target bit rate estimator coupled to receive the upper and lower bit rate limits and coupled to the bit allocation processor and the bit rate controller for controlling the quantization so that the required bit rate for the quantized picture data is within the upper and lower bit rate limits.
The present invention further provides a video picture encoder comprising: a picture input for receiving data for a plurality of moving pictures; a target quality input for receiving a target quality measure for encoded pictures; an encoder ouφut for supplying encoded picture data; a bit rate limit input for receiving upper and lower bit rate limits for the encoded picture data; a frequency transform processor for frequency transform encoding picture data from the picture input; a coefficient quantizer for quantizing the encoded picture data according to a quantization step size; and a bit rate controller for dynamically controlling the quantization step size of the coefficient quantizer based on the target quality so that the encoder ouφut remains within the upper and lower bit rate limits.
The video picture encoder may further include a frame bit counter for a number of remaining bits available for encoding a group of pictures, and a bit allocation processor for controlling the bit rate controller according to the remaining available bits.
The video picture encoder may further include a quality comparator for comparing the target quality with a measured encoding quality, and wherein the bit rate controller controls the quantization step size based on a difference between the target and measured qualities.
In one form of the encoder, the measured encoding quality comprises the quantization step size.
The v ideo picture encoder may further include a local decoder for decoding the quantized encoded picture data, and a quality measurement processor for determining a quality difference between corresponding input and locally decoded pictures.
In another form of the encoder, the quality measurement processor determines a difference in signal-to-noise ratio. Alternatively, the quality measurement processor may determine a mean square error. 8
It is possible in most applications that only a maximum bit rate and optionally a minimum bit rate are specified. Such applications may include a randomly accessible recording medium or packetized communication network with variable instantaneous bit rate but also a maximum bandwidth specification. In addition, such applications may also require that the input must be compressed in real-time; for example, live broadcasting or live recording cannot make use of multi-pass encoding. Therefore, it is also an object of the present invention to provide an encoder which can be operated in real time in a variable bit rate mode within the maximum and minimum bitrate boundary of the target application.
While encoding an input moving picmre sequence, the present invention continuously measures the resulting encoding picture quality, compares it to a defined target quality, and adjusts the encoding bit rate accordingly. By varying the target bit rate of the encoder within a defined maximum bit rate and a minimum bit rate according to a defined target encoded picture quality and the scene complexity, the encoder ensures consistent picture quality when possible and also that the maximum and minimum bit rate of the target application are not violated.
Brief Description of the Drawings
The invention is described in greater detail hereinafter, by way of example only, with reference to the accompanying drawings, wherein:
Figure 1 is a block diagram of an MPEG compliant constant bit rate video encoder constructed according to the prior art;
Figure 2 is a block diagram of a variable bit rate moving pictures encoder according to one embodiment of the present invention; and
Figure 3 is a block diagram of a moving pictures encoder according to an alternate embodiment of the present invention.
Detailed Description of the Preferred Embodiments A block diagram of a generalized MPEG compliant video encoder 150 is illustrated in Figure 1. A sequence of moving pictures (e.g. video) is input at 100 to the encoder 150 where it is compressed with a user defined target bitrate provided at 111. The target bitrate is set according to the communication channel bandwidth in which the compressed video is to be transmitted, or to the storage media capacity in which a target duration of the compressed video is to be stored.
Input pictures, which may be pre-processed for noise reduction or other purposes, are labelled as either I-pictures, P-pictures, or B-pictures, and stored in a frame buffer 101 according to re-ordering and processing needs. The I-pictures are intra-coded pictures used mainly for random access or scene update. The P-pictures use forward motion predictive coding with reference to previously coded I- or P- pictures (anchor pictures), and the B-pictures use both forward and backward motion predictive/interpolative coding with reference to previously coded I- or P-pictures. Furthermore, a group of pictures (GOP) is formed in encoded order starting with an I-picture and ending with the picture immediately before the next I-picture in the sequence. In the case of an MPEG-2 encoder, the input picture sequence may be either a field or frame structure sequence derived for an interlaced or progressive source.
All pictures are partitioned into smaller and non-overlapping blocks of pixel data called Macroblocks (MBs) before actual encoding. Each MB from a P- or B-picture is subjected to a motion estimation process 102 in which forward motion vector(s), and backward motion vector(s) for the case of a B-picture MB, are determined using reference picture(s) from the frame buffer 101. With the determined motion vector(s), motion compensation 103 is performed where the intra- or inter-picture prediction mode of the MB is first determined according to the accuracy of the motion vector(s) found, followed by generating the necessary predicted MB. For the case of an I-picture MB or intra-mode MB, the predicted MB is the input MB (i.e. no prediction).
The predicted MB is subjected to discrete cosine transform (DCT) 104 and DCT coefficient quantization 105 based on quantization matrices (QM) and quantization stepsize (QS). Note 10
that for MPEG-2, field or frame based DCT can be selected in 104. The quantized DCT coefficients of the MB is then run-length encoded with variable length codes (VLC) at 106 and multiplexed with all necessary side information, for example selected motion vectors, MB coding modes, quantization stepsize, picture and sequence information, to form the ouφut bitstream. The bitstream is stored in an encoder ouφut buffer 107 for output at 108.
Local decoding is performed by inverse quantizing the quantized DCT coefficients (109), followed by inverse DCT 110, necessary motion compensation 103, and finally storing the reconstructed MB into frame buffer 101. Local decoding is performed such that the reference pictures used by motion compensation 103 is identical to those to be used by an external decoder.
The quantization stepsize (QS) used in 118 for quantizing the DCT coefficients of each MB has a direct impact on the number of bits produced at the ouφut of the run-length VLC encoding process 106, and therefore the average ouφut bit rate. It has also a direct impact on the encoding quality, which is ouφut picture quality at the corresponding decoder. In general, larger QS generates lower ouφut bit rate and lower encoding quality. In order to control ouφut bit rate and picture quality so that the resulting bitstream can satisfy channel bandwidth or storage limitations as well as quality requirements, rate control and quantization control algorithms are used.
Previously used methods for rate control and quantization control can be found in the MPEG- 2 TM5 (Test Model 5), which can be summarized in three steps. Step one is the bit allocation process 112 which assigns a target number of bits (T,, TP, or TB respectively) for a new I-, P- or B- picture to be coded. The target number of bits can be computed as follows:
^maxl R Bit Rate
I + N Pp Xp - . N BR X BR ^Picture Rate
X; Kp X, KB 1 1
R Bit Rate
7p=max|
NB Kp XB ' ^Picture _Rate
N„ KB Xp
R Bit Rate
-r £=max|
Np K„ Xp 8χ Picture Rate
NB+ p B p Kp XB
where
Λ = >->/ Qj, Λ.p = sip Qp, Λβ = ύg, g,
S„ Sp, Sg are number of bits generated by previously encoded I-, P-, B-picture respectively as computed by block 114,
> Qp> QB are Λe average QS used by previously encoded I-, P-, B-picture respectively as computed by block 113,
Bit_Raie is the Target Bitrate supplied at 111,
Picture_Rate is number of pictures coded per second,
KP and Kg are constants (e.g. 1.0 and 1.4 respectively),
NP and NB are the number of P- and B-pictures remaining in the current GOP.
R is the remaining number of bits assigned to the GOP, where R is updated as follows:
After encoding a picture, R = R - Sl P B where S, P B is the number of bits generated in the picture just encoded (picture type is I, P, or B)
Before encoding the first picture in a GOP (an I-picture):
R = G+R G=Bit Rate* N/ Picture Rate 12
N is the number of picmres in the GOP.
In the second step, rate control (115) is performed. Basically, this step involves calculation of a reference quantization stepsize QSref for each MB based on the target bits (T,, TP, or TB) for the picture, the accumulated number of bits used from the target bits, and a virtual buffer model as given in MPEG-2 TM5.
Adaptive quantisation 118 is used in the third step for quantization control. In this step, the calculated QSref is scaled according to the local activities of the MB as generated by an MB activity calculation process 116, and the average MB activity of the previously coded picture (or optionally current picture) as produced by a frame activity average process 117. This scaling is done according to a level of masking effects of coding noise by human perception for MBs with high or low activities within a picture. As previously mentioned, an example of an adaptive quantization technique can be found in United States Patent number 5,650,860, "Adaptive Quantization".
The frame bit-count module 114 may contain a video buffer verifier (VBV) which is a virtual model of an input buffer of an external decoder. The VBV is maintained in such a way that underflow and overflow are prevented as required by the MPEG standard to ensure target bit rate 111 is maintained. Techniques for underflow detection and protection may also be found in US Patent number 5,650,860.
As mentioned, this form of encoding does not take account of the actual or varying complexity of the video scenes contained in the input picture sequence 100. Consequently, the perceptual quality of the resulting pictures may vary from good to annoying from scene to scene according to scene complexity. Variable bit rate (VBR) coding may be therefore be applied on individual segments of the picture sequences depending on its scene complexity to maximize bit rate allocation and encoded picture quality, and the bandwidth saving used for coding of more complex scenes, for example. However, existing VBR control algorithms such as that disclosed in US Patent 5.650,860 require multiple encoding passes to properly 13
distribute data bits. Multiple-pass VBR encoder require huge storage memory for storing the intermediate bit utilization information, and large computation needs for the additional passes and the bit budgets generation, and furthermore such techniques cannot process the input sequence in real-time.
Before encoding an input picture sequence, an encoder according to an embodiment of the present invention is set with maximum and minimum bit rate of target application (the minimum bit rate for some applications may be zero), and a target quality for encoded pictures. An initial target bit rate will then be set or generated. The encoder compresses the input sequence according to this target bit rate using conventional bit rate control method.
After encoding a picture or a certain number of pictures, the encoding quality (quality of encoded pictures) is measured against the target. If the encoding quality is lower than the target quality, the target encoding bit rate will be increased. On the other hand, if the encoding quality is higher than the target quality, the target bit rate will be decreased. The level of new target bit rate adjustment may depend on the current target bit rate and the predicted bit rate based on encoding history so that it is not over adjusted unnecessarily. The new target bit rate is also checked against the defined maximum and minimum bit rate.
The encoder will then re-adjust its rate control system with the new target bit rate, and continue to encode the rest of the input sequence. Furthermore, the encoder can ensure VBV compliant with existing methods using the defined maximum bit rate and/or the target bit rate. The process of determining new target bit rate based on encoding quality of past encoded picture(s) is repeated as needed.
In Figure 2 a block diagram of a one-pass variable bit rate moving pictures encoder 250 according to one embodiment of the present invention is illustrated. Those of ordinary skill in the art will recognise that a number of the functional blocks illustrated are common with the conventional MPEG encoder described above. The input moving picmre sequence 200 is processed picture by picture according to its possible assigned picture coding type (I-, P-, 14
or B-picture). A frame buffer 201 is used to temporarily store the input pictures according to re-ordering and processing needs. Each input picture is divided into Macroblocks (MB) before encoding. Temporal redundancy of each MB may be removed by motion estimation 202 and motion compensation 203.
After necessary motion compensation, a MB is subjected to discrete cosine transform (DCT) 204 and DCT coefficient quantization 205 based on quantization matrices and quantization stepsize. The quantized MB of I- or P-picture is inverse quantized 209, inverse discrete cosine transformed 210, and subjected to corresponding motion compensation 203 so that the quantized MB is reconstructed and stored locally in frame buffer 201 for future motion estimation and compensation needs. The quantized MB is run-length encoded with VLC (variable length coding) at 206, together with all necessary side information to form the encoded bitstream of the input sequence. The encoded bitstream is stored in an ouφut buffer 207 of the encoder for ouφut at 208 at desired data rates.
Methods of motion estimation 202, motion compensation 203, DCT 204, DCT coefficient quantization 205, run-length VLC encoding 206, inverse quantization 209, and inverse DCT 210 may be those defined and/or allowed in the ISO/IEC MPEG-1 or MPEG-2 standards.
Before encoding, a target quality of encoding (219) and maximum/minimum bit rate (211) are set. The maximum and minimum bit rates {BRmax and BR„in), given as bits per second, define the boundary bit rates which the encoder shall operate at, and the target quality defines the encoded picture quality that the encoder shall target by constantly adjusting a target bit rate within the given bit rate boundaries. The minimum bit rate may be set to zero.
Initially, target bit rate estimation 223 may be performed based the set target quality and the max/min bit rates to generate an initial target bit rate {BRlargel). Such initial estimate may be based on experimentally determined fixed values which may not directly relate to the picture(s) to be coded. With the target bit rate, the bit allocation 212 is performed to determine a target number of bits for the picture to be coded (TI P B). A rate controller 215 15
determines a reference quantization step size (QSrrj) for each MB based on the estimated number of bits for the picture (TI P B) and the bit utilization by the run-length VLC encoder 206. The QSref of each MB in the picmre to be coded can be computed, for example, as follows:
DI PS x Kι
~ ref (2 x BR target I picture _rate)
where DI P B is virtual buffer fullness of corresponding I-, P-, or B-picture, updated (after coding each MB) by the difference between the bits used by the MB and the bits allocated to the MB based on the corresponding Tl P B, a set of initial values for D,, DP, DB may be assumed at sequence start, and Kj is a constant (eg. 31).
Adaptive quantization 218 may be applied in which the determined QSref ι's scaled according to the local activities of the MB as generated by MB activity calculation process 216 and the average MB activity of the previously coded (or optionally current picture) as produced by the frame activity average process 217. Example implementations of the MB activity calculation 216, frame activity average 217, and adaptive quantization process 218 are found in MPEG-2 TM5. The ouφut quantization stepsize (QS) is used to quantized DCT coefficients of the MB.
After encoding a picmre, the number of bits (S1 P B , corresponding value for I-, P-, or B- picture) generated by encoding the picmre is accumulated by Frame Bit-Count 214, and the quantization stepsize (QS) is averaged by Frame Q Step Average 213 process. The encoded picmre quality is also determined by Frame Quality Measure 220 process. One method of determining the encoded picture quality is by the average value of the reference quantization stepsize (QSawrage) used for coding the picmre since it indicates roughly the amount of quantization noise in the encoded picmre. In this method, the target quality set at 219 is defined as the target reference quantization stepsize (QSωrjr«). Three different QSωrgfl values 16
may be set at 219 for corresponding I-, P-, and B-picmres; alternatively, the values can be determined by:
QS rg . for I-pictures = QSωrgel QSωrge, for P-pictures = KP * QS^, QS el for B-picmres = KB * QSurga
where KF and KB are constants which can be experimentally determined (example KF = 1.0 mά KB = 1.4).
A further condition may be applied to the final QSM el for B-picmres such that it is not lower than the QSaverπge of the last coded I- or P-picture so that bits can be efficiently used to improve the quality of anchor I- or P-pictures first before improving the quality of the B- pictures.
In the process of Frame Quality Measure 220 process, the target quality -2SMr^« 1S compared to the picmre quality QSavage. Since a higher value of QSaverage implies higher quantization noise and therefore lower encoded picmre quality, when the value of QSaverage is found to be higher than QSarget, the difference of the two values will be used to increase the target bit rate (BRMrgel) at target bitrate estimator 222. On the other hand, when QSavemge is lower than QSMrga, BRlarge, is decreased at target bitrate estimator 222. Optionally, the value of QS^^, may be used at the rate controller 215 as a lower limit for the final ouφut QSref value so that when this target is reached (target quality reached), bits are saved for future encoding immediately. Hence, the ouφut reference quantization stepsize at rate controller 215 may be set according to:
if (QSref < QSurg , then QSrff =QSωrget .
For target bit rate estimation, a rate-quantization model for example one developed by Wei
Ding and Bede Liu, "Rate Control of MPEG Video Coding and Recording by Rate- Quantization Modelling" , IEEE Trans, on Circuit and Systems for Video Technology, Vol. 17
6, No. 1 , Feb. 1996, may be adopted. To avoid large estimation error or complex local fitting of the rate-quantization model, an alternative embodiment of the present invention may consist of a method of target bitrate estimation comprising the steps of predicting a bitrate (BRpredicled) at a Bitrate Predictor 221 based on bits used for encoding the last I-, P-, and B- picture, and estimating a new target bitrate (BRMrgel) at the target bitrate estimator 222 based on the said predicted bit rate and the difference between QSargt, and QSlarι/f.r The predicted bitrate (BRpredjaed) and the new target bitrate (BRωrgel) may be computed as follows:
BR predicted _(W (1 +« +„"βA) )
(OS - OS )
BRtargeA BRpredicιeX ^ * "T ' ^
'-■ average
if (BRurga > BR , then BRurgel = BR^ ϊf (BRurget< β ?TO , then BRuτg„ = BR^
where
S,, Sp, SB are number of bits generated by previously encoded I-, P-, B-picture, nP is the total number of P-pictures in the current GOP, nB is the total number of B-picmres in the current GOP, and K2 may be a constant, or a factor of BRpredictat, BR^, or BRurga.
The new target bit rate (BR^ can be computed after encoding each picmre or after encoding a certain number of pictures. The bit allocation process 212 and the rate controller 215 are updated with the new BR rge, value once it is determined. An embodiment of the bit allocation process 212 comprises the steps of:
a) Before encoding the first picmre in a group of picmres (GOP), determining R which 18
is the remaining number of bits assigned to the GOP:
R+= — xBR, „ then set BR , . , =BR picture _rate targe' °ldJarse' ,arge'
where:
N is the number of picmres in the GOP R = 0 before start of sequence, and
+ = is the accumulate function
b) Otherwise, if the picmre to be coded is not the first picmre of a GOP and a new target bit rate (BRωrg is determined, then updating R as given by:
R + ^e N e X (BR'^' ' **«--»> ' then S6t BR^ g t-B rget
where:
NP and NB are the number of P- and B-picmres remaining in the current GOP
c) Obtaining the average quantization stepsize (Q„ QP, or QB) from previously encoded picmres (I-, P-, or B-picmre respectively) as determined by Frame Q Step average process 213,
d) Obtaining from frame bit-count 214 the value of the number of bits (S„ SP, or SB) used to encode the past I-, P-, or B-picmres, and removing number of bits used by the last coded picmre (S, P B) from R, hence:
R - = S, if last coded picture is an I-picture
R -= Sp if last coded picmre is an P-picture
R -= SB if last coded picmre is an B-picmre 19
e) Finally, determining the target number of bits (T„ TP, or TB) to be used for coding the current picmre. T,, TP, or TB for respective I-, P-, or B-picmre are given, for example, by:
R
T
Np Xp ^ NB XB X, Kp Xj KB
T = R
NP KP X,
N - κB xp
T = R
ND Ka XP
Na κp xB
where
X] — S/ Qι> Xp ~ Sp QP, XB — SB, QB, Kp and Kg are constants. 0 A minimum value (Tmiπ) may be set as the lower boundary for T„ TP, TB. For example:
RR
T ■ = l^A. , whereK^ is a constant (e .8) mm K3* Picture _ Rate 3
Figure 3 is a block diagram illustrating another embodiment of a one-pass variable bit rate moving picmres encoder 350 according to the present invention. In this embodiment, the encoding quality 324 is determined by comparing the original input picmre taken from input
15 300 and the locally decoded picmre 325. Conventional methods such as the mean square 20
error (MSE) or the signal-to-noise ratio (SNR) measures can be used as comparison. This measure is further compared at Frame Quality Measure 320 with the definable Target Quality 319. When the encoding quality is lower than the target quality, the target bitrate estimator 322 will set the target bitrate higher; on the other hand, if the encoding quality is higher than 5 the target quality, the target bitrate is set lower.
An input picmre or a given number of input picmres are first encoded with an initial set of encoding parameters. Each of these picmres may be given a picmre coding type of either I-, P-, or B-picmre. The encoding technique such as those defined by the MPEG-1 or MPEG-2 10 standards may be utilized. Such techniques include motion estimation 302, motion compensation 303, discrete cosine transform 304, DCT coefficient quantization 305, and run- length VLC encoding 306 for temporal, spatial, and statistical redundancy reduction. A frame buffer 301 is used for storing the input picmres for re-ordering and processing needs.
15 Before each picmre is coded, its target amount of bits is set by bit allocation process 312 based on the initial set of coding parameters as well as any updated information from Frame Q Step averaging process 313 and Frame bit-count 314. Rate Controller 315 determines reference quantization stepsize for each MB while coding the picmre. Conventional adaptive quantization 318 which depends on MB activity calculation 316 and frame activity average
20 317 can be applied to each reference quantization stepsize to generate final quantization stepsize for the DCT Coeff quantizer 305.
The coded picmres are locally decoded by inverse quantization 309, inverse discrete cosine transform 310, inverse of the motion compensation 303 to form the locally decoded picmres
25 325. It is stored in the frame buffer 301 if necessary for fumre prediction use (ie. anchor pictures). The locally decoded picmres 325 are used with reference to the original input pictures 300 for encoding quality determination 324. The determined encoding quality is compared to the target quality given by 319 at frame quality measure process 320. It is also possible to offset the determined encoding quality by the picmre activity (ACTavage) before
30 the comparison so as to take into account the masking effects of the human visual system to 21
the average level of activity within the picmre. For example if the encoding quality is determined by the peak signal-to-noise ratio, then the resulting encoding quality difference (SNRdiff) at the output of frame quality measure 320 can be given by:
SNRdiff = SNR,ar/!e! - (SNRp mr, + K5 x ACTmerttge)
where
SNRpiclure is the ouφut of encoding quality measure 324, SNR^, is the target quality definable at 319, K5 is a constant (eg. 0.018), and
ACTaveroge is the average MB luminance block variance.
One method of adjusting BRmτget based on SNRdjff at the target bitrate estimator 322 is given by:
BRiargei = BRpdiaed + 6 X BRcurre„, X SNR^
if (BRlargel> BR , then BR,argel = BR^ if (BR^ BRmiπ), then BR^, = BR^
where
BRpredicud is the result of bitrate predictor 321 ,
Recurrent ^ the previous value of -5/?Mrj-e, stored at current bitrate 323 memory,
K6 is a suitable constant, BR-max and BRmi„ are the maximum and minimum bitrate set at 311.
The bit allocation module 312 and the rate controller 315 take the updated BR„rgel from the target bitrate estimator 322 and perform necessary bit allocation and bit rate control such that the resulting compressed moving picmre bitstreams will have encoded bit rate close to BRM ι.,. Existing techniques of VBV (video buffer verifier) underflow detection and protection may 22
be applied using BR^ as the reference bit rate to ensure the maximum bitrate of the ouφut bitstream is not violated.
Because the target bit rate BR rg!, for encoding is adapted based on feedback on encoding quality, the encoding quality will always converge to a defined target quality. In such a way the encoding accommodates variable bit rates in real-time within single computational pass, and the encoding process can be better mned to changes in moving picmres scene content complexity. The overall percepmal quality of the encoded moving picmres sequence will be relatively consistent with reference to the defined target.
Embodiments according to the present invention can accommodate simplified models for estimation of target bit rate based on feedback and prediction. Overall impact to implementation and computation complexity as well as memory storage requirements of the encoder is minimized.
The foregoing detailed description of embodiments of the invention has been presented by way of example only, and is not intended to be considered limiting to the invention as defined in the claims appended hereto.

Claims

23Claims
1. A method for variable bit rate control in a moving picmres encoder, comprising: selecting a target picmre encoding quality; selecting upper and lower bit rate limits; encoding at least one picmre according to a target bit allocation based on an initial bit rate within the upper and lower bit rate limits; comparing the encoding quality of the at least one encoded picmre with the target picmre encoding quality; and adjusting the target bit allocation on the basis of said comparison, for encoding subsequent picmres.
2. A method as claimed in claim 1, wherein the picmres to be encoded are arranged in groups of picmres comprising an I-picture and at least one P-picmre and/or B-picmre, and wherein the target bit allocation is adjusted for each picmre or plurality of picmres in each group of picmres.
3. A method as claimed in claim 2, wherein the target bit allocation is adjusted to achieve a target bit rate for the picmre or plurality of picmres in each group of picmres which is determined on the basis of said comparison.
4. A method as claimed in claim 1, 2 or 3, wherein the picmre encoding quality is based on encoding quantization step-size.
5. A method as claimed in claim 1, 2 or 3, wherein the picmre encoding quality is based on a mean square error.
6. A method as claimed in claim 1, 2 or 3, wherein the picmre encoding quality is based on a signal-to-noise ratio. 24
7. A method as claimed in claim 5 or 6. wherein the comparing step includes measuring a difference in picmre encoding quality between corresponding input and locally decoded picmres.
8. A method as claimed in claim 7, including measuring an average picmre activity for the moving picmres, and modifying the measured difference in picmre encoding quality on the basis of the average picmre activity.
9. A method as claimed in claim 8, including measuring a signal-to-noise ratio for at least one previously encoded picmre, predicting a current bit rate, and determining said target bit rate based on said predicted current bit rate and on a difference between the measured signal-to-noise ratio and a target signal-to-noise ratio as said target picmre encoding quality.
10. A method as claimed in claim 9, wherein the predicted current bit rate and the target bit rate are determined according to:
SNRdlff = SNR,arga - (SNRpicture + K5 x ACT^)
(Sj+npHSp+n^Sβ)
BR p.re cted (1 +Λ +„ )
Retarget ~ BRpτtdiaed + K6 x BRaιπ.m, X SNRdiff
where:
SNRpicmre is the measure signal-to-noise ratio, SNR;„rj« is the target signal-to-noise ratio,
A Tavatr is the measured average pixel activity,
K;, and K6 are constants.
SNRdriJ is the measure difference in picture encoding quality,
BRpredicud is the predicted current bit rate, S„ Sp, SB are number of bits generated by said previously encoded I-, P-, B-picmres, 25
respectively nP is a total number of P-pictures in the group of picmres, nB is a total number of B-picmres in the group of picmres, BRcurrmt is a previously determined BRargel, and 5 BR^^, is said target bit rate.
11. A method as claimed in claim 4, wherein said target picmre encoding quality comprises a target encoding quantization step-size.
10 12. A method as claimed in claim 11 , wherein different target quantization step-sizes are selected for I-, P-, and B-picmres.
13. A method as claimed in claim 11 or 12, including measuring an average quantization step-size for at least one previously encoded picmre, predicting a current bit rate, and
15 determining said target bit rate based on said predicted current bit rate and a difference between the target encoding quantization step-size and the measured average quantization step-size.
14. A method as claimed in claim 13, wherein maximum and minimum bit rates are 20 selected corresponding to the upper and lower bit rate limits, and wherein the predicted current bit rate and the target bit rate are determined according to:
BR - <___________. predicted \ +n +n )
OD . op j. f v ^ average VS target) βKtarger βKpreώcted+ 2 * Q~
— average
if (B/ „«> BR„ , then BRlargel = BR^ if BR^ BRmin), then BRmrgel = BRmin 26
where Rprauaed is said predicted current bit rate,
BRm-gt, is said target bit rate,
BRmaz is said maximum bit rate, BRmm is said minimum bit rate
Sp Sp, SB are number of bits generated by said previously encoded I-. P-. B-picmres. respectively nP is a total number of P-pictures in the group of picmres, nB is a total number of B-picmres in the group of picmres, and K2 is a constant or a factor of BRpraϋeled. BFtøax, or previous B target>
15. A method as claimed in claim iOor 14, including determining a number of bits R remaining for encoding the group of picmres comprising the steps of: before encoding a first picmre in a said group of picmres, determining R according to
N
R+= *BR,«r*.» *hen set BR .. t/,„„=BRtantt picture ate tars'p σldJars" ,arget
where:
N is the number of picmres in the group of picmres, picture_rate is the number of picmres encoded per unit time, and B urga is said target bitrate,
and before encoding each subsequent picmre in the group of picmres, determining R according to
where: tV,, and Λ£ are the number of P- and B-pictures remaining in the current group of 27
picmres,
B ura is a subsequently determined target bit rate, and
S is one of S„ SP or SB according to the picture type of the previously encoded picmre.
16. A method as claimed in claim 15, further comprising the steps of: obtaining average quantization step sizes Q„ Qp, QB from previously encoded I-, P-,B- pictures, respectively;
determining the target bit allocation T„ Tp, TB for a subsequent respective I-, P-, or B-picmre according to:
R τ,= ^NpXp NBXB Xj Kp Xj KB
T =
N °K>X-
K-B Xp
T = R
Np KB Xp
NB+ p B p Kp XB
where
Λ-I = / ι, X — p p, XB — ιjβ, QB, Kp and KB are constants.
17. A method as claimed in 16, wherein the target bit allocations T„ Tp, TB have a lower 28
limit 7X, determined according to:
T _ BR 'target min K. x Picture rate
where Kj is a constant
18. A method as claimed in any one of claims 1 to 17, wherein the target bit allocation is used to encode an input picture, comprising the steps of: deriving macroblocks from the input picmre; calculating a quantization step-size for each said macrobiock according to the target bit allocation and its utilization; performing motion compensation if necessary to each macroblock; frequency transforming each said macroblock or motion compensated macroblock; quantizing each transformed macroblock using the calculated quantization step-size; and coding the quantized macroblock.
19. A meώod as claimed in claim 18, wherein the target quantization step-size is used as a lower limit for the determined quantization step-size.
20. A method as claimed in claim 18 or 19, wherein the determined quanuzauon siep-siic for each macroblock is modulated by a corresponding macroblock activity masking factor, and the quantization is performed using the modulated quantization step-size.
21 . A control apparatus for a moving pictures encoder, cαiprising: an input for receiving a target picmre encoding quality; an input for receiving upper and lower bit rate limits; and and a controller for controlling the encoder so as to encode at least one picture according to a target bit allocation based on an initial bit rate within the upper and lower bit rate limits, compare die encoding quality of the at least one encoded picture with the target picture encoding quality, and adjust the target bit allocation on the basis of said comparison for encoding subsequent pictures. 29
22. A control apparatus as claimed in claim 21, wherein the pictures to be encoded are arranged in groups of pictures comprising an I-picture and at least one P-picmre and/or B- picture, and wherein the controller adjusts the target bit allocation for each picture or plurality of pictures in each group of picmres.
5
23. A control apparatus as claimed in claim 22, wherein the controller adjusts the target bit allocation to achieve a target bit rate for the picture or plurality of picmres in each group of pictures which is determined on the basis of said comparison.
10 24. A control apparatus as claimed in claim 21, 22 or 23, wherein the picture encoding quality is based on encoding quantization step-size.
25. A control apparatus as claimed in claim 21, 22 or 23, wherein the picture encoding quality is based on a mean square error.
15
26. A control apparatus as claimed in claim 21, 22 or 23, wherein the picmre encoding quality is based on a signal-to-noise ratio.
27. A control apparatus as claimed in claim 25 or 26, wherein the controller includes a 20 local picture decoder and a comparator for measuring a difference in picmre encoding quality between corresponding input and locally decoded pictures.
28. A control apparatus as claimed in claim 27, wherein the controller includes a picture activity processor for measuring an average picmre activity for the moving pictures, and
25 wherein the controller modifies the measured difference in picmre encoding quality on the basis of the average picmre activity.
29. A control apparatus as claimed in claim 28, wherein the controller includes a signal- to-noise processor for measuring a signal-to-noise ratio for at least one previously encoded
30 picmre, and a bit rate predictor for estimating a current bit rate, and wherein the controller 30
adjusts said target bit allocation based on the estimated current bit rate and on a difference between the measured signal-to-noise ratio and a target signal-to-noise ratio as said target picture encoding quality.
30. A control apparatus as claimed in claim 21, wherein the moving picture encoder includes a frequency transform coefficient quantizer for quantization of the encoded picmre data, and wherein the controller comprises a bit rate controller coupled to control the quantization step size of the quantizer, a quantization step size comparator for comparing, as a measure of encoding quality, an actual quantization step size with a target quantization step size based on the target picture encoding quality, a bit allocation processor coupled to control the bit rate controller according to a number of bits remaining for encoding a group of pictures, and a target bit rate estimator coupled to receive the upper and lower bit rate limits and coupled to the bit allocation processor and the bit rate controller for controlling the quantization so that the required bit rate for the quantized picture data is within the upper and lower bit rate limits.
31. A video picture encoder comprising: a picmre input for receiving data for a plurality of moving picmres; a target quality input for receiving a target quality measure for encoded pictures; a encoder ouφut for supplying encoded picmre data; a bit rate limit input for receiving upper and lower bit rate limits for the encoded picture data; a frequency transform processor for frequency transform encoding picture data from the picmre input; a coefficient quantizer for quantizing the encoded picmre data according to a quantization step size; and a bit rate controller for dynamically controlling the quantization step size of the coefficient quantizer based on the target quality so that the encoder ouφut remains within the upper and lower bit rate limits. 31
32. A video picmre encoder as claimed in claim 31, wherein the picmres to be encoded are arranged in groups of picmres comprising an I-picture and at least one P-picmre and/or B-picture, the bit rate controller including a frame bit counter for a number of remaining bits available for encoding a group of picmres, and a bit allocation processor for controlling the bit rate controller according to the remaining available bits so as to adjust a target bit allocation for each picmre or plurality of picmres in each group of picmres.
33. A video picture encoder as claimed in claim 31 or 32, including a quality comparator for comparing the target quality with a measured encoding quality, and wherein the bit rate controller controls the quantization step size based on a difference between the target and measured qualities.
34. A video picture encoder as claimed in claim 32, including a quality comparator for comparing the target quality with a measured encoding quality wherein the bit rate controller adjusts the target bit allocation to achieve a target bit rate for the picture or plurality of pictures in each group of picmres which is determined on the basis of an ouφut from said quality comparator.
35. A video picture encoder as claimed in claim 33 or 34, wherein the measured encoding quality comprises the quantization step size.
36. A video picture encoder as claimed in claim 33, including a local decoder for decoding the quantized encoded picture data, and a quality measurement processor for determining a quality difference between corresponding input and locally decoded picmres.
37. A video picmre encoder as claimed in claim 36, wherein the quality measurement processor determines a difference in signal-to-noise ratio.
38. A video picmre encoder as claimed in claim 36, wherein the quality measurement processor determines a mean square error. 32
39. A video picture encoder as claimed in claim 36, 37 or 38, including a picture activity processor for measuring an average picmre activity for the moving picmres, and wherein the quality measurement processor modifies the measured difference in picmre encoding quality on the basis of the average picmre activity.
40. A video picture encoder as claimed in claim 37, including a signal-to-noise processor for measuring a signal-to-noise ratio for at least one previously encoded picture, and a bit rate predictor for estimating a current bit rate, and wherein the bit rate controller adjusts said target bit allocation based on the estimated current bit rate and on a difference between the measured signal-to-noise ratio and a target signal-to-noise ratio as said target picture encoding quality.
41. A video picmre encoder as claimed in claim 31, including a quantization step size comparator for comparing, as a measure of encoding quality, an actual quantization step size with a target quantization step size based on the target picture encoding quality, a bit allocation processor coupled to control the bit rate controller according to a number of bits remaining for encoding a group of pictures, and a target bit rate estimator coupled to receive the upper and lower bit rate limits and coupled to the bit allocation processor and the bit rate controller for controlling the quantization so that the required bit rate for the quantized picture data is within the upper and lower bit rate limits.
33
AMENDED CLAIMS
[received by the International Bureau on 12 March 1999 (12.03.99); original claims 1 to 3, 9, 13 to 17, 21 to 23, 29, 31, 33 to 35 amended; remaining claims unchanged (11 pages)]
1. A method for variable bit rate control in a single pass moving pictures encoder, comprising: selecting a target picture encoding quality; selecting upper and lower bit rate limits; encoding at least one picmre based on a target bit rate within the upper and lower bit rate limits; predicting a current bit rate and an encoding quality based on the result of the encoding step; comparing the encoding quality of the at least one encoded picture with the target picture encoding quality; adjusting the target bit rate within the upper and lower bit rate limits according to the result of said comparison and the predicted current bit rate, for encoding subsequent pictures; and repeating, for each picture in a sequence of pictures, said encoding, predicting, comparing and adjusting steps.
2. A method as claimed in claim 1 , wherein the step of encoding at least one picture based on the target bit rate includes determining a target bit allocation for the at least one picture using the target bit rate.
3. A method as claimed in claim 2, wherein the pictures to be encoded are arranged in groups of pictures comprising an I-picture and at least one P-picmre and/or B-picture, and wherein the target bit allocation is adjusted for each picture or plurality of pictures in each group of pictures.
4. A method as claimed in claim 1, 2 or 3, wherein the picture encoding quality is based on encoding quantization step-size. 34
5. A method as claimed in claim 1, 2 or 3, wherein the picmre encoding quality is based on a mean square error.
6. A method as claimed in claim 1, 2 or 3, wherein the picmre encoding quality is based 5 on a signal-to-noise ratio.
7. A method as claimed in claim 5 or 6, wherein the comparing step includes measuring a difference in picmre encoding quality between corresponding input and locally decoded pictures.
10
8. A method as claimed in claim 7, including measuring an average picture activity for the moving picmres, and modifying the measured difference in picmre encoding quality on the basis of the average picture activity.
15 9. A method as claimed in claim 8, including measuring a signal-to-noise ratio for at least one previously encoded picture, and determining said target bit rate based on said predicted current bit rate and on a difference between the measured signal-to-noise ratio and a target signal-to-noise ratio as said target picture encoding quality.
20 10. A method as claimed in claim 9, wherein the predicted current bit rate and the target bit rate are determined according to:
SNRdiff = SNR^, - (SNRpieture + K5 ACTaverase)
(SfnpxSr+ngxSg)
BR 'p.redicted
25 pr""" a (Xnp+n
BR,arχel - BRprt!diatd + K6 x BRmrrml x SNRdi/r
where: 30 SNRpιcllιr<, is the measured signal-to-noise ratio, 35
S/VRM,irt is the target signal-to-noise ratio,
ACTaverate is the measured average pixel activity,
Ks and Kά are constants,
SNRdiff \s the measured difference in picture encoding quality, BRpredicud is the predicted current bit rate,
Sp Sp, S8 are number of bits generated by said previously encoded I-, P-, B-picmres, respectively nP is a total number of P-pictures in the group of pictures, nB is a total number of B-pictures in the group of pictures, BRcttrre* is a previously determined R^*, and
BRarg t is aid target bit rate.
11. A method as claimed in claim 4, wherein said target picmre encoding quality comprises a target encoding quantization step-size.
12. A method as claimed in claim 11 , wherein different target quantization step-sizes are selected for I-, P-, and B-pictures.
13. A method as claimed in claim 11 or 12, including measuring an average quantization step-size for at least one previously encoded picture, and determining said target bit rate based on said predicted current bit rate and a difference between the target encoding quantization step-size and the measured average quantization step-size.
14. A method as claimed in claim 13, wherein maximum and minimum bit rates are selected corresponding to the upper and lower bit rate limits, and wherein the predicted current bit rate and the target bit rate are determined according. to:
BR ( v v-Sβ) predicted ( j +ff } 36
\— average — target'
BR t,a„r„g.et,~ βR p.r„edJi;c.t,e»d-l+ Λ_ 2 X r*)
~ average
if (BRurge(> BR„ , then BRarget = 5/? •,max if <BRurιtt< BR„ , then £/ ,« = BR ,min
where B prediaed ιs said predicted current bit rate, Rurget is said target bit rate,
BRnex is said maximum bit rate,
-5R--,--, is said minimum bit rate
S„ Sp, Ss are number of bits generated by said previously encoded I-, P-, B-pictures, respectively nP is a total number of P-pictures in the group of picmres, nB is a total number of B-picmres in the group of picmres, and
K2 is a constant or a factor of BRpredicteti, BR^, or previous BR^,.
15. A method as claimed in claim 10 or 14, including determining a number of bits R remaining for encoding the group of picmres comprising the steps of: before encoding a first picmre in a said group of picmres, determining R according to
R"7 £J^*BR^ the" M ****•**-
where: N is the number of picmres in the group of picmres, picture jrate is the number of pictures encoded per unit time, and BRMrgl., is said target bitrate,
and before encoding each subsequent picture in the group of pictures, determining R 37
according to
(Np+N,) R+ ≠ p BJ χ(BR -S picture_rate target - BR Ol .d, ,arge ,t)' ,' then set BRa olldaj taarget=BR target
where:
NP and Ng are the number of P- and B-picmres remaining in the current group of picmres, BRaτget is a subsequently determined target bit rate, and
Sis one of S{, SP or SB according to the picmre type of the previously encoded picmre.
16. A method as claimed in claim 15, further comprising the steps of: obtaining average quantization step sizes Q„ QF, Q8 from previously encoded I-, P-,B- picmres, respectively; and determining the target bit allocation T TP, TB for a subsequent respective I-, P-, or
B-picmre according to: τ R
NP XP NS XS 1 +— £-+_° £
Xt Kp XI KB
R NB Kp XB
KB Xp
R
T,
B N 8+ M» K° Xp κp XB 38
where
Xj — S[ Q[, Xp — Sp QF, XB = Sg, QB,
Kp and KB are constants.
5 17. A method as claimed in 16, wherein the target bit allocations T„ TF, TB have a lower limit Tmin determined according to:
DD T - target mm K^xpicture ate
where Ks is a constant.
18. A method as claimed in any one of claims 1 to 17, wherein the target bit allocation 10 is used to encode an input picmre, comprising the steps of: deriving macroblocks from the input picture; calculating a quantization step-size for each said macroblock according to the target bit allocation and its utilization; performing motion compensation if necessary to each macroblock; 15 frequency transforming each said macroblock or motion compensated macroblock; quantizing each transformed macroblock using the calculated quantization step-size; and coding the quantized macroblock.
20 19. A method as claimed in claim 18, wherein the target quantization step-size is used as a lower limit for the determined quantization step-size.
20. A method as claimed in claim 18 or 19, wherein the determined quantization step-size for each macroblock is modulated by a corresponding macroblock activity masking factor,
25 and the quantization is performed using the modulated quantization step-size.
21. A control apparatus for a single pass moving pictures encoder, comprising: 39
an input for receiving a target picmre encoding quality; an input for receiving upper and lower bit rate limits; and a controller for controlling the encoder so as to encode at least one picmre according to a target bit rate within the upper and lower bit rate limits, predict a current bit rate and an 5 encoding quality based on the result of the encoding, compare the encoding quality of the at least one encoded picmre with the target picture encoding quality, and adjust the target bit rate according to the result of said comparison and the predicted current bit rate for encoding subsequent picmres.
10 22. A control apparatus as claimed in claim 21 , wherein encoding the at least one picmre based on the target bit rate includes determining a target bit allocation for the at least one picmre using the target bit rate.
23. A control apparatus as claimed in claim 22, wherein the picmres to be encoded are 15 arranged in groups of picmres comprising an I-picture and at least one P-picmre and/or B- picture, and wherein the controller adjusts the target bit allocation for each picture or plurality of pictures in each group of picmres.
24. A control apparatus as claimed in claim 21, 22 or 23, wherein the picture encoding 20 quality is based on encoding quantization step-size.
25. A control apparatus as claimed in claim 21, 22 or 23, wherein the picmre encoding quality is based on a mean square error.
25 26. A control apparatus as claimed in claim 21 , 22 or 23, wherein the picmre encoding quality is based on a signal-to-noise ratio.
27. A control apparatus as claimed in claim 25 or 26, wherein the controller includes a local picmre decoder and a comparator for measuring a difference in picture encoding quality 30 between corresponding input and locally decoded pictures. 40
28. A control apparatus as claimed in claim 27, wherein the controller includes a picmre activity processor for measuring an average picmre activity for the moving picmres, and wherein the controller modifies the measured difference in picmre encoding quality on the basis of the average picmre activity.
29. A control apparatus as claimed in claim 28, wherein the controller includes a signal-to- noise processor for measuring a signal-to-noise ratio for at least one previously encoded picmre, and a bit rate predictor for predicting the current bit rate, and wherein the controller adjusts said target bit rate based on the predicted current bit rate and on a difference between the measured signal-to-noise ratio and a target signal-to-noise ratio as said target picmre encoding quality.
30. A control apparatus as claimed in claim 21, wherein the moving picmre encoder includes a frequency transform coefficient quantizer for quantization of the encoded picmre data, and wherein the controller comprises a bit rate controller coupled to control the quantization step size of the quantizer, a quantization step size comparator for comparing, as a measure of encoding quality, an actual quantization step size with a target quantization step size based on the target picmre encoding quality, a bit allocation processor coupled to control the bit rate controller according to a number of bits remaining for encoding a group of picmres, and a target bit rate estimator coupled to receive the upper and lower bit rate limits and coupled to the bit allocation processor and the bit rate controller for controlling the quantization so that the required bit rate for the quantized picmre data is within the upper and lower bit rate limits.
31. A single pass variable bit rate video picture encoder comprising: a picture input for receiving data for a plurality of moving pictures; a target quality input for receiving a target quality measure for encoded pictures; an encoder output for supplying encoded picmre data; a bit rate limit input for receiving upper and lower bit rate limits for the encoded 41
picture data; a bit rate predictor for predicting a current bit rate; a frequency transform processor for frequency transform encoding picmre data from the picture input; a coefficient quantizer for quantizing the encoded picmre data according to a quantization step size; an encoding quality estimator for measuring an encoding quality of quantized encoded pictures; and a bit rate controller for dynamically controlling the quantization step size of the coefficient quantizer based on the predicted current bit rate and a comparison of the target quality and the measured quality so that the encoder ouφut remains within the upper and lower bit rate limits.
32. A video picmre encoder as claimed in claim 31, wherein the pictures to be encoded are arranged in groups of picmres comprising an I-picture and at least one P-picmre and/or
B-picmre, the bit rate controller including a frame bit counter for a number of remaining bits available for encoding a group of picmres, and a bit allocation processor for controlling the bit rate controller according to the remaining available bits so as to adjust a target bit allocation for each picture or plurality of picmres in each group of picmres.
33. A video picmre encoder as claimed in claim 31 or 32, including a quality comparator for comparing the target quality with the measured encoding quality, and wherein the bit rate controller controls the quantization step size based on a difference between the target and measured qualities.
34. A video picmre encoder as claimed in claim 32, including a quality comparator for comparing the target quality with the measured encoding quality wherein the bit rate controller adjusts the target bit allocation to achieve a target bit rate for the picture or plurality of picmres in each group of pictures which is determined on the basis of an output from said quality comparator. 42
35. A video picmre encoder as claimed in claim 31 , 32, 33 or 34, wherein the measured encoding quality comprises the quantization step size.
36. A video picmre encoder as claimed in claim 33, including a local decoder for decoding the quantized encoded picmre data, and a quality measurement processor for determining a quality difference between corresponding input and locally decoded picmres.
37. A video picmre encoder as claimed in claim 36, wherein the quality measurement processor determines a difference in signal-to-noise ratio.
38. A video picmre encoder as claimed in claim 36, wherein the quality measurement processor determines a mean square error.
39. A video picmre encoder as claimed in claim 36, 37 or 38, including a picture activity processor for measuring an average picmre activity for the moving picmres, and wherein the quality measurement processor modifies the measured difference in picture encoding quality on the basis of the average picture activity.
40. A video picmre encoder as claimed in claim 37, including a signal-to-noise processor for measuring a signal-to-noise ratio for at least one previously encoded picmre, and a bit rate predictor for estimating a current bit rate, and wherein the bit rate controller adjusts said target bit allocation based on the estimated current bit rate and on a difference between the measured signal-to-noise ratio and a target signal-to-noise ratio as said target picmre encoding quality.
41. A video picture encoder as claimed in claim 31 , including a quantization step size comparator for comparing, as a measure of encoding quality, an actual quantization step size with a target quantization step size based on the target picture encoding quality, a bit allocation processor coupled to control the bit rate controller according to a number of bits remaining for encoding a group of pictures, and a target bit rate estimator coupled to receive 43
the upper and lower bit rate limits and coupled to the bit allocation processor and the bit rate controller for controlling the quantization so that the required bit rate for the quantized picmre data is within the upper and lower bit rate limits.
PCT/SG1998/000007 1998-01-26 1998-01-26 One-pass variable bit rate moving pictures encoding WO1999038333A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP98908421A EP1051853B1 (en) 1998-01-26 1998-01-26 One-pass variable bit rate moving pictures encoding
PCT/SG1998/000007 WO1999038333A1 (en) 1998-01-26 1998-01-26 One-pass variable bit rate moving pictures encoding
DE69815720T DE69815720T2 (en) 1998-01-26 1998-01-26 ENCODING MOVING IMAGES WITH VARIABLE BITRATE IN ONE ROUND
US09/600,935 US6654417B1 (en) 1998-01-26 1998-01-26 One-pass variable bit rate moving pictures encoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/SG1998/000007 WO1999038333A1 (en) 1998-01-26 1998-01-26 One-pass variable bit rate moving pictures encoding

Publications (1)

Publication Number Publication Date
WO1999038333A1 true WO1999038333A1 (en) 1999-07-29

Family

ID=20429833

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/SG1998/000007 WO1999038333A1 (en) 1998-01-26 1998-01-26 One-pass variable bit rate moving pictures encoding

Country Status (4)

Country Link
US (1) US6654417B1 (en)
EP (1) EP1051853B1 (en)
DE (1) DE69815720T2 (en)
WO (1) WO1999038333A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001061999A1 (en) * 2000-02-15 2001-08-23 4Nsys Co., Ltd. Multi-channel image encoding method and system
EP1588557A2 (en) * 2002-12-10 2005-10-26 Tut Systems, Inc. Rate control with picture-based lookahead window
EP1721467A2 (en) * 2004-02-06 2006-11-15 Apple Computer, Inc. Rate and quality controller for h.264/avc video coder and scene analyzer therefor
EP2265025A1 (en) * 2008-06-05 2010-12-22 Nippon Telegraph and Telephone Corporation Video encoding amount control method, video encoding amount control device, video encoding amount control program, and computer readable recording medium on which said program is recorded
WO2018212816A1 (en) * 2017-05-19 2018-11-22 Google Llc Complexity adaptive single- vs. two-pass transcoding

Families Citing this family (79)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6957350B1 (en) 1996-01-30 2005-10-18 Dolby Laboratories Licensing Corporation Encrypted and watermarked temporal and resolution layering in advanced television
US7313318B2 (en) * 1998-06-17 2007-12-25 Victor Company Of Japan, Limited Video signal encoding and recording apparatus with variable transmission rate
KR100341063B1 (en) * 2000-06-28 2002-06-20 송문섭 Rate control apparatus and method for real-time video communication
JP4256574B2 (en) * 2000-08-04 2009-04-22 富士通株式会社 Image signal encoding method and image signal encoding apparatus
JP4534106B2 (en) * 2000-12-26 2010-09-01 日本電気株式会社 Video encoding system and method
US20020118746A1 (en) * 2001-01-03 2002-08-29 Kim Hyun Mun Method of performing video encoding rate control using motion estimation
US7062445B2 (en) * 2001-01-26 2006-06-13 Microsoft Corporation Quantization loop with heuristic approach
US8374237B2 (en) * 2001-03-02 2013-02-12 Dolby Laboratories Licensing Corporation High precision encoding and decoding of video images
US7133451B2 (en) * 2001-03-05 2006-11-07 Intervideo, Inc. Systems and methods for refreshing macroblocks
US6895050B2 (en) * 2001-04-19 2005-05-17 Jungwoo Lee Apparatus and method for allocating bits temporaly between frames in a coding system
US8111754B1 (en) 2001-07-11 2012-02-07 Dolby Laboratories Licensing Corporation Interpolation of video compression frames
US7266150B2 (en) 2001-07-11 2007-09-04 Dolby Laboratories, Inc. Interpolation of video compression frames
US20030112863A1 (en) 2001-07-12 2003-06-19 Demos Gary A. Method and system for improving compressed image chroma information
US6810083B2 (en) * 2001-11-16 2004-10-26 Koninklijke Philips Electronics N.V. Method and system for estimating objective quality of compressed video data
US7027982B2 (en) * 2001-12-14 2006-04-11 Microsoft Corporation Quality and rate control strategy for digital audio
US7483488B1 (en) * 2002-05-30 2009-01-27 Intervideo, Inc. Systems and methods for improving bit rate control of video encoding by correcting for the effects of scene changes and bit stuffing in a video buffer verifier (VBV) buffer model
DE60206738D1 (en) * 2002-06-11 2005-11-24 St Microelectronics Srl Variable bit rate video coding method and apparatus
US6980695B2 (en) * 2002-06-28 2005-12-27 Microsoft Corporation Rate allocation for mixed content video
US7154952B2 (en) * 2002-07-19 2006-12-26 Microsoft Corporation Timestamp-independent motion vector prediction for predictive (P) and bidirectionally predictive (B) pictures
US7095784B2 (en) * 2003-04-14 2006-08-22 Silicon Intergrated Systems Corp. Method and apparatus for moving picture compression rate control using bit allocation with initial quantization step size estimation at picture level
US7602851B2 (en) 2003-07-18 2009-10-13 Microsoft Corporation Intelligent differential quantization of video coding
US7580584B2 (en) 2003-07-18 2009-08-25 Microsoft Corporation Adaptive multiple quantization
US7343291B2 (en) * 2003-07-18 2008-03-11 Microsoft Corporation Multi-pass variable bitrate media encoding
US7383180B2 (en) 2003-07-18 2008-06-03 Microsoft Corporation Constant bitrate media encoding techniques
US8218624B2 (en) 2003-07-18 2012-07-10 Microsoft Corporation Fractional quantization step sizes for high bit rates
US7738554B2 (en) 2003-07-18 2010-06-15 Microsoft Corporation DC coefficient signaling at small quantization step sizes
US10554985B2 (en) 2003-07-18 2020-02-04 Microsoft Technology Licensing, Llc DC coefficient signaling at small quantization step sizes
US8982945B2 (en) 2003-11-04 2015-03-17 Stmicroelectronics Asia Pacific Pte. Ltd. Apparatus, method, and computer program for encoding video information using a variable bit-rate
JP2005184419A (en) * 2003-12-19 2005-07-07 Hitachi Ltd Video signal encoder and video signal recorder
US7889792B2 (en) 2003-12-24 2011-02-15 Apple Inc. Method and system for video encoding using a variable number of B frames
US7869503B2 (en) * 2004-02-06 2011-01-11 Apple Inc. Rate and quality controller for H.264/AVC video coder and scene analyzer therefor
US7986731B2 (en) * 2004-02-06 2011-07-26 Apple Inc. H.264/AVC coder incorporating rate and quality controller
US7492820B2 (en) 2004-02-06 2009-02-17 Apple Inc. Rate control for video coder employing adaptive linear regression bits modeling
US7746927B1 (en) * 2004-03-26 2010-06-29 Apple Inc. Robust single-pass variable bit rate encoding
JP4031455B2 (en) * 2004-03-29 2008-01-09 株式会社東芝 Image encoding device
US7266246B2 (en) * 2004-04-29 2007-09-04 Hewlett-Packard Development Company, L.P. System and method for estimating compression noise in images
US7801383B2 (en) 2004-05-15 2010-09-21 Microsoft Corporation Embedded scalar quantizers with arbitrary dead-zone ratios
US7474701B2 (en) * 2004-09-23 2009-01-06 International Business Machines Corporation Single pass variable bit rate control strategy and encoder for processing a video frame of a sequence of video frames
US7747095B2 (en) 2004-10-08 2010-06-29 Nvidia Corporation Methods and systems for rate control in image compression
WO2006060037A1 (en) * 2004-12-02 2006-06-08 Thomson Licensing Quantizer parameter determination for video encoder rate control
TWI254879B (en) * 2004-12-17 2006-05-11 Quanta Comp Inc System and method for video encoding
US8363717B2 (en) * 2005-05-17 2013-01-29 Canon Kabushiki Kaisha Image processing apparatus
US8422546B2 (en) 2005-05-25 2013-04-16 Microsoft Corporation Adaptive video encoding using a perceptual model
US8345768B1 (en) * 2005-07-28 2013-01-01 Teradici Corporation Progressive block encoding using region analysis
US8503536B2 (en) 2006-04-07 2013-08-06 Microsoft Corporation Quantization adjustments for DC shift artifacts
US7974340B2 (en) 2006-04-07 2011-07-05 Microsoft Corporation Adaptive B-picture quantization control
US8059721B2 (en) 2006-04-07 2011-11-15 Microsoft Corporation Estimating sample-domain distortion in the transform domain with rounding compensation
US7995649B2 (en) 2006-04-07 2011-08-09 Microsoft Corporation Quantization adjustment based on texture level
US8130828B2 (en) 2006-04-07 2012-03-06 Microsoft Corporation Adjusting quantization to preserve non-zero AC coefficients
US8711925B2 (en) 2006-05-05 2014-04-29 Microsoft Corporation Flexible quantization
FR2903556B1 (en) * 2006-07-04 2008-10-03 Canon Kk METHODS AND DEVICES FOR ENCODING AND DECODING IMAGES, A TELECOMMUNICATIONS SYSTEM COMPRISING SUCH DEVICES AND COMPUTER PROGRAMS USING SUCH METHODS
US8238424B2 (en) 2007-02-09 2012-08-07 Microsoft Corporation Complexity-based adaptive preprocessing for multiple-pass video compression
US8498335B2 (en) 2007-03-26 2013-07-30 Microsoft Corporation Adaptive deadzone size adjustment in quantization
US8243797B2 (en) 2007-03-30 2012-08-14 Microsoft Corporation Regions of interest for quality adjustments
US8442337B2 (en) 2007-04-18 2013-05-14 Microsoft Corporation Encoding adjustments for animation content
US8331438B2 (en) 2007-06-05 2012-12-11 Microsoft Corporation Adaptive selection of picture-level quantization parameters for predicted video pictures
US8254455B2 (en) 2007-06-30 2012-08-28 Microsoft Corporation Computing collocated macroblock information for direct mode macroblocks
DK2165481T3 (en) * 2007-07-09 2012-04-02 Ericsson Telefon Ab L M Adaptive rate management in a communication system
US8743954B1 (en) * 2008-02-01 2014-06-03 Zenverge, Inc. Architecture for adjusting bit rate based on measured quality
US8189933B2 (en) 2008-03-31 2012-05-29 Microsoft Corporation Classifying and controlling encoding quality for textured, dark smooth and smooth video content
US8443409B2 (en) * 2008-04-30 2013-05-14 Zeevee, Inc. System and method for channel selection for local broadcasting
US8325800B2 (en) 2008-05-07 2012-12-04 Microsoft Corporation Encoding streaming media as a high bit rate layer, a low bit rate layer, and one or more intermediate bit rate layers
US8379851B2 (en) 2008-05-12 2013-02-19 Microsoft Corporation Optimized client side rate control and indexed file layout for streaming media
US8837918B2 (en) * 2008-05-16 2014-09-16 Sharp Kabushiki Kaisha Video recording apparatus
US7925774B2 (en) 2008-05-30 2011-04-12 Microsoft Corporation Media streaming using an index file
US8897359B2 (en) 2008-06-03 2014-11-25 Microsoft Corporation Adaptive quantization for enhancement layer video coding
KR101033442B1 (en) * 2008-06-12 2011-05-09 주식회사 몬도시스템즈 Method and apparatus for controlling a bitrate in video processing system
WO2010017166A2 (en) 2008-08-04 2010-02-11 Dolby Laboratories Licensing Corporation Overlapped block disparity estimation and compensation architecture
US8265140B2 (en) 2008-09-30 2012-09-11 Microsoft Corporation Fine-grained client-side control of scalable media delivery
US8189666B2 (en) 2009-02-02 2012-05-29 Microsoft Corporation Local picture identifier and computation of co-located information
KR20100095833A (en) 2009-02-23 2010-09-01 주식회사 몬도시스템즈 Apparatus and method for compressing pictures with roi-dependent compression parameters
JP5625512B2 (en) * 2010-06-09 2014-11-19 ソニー株式会社 Encoding device, encoding method, program, and recording medium
US20120195356A1 (en) * 2011-01-31 2012-08-02 Apple Inc. Resource usage control for real time video encoding
US8902973B2 (en) * 2011-04-05 2014-12-02 Dialogic Corporation Perceptual processing techniques for video transcoding
US20120324122A1 (en) * 2011-06-20 2012-12-20 David Miles Method and apparatus for server-side adaptive streaming
WO2013095627A1 (en) * 2011-12-23 2013-06-27 Intel Corporation Content adaptive high precision macroblock rate control
EP3376766B1 (en) * 2017-03-14 2019-01-30 Axis AB Method and encoder system for determining gop length for encoding video
US10887601B1 (en) * 2019-10-13 2021-01-05 Novatek Microelectronics Corp. Method and image processing device for video bit-rate control
CA3178565A1 (en) * 2020-05-14 2021-11-18 Abdul REHMAN Perceptual quality assessment metric based content and viewer aware encoding

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0742674A2 (en) * 1995-05-08 1996-11-13 Kabushiki Kaisha Toshiba Video encoding method and system using a rate-quantizer model
EP0759667A2 (en) * 1995-08-22 1997-02-26 Digi-Media Vision Limited Statistical multiplexing
US5686963A (en) * 1995-12-26 1997-11-11 C-Cube Microsystems Method for performing rate control in a video encoder which provides a bit budget for each frame while employing virtual buffers and virtual buffer verifiers

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5926222A (en) * 1995-09-28 1999-07-20 Intel Corporation Bitrate estimator for selecting quantization levels for image encoding
US5926569A (en) * 1995-09-28 1999-07-20 Intel Corporation Bitrate damper for selecting quantization levels for image encoding
JPH10173674A (en) * 1996-12-13 1998-06-26 Hitachi Ltd Digital data transmission system
US6118817A (en) * 1997-03-14 2000-09-12 Microsoft Corporation Digital video signal encoder and encoding method having adjustable quantization
US6192075B1 (en) * 1997-08-21 2001-02-20 Stream Machine Company Single-pass variable bit-rate control for digital video coding
US6185253B1 (en) * 1997-10-31 2001-02-06 Lucent Technology, Inc. Perceptual compression and robust bit-rate control system
US6181742B1 (en) * 1998-01-26 2001-01-30 International Business Machines Corporation Single pass target allocation for video encoding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0742674A2 (en) * 1995-05-08 1996-11-13 Kabushiki Kaisha Toshiba Video encoding method and system using a rate-quantizer model
EP0759667A2 (en) * 1995-08-22 1997-02-26 Digi-Media Vision Limited Statistical multiplexing
US5686963A (en) * 1995-12-26 1997-11-11 C-Cube Microsystems Method for performing rate control in a video encoder which provides a bit budget for each frame while employing virtual buffers and virtual buffer verifiers

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CICALINI G ET AL: "DYNAMIC PSYCHOVISUAL BIT ALLOCATION FOR IMPROVED QUALITY BIT RATE IN MPEG-2 TRANSMISSION OVER ATM LINKS", ELECTRONICS LETTERS, vol. 32, no. 4, 15 February 1996 (1996-02-15), pages 370/371, XP000558160 *
KENJI SUGIYAMA ET AL: "VIDEO DISC SYSTEM USING VARIABLE BIT RATE", 7 June 1995, INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS - DIGEST OF TECHNI PAPERS, ROSEMONT, JUNE 7 - 9 1995, NR. CONF. 14, PAGE(S) 86/87, INSTITUTE OF ELECTRICAL AND ELECTRONICS ENGINEERS, XP000547744 *
TIHAO CHIANG ET AL: "A NEW RATE CONTROL SCHEME USING QUADRATIC RATE DISTORTION MODEL", IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, vol. 7, no. 1, February 1997 (1997-02-01), pages 246 - 250, XP000678897 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001061999A1 (en) * 2000-02-15 2001-08-23 4Nsys Co., Ltd. Multi-channel image encoding method and system
US7050496B2 (en) 2000-02-15 2006-05-23 4Nsys Co., Ltd. Multi-channel image encoding method and system
EP1588557A2 (en) * 2002-12-10 2005-10-26 Tut Systems, Inc. Rate control with picture-based lookahead window
EP1588557A4 (en) * 2002-12-10 2009-07-15 Tut Systems Inc Rate control with picture-based lookahead window
EP1721467A2 (en) * 2004-02-06 2006-11-15 Apple Computer, Inc. Rate and quality controller for h.264/avc video coder and scene analyzer therefor
EP2265025A1 (en) * 2008-06-05 2010-12-22 Nippon Telegraph and Telephone Corporation Video encoding amount control method, video encoding amount control device, video encoding amount control program, and computer readable recording medium on which said program is recorded
EP2265025A4 (en) * 2008-06-05 2013-01-30 Nippon Telegraph & Telephone Video encoding amount control method, video encoding amount control device, video encoding amount control program, and computer readable recording medium on which said program is recorded
US8548042B2 (en) 2008-06-05 2013-10-01 Nippon Telegraph And Telephone Corporation Video bitrate control method, video bitrate control apparatus, video bitrate control program, and computer-readable recording medium having the program recorded thereon
WO2018212816A1 (en) * 2017-05-19 2018-11-22 Google Llc Complexity adaptive single- vs. two-pass transcoding
US10771789B2 (en) 2017-05-19 2020-09-08 Google Llc Complexity adaptive rate control

Also Published As

Publication number Publication date
EP1051853A1 (en) 2000-11-15
DE69815720T2 (en) 2004-05-13
EP1051853B1 (en) 2003-06-18
US6654417B1 (en) 2003-11-25
DE69815720D1 (en) 2003-07-24

Similar Documents

Publication Publication Date Title
EP1051853B1 (en) One-pass variable bit rate moving pictures encoding
EP1074148B1 (en) Moving pictures encoding with constant overall bit rate
EP1372113B1 (en) Variable bit rate video encoding method and device
EP1086593B1 (en) Sequence adaptive bit allocation for pictures encoding
US7881373B2 (en) Video data compression apparatus and method of same
EP2160903B1 (en) A buffer-based rate control exploiting frame complexity, buffer level and position of intra frames in video coding
US8031774B2 (en) Video encoding methods and systems with frame-layer rate control
US20070009025A1 (en) Method and apparatus for operational frame-layer rate control in video encoder
US6678322B1 (en) Video data coding device, video data coding method, video data transmitting device, and video data recording medium
US6823008B2 (en) Video bitrate control method and device for digital video recording
US6600783B1 (en) Apparatus and method of encoding moving picture signal
JPH09172634A (en) Video data compression method
JPH09154145A (en) Video data compression method
EP1077000B1 (en) Conditional masking for video encoder
Park et al. A New MPEG‐2 Rate Control Scheme Using Scene Change Detection
Jagmohan et al. MPEG-4 one-pass VBR rate control for digital storage
Bagni et al. A constant-quality, single-pass VBR control for DVD recorders
Lee et al. Scene adaptive bit-rate control method on MPEG video coding
Lee et al. A rate control algorithm for DCT-based video coding using simple rate estimation and linear source model
Yin et al. A practical consistent-quality two-pass VBR video coding algorithm for digital storage application
Wang et al. MPEG motion picture coding with long-term constraint on distortion variation
Jiang et al. Bit allocation scheme for low-delay H. 264/AVC rate control
Hong et al. Bit allocation method for variable frame rated low bit coding scheme
Wang et al. MPEG motion picture coding with long-term constraint on distortion variation
Cheng et al. The impact of rate control algorithms on system-level VLSI design

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): JP SG US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT SE

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
WWE Wipo information: entry into national phase

Ref document number: 1998908421

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 09600935

Country of ref document: US

WWP Wipo information: published in national office

Ref document number: 1998908421

Country of ref document: EP

WWG Wipo information: grant in national office

Ref document number: 1998908421

Country of ref document: EP