CA2524809C

Methods and apparatus for improving video quality in statistical multiplexing

Abstract

The present invention provides methods and apparatus for improving video quality in statistical multiplexing (50). For each encoding channel in a statistical multiplexer (50), a respective bit rate need parameter is calculated for encoding (40) of a current frame. in that encoding channel. A video buffering verifier level (VBV, 20) available to each encoding channel is also calculated. detennining whether the VBV Fullness (20) available to each encoding channel is sufficient for encoding the current frame of that channel based on an initial complexity estimate for that current frame. Scale the parameter by an adaptive panic multiplier if the VBV Fullness to be insufficient and encod the current frame using the scaled parameter.

CA2524809C, drawing sheet 1
Sheet 1 of 6

Term

No projected expiry on record.

  1. Priority
  2. Filed
  3. Granted
  4. Today

20 claims: 10 independent, 10 dependent

  1. 1
    CA 02524809 2011-04-07 THE EMBODIMENTS OF THE INVENTION IN WHICH AN EXCLUSIVE PROPERTY OR PRIVILEGE IS CLAIMED ARE DEFINED AS FOLLOWS:1. A method for improving video quality in statistical multiplexing, comprising: for each encoding channel in a statistical multiplexer, calculating a respective bit rate need parameter for encoding of a current frame in that encoding channel, wherein each need parameter is generated using look-ahead complexity from first pass encoding of a plurality of frames in a look-ahead pipeline for that encoding channel, said plurality of frames including said current frame;for each encoding channel in the statistical multiplexer, calculating a video buffering verifier level (VBVFullness) available to each encoding channel;determining whether the VBV Fullness available to each encoding channel is sufficient for encoding said current frame of that encoding channel based on an initial complexity estimate for that current frame;in the event that the VBV Fullness is determined to be sufficient, encoding said current frame using said need parameter;in the event that the VBV_Fullness is determined to be insufficient, scaling said need parameter by an adaptive panic multiplier and encoding said current frame using said scaled need parameter;and wherein if the VBVFullness is determined to be insufficient, further comprising: determining whether a current Group of Pictures (GOP) length is greater than a normal GOP length;and if said current GOP length is less than said normal GOP length, disabling intra-coding of said I-frame in the event that said VBV Fullness is determined to be insufficient, and encoding said current frame using said need parameter;and if said current GOP length is greater than said normal GOP length, scaling the bit rate need parameter by the panic multiplier in the event that said CA 02524809 2011-04-07 VBV_Fullness is determined to be insufficient, and encoding said current frame using said scaled need parameter.
  2. 4
    The method of any one of claims 1 to 3, wherein the panic multiplier is a variable dependent on an intra-coding status of the current frame and at least one previous frame.
  3. 5
    The method of any one of claims 1 to 4, wherein said panic multiplier is provided by:Panic_Multiplier= 1+f( W) wherein: f(W) is a positive monotonic non-decreasing function of W;and W designates a number of previous frames for which intra-coding has been disabled out of a predetermined number of previous frames preceding the current frame. CA 02524809 2011-04-07
  4. 9
    The method of any one of claims 5 to 8, wherein:W=0,1,2, 3,... z;and Z is the predetermined number of previous frames.
  5. 10
    An apparatus for improving video quality in statistical multiplexing, comprising for each encoding channel:a first pass encoder for calculating an initial complexity estimate for encoding a current frame;a video buffer verifier for calculating a video buffering verifier level (VBVFullness) available to each encoding channel;and a second pass encoder capable of;calculating an initial bit rate need parameter for a current frame to be encoded;determining whether the VBV Fullness available to each encoding channel is sufficient for encoding said current frame of that encoding channel based on the initial complexity estimate for that current frame;in the event that the VBVJFullness is determined to be sufficient, encoding said current frame using said need parameter;and CA 02524809 2011-04-07 in the event that the VBVFullness is determined to be insufficient, scaling said need parameter by an adaptive panic multiplier and encoding said current frame using said scaled need parameter;a look-ahead pipeline for buffering a plurality of frames;wherein said second pass encoder generates the need parameter using lookahead complexity from first pass encoding of a plurality of frames in said look-ahead pipeline for that encoding channel, said plurality of frames including said current frame;and wherein said second pass encoder: determines the VBV_Fullness to be insufficient;determines whether a current Group of Pictures (GOP) length is greater than a normal GOP length;and if said current GOP length is less than said normal GOP length, disables intra-coding of said current frame, and encodes said current frame using said need parameter;and if said current GOP length is greater than said normal GOP length, scales the bit rate need parameter by the panic multiplier, and encodes said current frame using said scaled need parameter.
  6. 13
    The apparatus of any one of claims 10 to 12, wherein the panic multiplier is a variable dependent on an intra-coding status of the current frame and at least one previous frame.
  7. 14
    The apparatus of any one of claims 10 to 13, wherein said panic multiplier is provided by:Panic_Multiplier= 1 +f( W) wherein: f(W) is a positive monotonic non-decreasing function of W;and W designates a number of previous frames for which intra-coding has been disabled out of a predetermined number of previous frames preceding the current frame.
  8. 18
    The apparatus of any one of claims 14 to 17, wherein:W=0,1, 2, 3,... z;and CA 02524809 2011-04-07 z is the predetermined number of previous frames.
  9. 19
    The method of any one of claims 1 to 9, wherein said current frame is an Iffarne.
  10. 20
    The apparatus of any one of claims 10 to 18, wherein said current frame is an I-frame.