# US 2010/0166060 A1 · Video transcoder rate control

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0166060 A1
- Document ID: US20100166060A1
- Status: Published application
- Kind: A1
- Application number: 12/347,702
- Filed: 2008-12-31
- Published: 2010-07-01
- Earliest claimed: 2008-12-31
- Assignees: Texas Instruments Incorporated
- Inventors: Tomohiro EZURE; Akira OSAMOTO
- Web page: https://patentgrep.com/patent/US20100166060A1

## CPC

- H04N 19/198: {including smoothing of a sequence of encoding parameters, e.g. by averaging, by choice of the maximum, minimum or median value}
- H04N 19/124: Quantisation
- H04N 19/149: by estimating the code amount by means of a model, e.g. mathematical model or statistical model
- H04N 19/15: by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer
- H04N 19/152: by measuring the fullness of the transmission buffer
- H04N 19/172: the region being a picture, frame or field
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/40: using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A system and method for transcoding a video bitstream is disclosed herein. A video transcoder in accordance with the present disclosure includes a video decoder, a video encoder, and a rate controller. The video decoder decodes an encoded source video bitstream to produce an image. The video encoder encodes the image to produce a transcoded video bitstream. The rate controller controls the bitrate of the transcoded video bitstream. The rate controller includes a macroblock level controller that provides a transcoder quantization parameter to the encoder. The macroblock level controller derives the transcoder quantization parameter applied to a transcoder macroblock by the encoder, at least in part, from a source quantization parameter of a corresponding macroblock in the source video bitstream.

## Claims

### Claim 1

A video transcoder, comprising:
a video decoder that decodes an encoded source video bitstream to produce an image;
a video encoder that encodes the image to produce a transcoded video bitstream, and
a rate controller that controls the bit rate of the transcoded video bitstream, the rate controller comprising a macroblock level controller that provides a transcoder quantization parameter to the encoder;
wherein the macroblock level controller derives the transcoder quantization parameter applied to a transcoder macroblock by the encoder, at least in part, from a source quantization parameter of a corresponding macroblock in the source video bitstream.

### Claim 2 (depends on 1)

The video transcoder of claim 1, wherein the macroblock level controller computes the transcoder quantization parameter based, at least in part, on source quantization parameters of a plurality of source video bitstream macroblocks corresponding to the transcoder macroblock.

### Claim 3 (depends on 1)

The video transcoder of claim 1, wherein the macroblock level controller computes the transcoder quantization parameter based, at least in part, on the number of pixels of a source video bitstream macroblock contributing to the transcoder macroblock.

### Claim 4 (depends on 1)

The video transcoder of claim 1, wherein the rate controller further comprises a picture level controller that computes, for each picture, a scaling value that, in the macroblock level controller, is multiplied by the source quantization parameter to produce the transcoder quantization parameter.

### Claim 5 (depends on 4)

The video transcoder of claim 4, wherein the picture level controller bases the scaling value, at least in part, on a ratio of an estimated source bit rate to a transcoder output bit rate.

### Claim 6 (depends on 4)

The video transcoder of claim 4, wherein the picture level controller bases the scaling value, at least in part, on a ratio of the number of pixels in a transcoded video frame to the number of pixels in a frame of the source video bitstream.

### Claim 7 (depends on 4)

The video transcoder of claim 4, wherein the picture level controller estimates the structure of a group of pictures comprising a picture to be transcoded; wherein the rate controller determines the location of the current picture in the current group of pictures in bitstream order, estimates the intra/predictive frame interval, and estimates the intra coded frame interval.

### Claim 8 (depends on 4)

The video transcoder of claim 4, wherein the picture level controller estimates a difference between an estimate of bits budgeted for allocation to a transcoded group of pictures and an estimate of bits consumed by group of pictures.

### Claim 9 (depends on 4)

The video transcoder of claim 4, wherein the picture level controller estimates a bit rate of the source video bitstream.

### Claim 10 (depends on 4)

The video transcoder of claim 4, wherein the picture level controller bases the scaling value, at least in part, on an estimate of the bit rate of the source video bitstream, a desired average transcoded bit rate, a number of pixels in a picture in the source video bitstream, a number of pixels in a transcoded picture, a reference buffer size, and an estimated bit balance at the end of a group of pictures.

### Claim 11 (depends on 4)

The video transcoder of claim 4, wherein after each picture is transcoded, the picture level controller updates bit consumption for each picture type and updates a difference between actual and desired bit consumption.

### Claim 12 (depends on 4)

The video transcoder of claim 4, wherein the picture level controller adjusts a desired number of bits for encoding a picture based, at least in part on a complexity of the picture.

### Claim 13

A transcoding method, comprising:
decoding a source video bitstream;
deriving a transcoder quantization parameter applied to a transcoded macroblock, at least in part, from a source quantization parameter of a source video bitstream macroblock; and
encoding the transcoded macroblock using the transcoder quantization parameter.

### Claim 14 (depends on 13)

The transcoding method of claim 13, further comprising computing the transcoder quantization parameter based, at least in part, on source quantization parameters of a plurality of source video bitstream macroblocks corresponding to the transcoded macroblock.

### Claim 15 (depends on 13)

The transcoding method of claim 13, further comprising computing the transcoder quantization parameter based, at least in part, on the number of pixels of a source video bitstream macroblock contributing to the transcoded macroblock.

### Claim 16 (depends on 13)

The transcoding method of claim 13, further comprising updating bit consumption of each of intra, predictive, and bi-predictive coded picture types, and updating a difference between actual and desired bit consumption after each picture is transcoded.

### Claim 17 (depends on 13)

The transcoding method of claim 13, further comprising multiplying the source quantization parameter by a scaling factor determined for each picture, the multiplication producing the transcoder quantization parameter.

### Claim 18 (depends on 17)

The transcoding method of claim 17, further comprising determining the scaling factor based, at least in part, on a ratio of the estimated source bit rate to the transcoder output bit rate.

### Claim 19 (depends on 17)

The transcoding method of claim 17, further comprising determining the scaling factor based, at least in a part, on a ratio of the number of pixels in a transcoded video frame to the number of pixels in a frame of the source video bitstream.

### Claim 20 (depends on 17)

The transcoding method of claim 17, further comprising estimating the structure of a group of pictures comprising a picture to be transcoded; said estimating comprising determining the location of the current picture in a current group of pictures in bitstream order, estimating the intra/predictive coded picture interval, and estimating the intra coded picture interval.

### Claim 21 (depends on 17)

The transcoding method of claim 17, further comprising estimating a difference between an estimate of bits budgeted for allocation to a transcoded group of pictures and an estimate of bit consumed by group of pictures.

### Claim 22 (depends on 17)

The transcoding method of claim 17, further comprising estimating a bit rate of the source video bitstream.

### Claim 23 (depends on 17)

The transcoding method of claim 17, further comprising computing the scaling factor based, at least in part, on an estimate of the bit rate of the source video bitstream, a desired average transcoded bit rate, a number of pixels in a picture in the source video bitstream, a number of pixels in a transcoded picture, a reference buffer size, and an estimated bit balance at the end of a group of pictures.

### Claim 24 (depends on 13)

The transcoding method of claim 13, further comprising adjusting a number of bits used to encode a picture, based at least in part, on a complexity of the picture.

### Claim 25

A video bitrate controller, comprising:
a picture controller that, for each picture, computes a single quantizer scaling value applicable to all macroblocks of the picture; and
a macroblock controller that computes an encode quantization parameter used to encode a macroblock of the picture;
wherein the macroblock controller computes the encode quantization parameter as a product of the quantizer scaling value and a source quantization parameter extracted from a video bitstream.

### Claim 26 (depends on 25)

The video bitrate controller of claim 25, wherein the encode quantization parameter is based, at least in part on the quantization applied to each pixel of the video bitstream contributing to an encoded macroblock.

### Claim 27 (depends on 25)

The video bitrate controller of claim 25, wherein the picture controller bases the quantizer scaling value on at least one of a ratio of estimated source bit rate to encoder output rate, and a ratio of a number of pixels in an encoded video frame to a number of pixels in a frame of the video bitstream.

### Claim 28 (depends on 25)

The video bitrate controller of claim 25, wherein the picture controller determines a number of bits used to encode a picture, based at least in part, on a complexity of the picture.
