# US 2008/0304570 A1 · Method and Apparatus for Transcoding a Video Signal

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

- Number: US 2008/0304570 A1
- Document ID: US20080304570A1
- Status: Published application
- Kind: A1
- Application number: 12/060,622
- Filed: 2008-04-01
- Published: 2008-12-11
- Earliest claimed: 2007-04-02
- Assignees: Vestel Elektronik Sanayi Ve Ticaret A.S.
- Inventors: Orham Coskun; Ahmet Sahin; Yusuf Engin Tetik; Yusuf Selcuk Ateskan
- Web page: https://patentgrep.com/patent/US20080304570A1

## CPC

- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/152: by measuring the fullness of the transmission buffer
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/18: the unit being a set of transform coefficients
- 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 19/61: in combination with predictive coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The invention provides a method of transcoding a video signal made up of an input bit stream representative of frames of a video, each frame being made up of blocks of pixels, there being a corresponding block of data within the input bit stream for each block of pixels, the method comprising: for the bit stream of a frame of the video signal, identifying the type of frame; and for certain types of frame, disregarding a configurable proportion of the data in respect of plural blocks within the frame, thereby taking into account local motion activity within the frame.

## Claims

### Claim 1

A method of transcoding a video signal made up of an input bit stream representative of frames of a video, each frame being made up of blocks of pixels, there being a corresponding block of data within the input bit stream for each block of pixels, the method comprising:
for the bit stream of a frame of the video signal, identifying the type of frame; and
for certain types of frame, disregarding a substantially equal proportion of the data in respect of plural blocks within the frame, thereby taking into account local motion activity within the frame.

### Claim 2 (depends on 1)

A method according to claim 1, wherein a proportion of the data in respect of all blocks in any frame is disregarded.

### Claim 3 (depends on 2)

A method according to claim 2, wherein the input bit stream is representative of the non-zero transform coefficients of frames of the video signal and wherein the disregarded data is a proportion of the non-zero transform coefficients for all blocks within a frame.

### Claim 4 (depends on 3)

A method according to claim 3, comprising identifying whether the frame is an I frame, a P frame or a B frame and if it is identified as an I frame, performing no transrating operation on the frame.

### Claim 5 (depends on 4)

A method according to claim 4, wherein if the frame is a P frame or a B frame the method comprises filtering the frame by removing certain high transform coefficients for all blocks within the frame.

### Claim 6 (depends on 5)

A method according to claim 5, wherein the certain transform coefficients are removed from the frame by the insertion of an End of Block code at a defined point within each block of the frame within the output bit stream.

### Claim 7 (depends on 6)

A method according to claim 6, in which the position at which an End of Block code within the output bit stream is provided is varied to control the bit-rate of the transrated video signal.

### Claim 8 (depends on 3)

A method according to claim 3, wherein the proportion of transform coefficients is determined by variation at a factor of a, wherein there are N non-zero transform coefficients in a block of a received frame and M in a block of the transrated video stream, and wherein M=a N.

### Claim 9 (depends on 8)

A method according to claim 8, wherein α is varied in real time to control dynamically the bit-rate of the output bit stream.

### Claim 10 (depends on 3)

A method according to claim 3, wherein an output bit stream is generated comprising all the coefficients from blocks within I frames and only the retained coefficients of blocks from the P and B frames.

### Claim 11 (depends on 3)

A method according to claim 3, comprising providing a switch arranged in one configuration to switch the received bit stream directly to the output bit stream and in a second configuration to switch a transcoded bit stream of the input bit stream to the output stream.

### Claim 12 (depends on 11)

A method according to claim 11, wherein the switch is controlled in dependence on one or more of N, the desired output bit-rate, the type of frame, block position in the picture, picture position within a group of pictures (GOP), output bit-rate and other stream parameters.

### Claim 13 (depends on 8)

A method according to claim 8, wherein there is a non-linear relationship between M and N.

### Claim 14 (depends on 13)

A method according to claim 13, wherein the value of α is updated by a method such as a least mean squares relationship.

### Claim 15 (depends on 14)

A method according to claim 14, wherein the relationship between M and N is defined by the following equation:
M=αN
in which α is defined by the following equations
αP(t+1)=αP(t)+μ(p−p(αP(t))
αB(t+1)=αB(t)+μ(b−b(αB(t)
in which
t represents the update time,
b and p are the target bit consumption at the block, macroblock, slice or frame level for B and P frames respectively,
b(α) and p(α) are the resultant transrator bit consumption as a function of α,
μ(μ>0) is the step size which is chosen small enough to have a stable adaptation algorithm and large enough to ensure convergence to the target bit-rate.

### Claim 16

Apparatus for transcoding an encoded video signal made up of a bit stream corresponding to frames of a video, each frame being made up of blocks of pixels, the apparatus comprising:
a receiver for receiving the encoded video signal in the form of a digital bit stream;
a reader arranged upon receipt of a frame to identify the type of frame; and
a controller arranged for certain types of frame, to disregard a proportion of the data in respect of plural blocks within the frame, thereby taking into account local motion activity within the frame.

### Claim 17 (depends on 16)

Apparatus according to claim 16, wherein the controller is arranged to disregard the proportion of data in respect of all blocks within the frame.

### Claim 18 (depends on 16)

Apparatus according to claim 16, comprising an End of Block position detector to detect the position within the input bit stream of the end of blocks.

### Claim 19 (depends on 18)

Apparatus according to claim 18, comprising a switch arranged in one configuration to copy the input bit stream directly to the output bit stream and in a second configuration to copy processed frames into the output stream.

### Claim 20 (depends on 19)

Apparatus according to claim 19, comprising a block coefficient counter to count the coefficients within a received block and to provide the number N of non-zero coefficients to a control unit arranged to control the switch, the number N being dependent on motion activity within the block.

### Claim 21 (depends on 20)

Apparatus according to claim 20, comprising a control unit arranged to determine a number M of coefficients to be included in a block within the output stream.

### Claim 22 (depends on 21)

Apparatus according to claim 21, wherein the control unit is configured to determine the number M in dependence on various parameters including one or more of desired output bit-rate, actual output bit-rate, frame type and the number N of non-zero coefficients within a received block.

### Claim 23 (depends on 22)

Apparatus according to claim 22, wherein the control unit is arranged to insert an End of Block code within the output bit stream at a position within a block of coefficients within the output stream such that the block will include only M coefficients.

### Claim 24 (depends on 23)

Apparatus according to claim 23, wherein the relationship between M and N is linear such that:
M=αN.

### Claim 25 (depends on 23)

Apparatus according to claim 23, wherein the relationship between M and N is defined by the equation M=αN,
in which α is defined by the following equations
αP(t+1)=αP(t)+μ(p−p(αP(t))
αB(t+1)=αB(t)+μ(b−b(αB(t)
in which
t represents the update time,
b and p are the target bit consumption at the block, macroblock, slice or frame level for B and P frames respectively,
b(α) and p(α) are the resultant transrator bit consumption as a function of α,
μ(μ>0) is the step size which is chosen small enough to have a stable adaptation algorithm and large enough to ensure convergence to the target bit-rate.

### Claim 26 (depends on 16)

Video playback apparatus comprising a transcoder according to claim 16.
