# US 2018/0324439 A1 · Method and apparatus for adaptive video encoding

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

- Number: US 2018/0324439 A1
- Document ID: US20180324439A1
- Status: Published application
- Kind: A1
- Application number: 15/973,503
- Filed: 2018-05-07
- Published: 2018-11-08
- Earliest claimed: 2017-05-08
- Assignees: Mediatek Inc.
- Applicants: Mediatek Inc.
- Inventors: Tung-Hsing Wu; Kuan-Hung Chou; Han-Liang Chou; Chien-Chang Wang
- Web page: https://patentgrep.com/patent/US20180324439A1

## CPC

- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/126: Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
- 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/154: Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion (use of rate-distortion criteria H04N19/147)
- H04N 19/172: the region being a picture, frame or field
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An adaptive video encoding method includes: encoding, by an encoding circuit, a current frame to generate a current encoded frame; and after the current frame is encoded, obtaining quantization parameter information of at least one encoded frame, wherein the at least one encoded frame includes the current encoded frame, and referring to the quantization parameter information to adaptively adjust a frame rate of at least one next frame to be actually encoded by the encoding circuit.

## Claims

### Claim 1

An adaptive video encoding method comprising:
encoding, by an encoding circuit, a current frame to generate a current encoded frame; and
after the current frame is encoded:
obtaining quantization parameter information of at least one encoded frame, wherein said at least one encoded frame comprises the current encoded frame; and
referring to the quantization parameter information to adaptively adjust a frame rate of at least one next frame to be actually encoded by the encoding circuit.

### Claim 2 (depends on 1)

The adaptive video encoding method of claim 1, wherein referring to the quantization parameter information to adaptively adjust the frame rate of said at least one next frame comprises:
determining a next drop-frame level according to a current drop-frame level and the quantization parameter information; and
adaptively adjusting the frame rate of said at least one next frame by selectively dropping at least one frame received from a frame source device according to the next drop-frame level.

### Claim 3 (depends on 1)

The adaptive video encoding method of claim 1, wherein referring to the quantization parameter information to adaptively adjust the frame rate of said at least one next frame comprises:
determining a next frame-rate level according to a current frame-rate level and the quantization parameter information; and
adaptively adjusting the frame rate of said at least one next frame by instructing a frame source device to provide at least one frame at a frame rate that is designated by the next frame-rate level.

### Claim 4 (depends on 1)

The adaptive video encoding method of claim 1, wherein obtaining the quantization parameter information of said at least one encoded frame comprises:
determining the quantization parameter information by applying an arithmetic operation to quantization parameters derived from quantization parameters assigned to blocks that are encoded in said at least one encoded frame.

### Claim 5 (depends on 1)

The adaptive video encoding method of claim 1, wherein the current frame with a first frame rate is encoded to generate the current encoded frame, and the adaptive video encoding method further comprises:
after the current frame with the first frame rate is encoded:
checking if the frame rate of said at least one next frame is lower than the first frame rate of the current frame; and
when the frame rate of said at least one next frame is lower than the first frame rate of the current frame, re-encoding the current frame to update the current encoded frame.

### Claim 6 (depends on 5)

The adaptive video encoding method of claim 5, wherein re-encoding the current frame comprises:
re-encoding the current frame with a second frame rate, wherein the second frame rate is different from the first frame rate.

### Claim 7 (depends on 6)

The adaptive video encoding method of claim 6, wherein the second frame rate is set by the frame rate of said at least one next frame that is adaptively adjusted according to the quantization parameter information.

### Claim 8 (depends on 5)

The adaptive video encoding method of claim 5, wherein the current frame with a first frame type and the first frame rate is encoded to generate the current encoded frame, and re-encoding the current frame comprises:
re-encoding the current frame with a second frame type, wherein the second frame type is different from the first frame type.

### Claim 9 (depends on 8)

The adaptive video encoding method of claim 8, wherein the first frame type is an inter frame, and the second frame type is an intra frame.

### Claim 10 (depends on 5)

The adaptive video encoding method of claim 5, wherein the current frame with a first initial quantization parameter and the first frame rate is encoded to generate the current encoded frame, and re-encoding the current frame comprises:
re-encoding the current frame with a second initial quantization parameter, wherein the second initial quantization parameter is different from the first initial quantization parameter.

### Claim 11 (depends on 10)

The adaptive video encoding method of claim 10, wherein re-encoding the current frame further comprises:
determining the second initial quantization parameter by applying an arithmetic operation to quantization parameters assigned to blocks that are encoded in the current encoded frame.

### Claim 12 (depends on 5)

The adaptive video encoding method of claim 5, wherein the current frame with a first resolution and the first frame rate is encoded to generate the current encoded frame, and re-encoding the current frame comprises:
re-encoding the current frame with a second resolution, wherein the second resolution is different from the first resolution.

### Claim 13 (depends on 12)

The adaptive video encoding method of claim 12, wherein the second resolution is smaller than the first resolution.

### Claim 14

An adaptive video encoding method comprising:
encoding, by an encoding circuit, a current frame to generate a current encoded frame; and
after the current frame is encoded:
setting re-encode indication according to at least encoding-related information of the current frame; and
referring to the re-encode indication for adaptively re-encoding, by the encoding circuit, the current frame to update the current encoded frame.

### Claim 15 (depends on 14)

The adaptive video encoding method of claim 14, wherein the current frame with a first frame type is encoded to generate the current encoded frame, and re-encoding the current frame comprises:
re-encoding the current frame with a second frame type, wherein the second frame type is different from the first frame type.

### Claim 16 (depends on 15)

The adaptive video encoding method of claim 15, wherein setting the re-encode indication according to at least the encoding-related information of the current frame comprises:
setting the re-encode indication as true when the second frame type determined for re-encoding the current frame is different from the first frame type; or
setting the re-encode indication as true when a ratio of blocks in the current frame that are encoded in an intra mode to all blocks in the current frame is larger than a predetermined threshold.

### Claim 17 (depends on 14)

The adaptive video encoding method of claim 14, wherein the current frame with a first initial quantization parameter is encoded to generate the current encoded frame, and re-encoding the current frame comprises:
re-encoding the current frame with a second initial quantization parameter, wherein the second initial quantization parameter is different from the first initial quantization parameter.

### Claim 18 (depends on 17)

The adaptive video encoding method of claim 17, wherein setting the re-encode indication according to at least the encoding-related information of the current frame comprises:
setting the re-encode indication as true when a quantization parameter calculation result is larger than a first predetermined threshold, wherein the quantization parameter calculation result is derived from applying an arithmetic operation to quantization parameters assigned to blocks that are encoded in the current encoded frame; or
setting the re-encode indication as true when a difference between the first initial quantization parameter and the second initial quantization parameter determined for re-encoding the current frame is larger than a second predetermined threshold.

### Claim 19 (depends on 14)

The adaptive video encoding method of claim 14, wherein the current frame with a first resolution is encoded to generate the current encoded frame, and re-encoding the current frame comprises:
re-encoding the current frame with a second resolution, wherein the second resolution is different from the first resolution.

### Claim 20 (depends on 19)

The adaptive video encoding method of claim 19, wherein setting the re-encode indication according to at least the encoding-related information of the current frame comprises:
setting the re-encode indication as true when a ratio of the first resolution to the second resolution determined for re-encoding the current frame is larger than a first predetermined threshold; or
setting the re-encode indication as true when a bit budget after encoding the current frame with the first resolution is lower than a second predetermined threshold.

### Claim 21

A video encoder for adaptive video encoding, comprising:
an encoding circuit, arranged to encode a current frame to generate a current encoded frame; and
a control circuit, wherein after the current frame is encoded, the control circuit is arranged to:
obtain quantization parameter information of at least one encoded frame, wherein said at least one encoded frame comprises the current encoded frame; and
refer to the quantization parameter information to adaptively adjust a frame rate of at least one next frame to be actually encoded by the encoding circuit.

### Claim 22

A video encoder for adaptive video encoding, comprising:
an encoding circuit, arranged to encode a current frame to generate a current encoded frame; and
a control circuit;
wherein after the current frame is encoded, the control circuit is arranged to set re-encode indication according to at least encoding-related information of the current frame, and the encoding circuit is further arranged to refer to the re-encode indication for adaptively re-encoding the current frame to update the current encoded frame.
