# US 2013/0094564 A1 · Rate-distortion-complexity optimization of video encoding

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

- Number: US 2013/0094564 A1
- Document ID: US20130094564A1
- Status: Published application
- Kind: A1
- Application number: 13/275,084
- Filed: 2011-10-17
- Published: 2013-04-18
- Earliest claimed: 2011-10-17
- Assignees: Google Inc.
- Inventors: Lei Yang; Debargha Mukherjee
- Web page: https://patentgrep.com/patent/US20130094564A1

## CPC

- 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/10: using adaptive coding
- H04N 19/115: Selection of the code volume for a coding unit prior to coding
- 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/192: the adaptation method, adaptation tool or adaptation type being iterative or recursive
- 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 21/2662: Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
- H04N 21/2743: Video hosting of uploaded data from client
- H04N 19/127: Prioritisation of hardware or computational resources
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/194: involving only two passes
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A system and method provide a video coding system for optimizing encoding bitrate, distortion and complexity for a video hosting service. The system comprises an encoding module configured to encode multiple videos with a bitrate control strategy, a pair of complexity allocation control parameters and one or more target output video formats specifications, which include target resolution, target bitrate and target quality information. The encoding module obtains encoding bitrate, distortion and complexity performance samples from the encoding. From the encoding bitrate, distortion and complexity performance samples, the encoding module is configured to select optimal encoding bitrate, distortion and complexity performance samples. The encoding computation profile mapping module is configured to obtain multiple computation levels from the optimal encoding bitrate, distortion and complexity performance samples. For each computational level, a pair of optimized complexity allocation control parameters and number of encoding passes are selected.

## Claims

### Claim 1

A computer system for optimizing encoding bitrate, distortion and complexity for a video hosting service, the system comprising:
an encoding module configured to:
encode a plurality of videos with a bitrate control strategy, a pair of complexity allocation control parameters and one or more target output video formats specifications;
obtain encoding bitrate, distortion and complexity performance samples from the encoding of the plurality of videos;
select optimal encoding bitrate, distortion and complexity performance samples from the encoding bitrate, distortion and complexity performance samples; and
an encoding computation profile mapping module, coupled to the encoding module, configured to:
obtain a plurality of computation levels from the selected optimal encoding bitrate, distortion and complexity performance samples; and
for each computation level, select a pair of optimized complexity allocation control parameters and the number of encoding passes corresponding to the selected optimal encoding bitrate, distortion and complexity samples.

### Claim 2 (depends on 1)

The system of claim 1, wherein the complexity allocation control parameter models encoding computation-efficiency trade-off of encoding a video for a selected bitrate control strategy.

### Claim 3 (depends on 1)

The system of claim 1, wherein an encoding bitrate, distortion and complexity performance sample of a video of the plurality of videos comprises:
an encoding bitrate of encoding the video;
a distortion measure of encoding the video, the distortion being measured by mean-square-error of luminance component of frames of the video; and
encoding complexity represented by encoding time per frame.

### Claim 4 (depends on 1)

The system of claim 1, wherein the encoding module is further configured to:
interpolate the encoding distortion and encoding complexity over the encoding bitrate for
each pair of complexity allocation control parameters; and
find Pareto optimal encoding bitrate, distortion and complexity performance samples.

### Claim 5 (depends on 1)

The system of claim 1, wherein the computation levels comprise at least one of the following five computation levels: fastest, fast, medium, slow and slowest, wherein the fastest computation level is for encoding a video with the fastest transcoding time among the plurality of the computation levels and the slowest computation level is for generating a video with the highest perceptual visual quality among the plurality of the computation levels.

### Claim 6 (depends on 5)

The system of claim 5, wherein the number of encoding passes for the fastest computation level of a bitrate control strategy is 1.

### Claim 7 (depends on 1)

The system of claim 1, wherein the encoding computation profile mapping module is further configured to verify effectiveness of the selected complexity allocation control parameters and the number of encoding passes for the bitrate control strategy.

### Claim 8

A method for optimizing encoding bitrate, distortion and complexity for a video hosting service, the method comprising:
encoding a plurality of videos with a bitrate control strategy, a pair of complexity allocation control parameters and one or more target output video formats specifications;
obtaining encoding bitrate, distortion and complexity performance samples from the encoding of the plurality videos;
selecting optimal encoding bitrate, distortion and complexity performance samples from the encoding bitrate, distortion and complexity performance samples; and
obtaining a plurality of computation levels from the selected optimal encoding bitrate, distortion and complexity performance samples; and
for each computation level, selecting a pair of optimized complexity allocation control parameters and number of encoding passes corresponding to the selected optimal encoding bitrate, distortion and complexity samples.

### Claim 9 (depends on 8)

The method of claim 8, wherein the complexity allocation control parameter models encoding computation-efficiency trade-off of encoding a video for a selected bitrate control strategy.

### Claim 10 (depends on 8)

The method of claim 8, wherein an encoding bitrate, distortion and complexity performance sample of a video of the plurality of videos comprises:
an encoding bitrate of encoding the video;
a distortion measure of encoding the video, the distortion being measured by mean-square-error of luminance component of frames of the video; and
encoding complexity represented by encoding time per frame.

### Claim 11 (depends on 8)

The method of claim 8, wherein selecting optimal encoding bitrate, distortion and complexity performance samples further comprises:
interpolating the encoding distortion and encoding complexity over the encoding bitrate for each pair of complexity allocation control parameters; and
finding Pareto optimal encoding bitrate, distortion and complexity performance samples.

### Claim 12 (depends on 8)

The method of claim 8, wherein the computation levels comprise at least one of the following computation levels: fastest, fast, medium, slow and slowest, wherein the fastest computation level is for encoding a video with the fastest transcoding time among the plurality of the computation levels and the slowest computation level is for generating a video with the highest perceptual visual quality among the plurality of the computation levels.

### Claim 13 (depends on 12)

The method of claim 12, wherein the number of encoding passes for the fastest computation level of a bitrate control strategy is 1.

### Claim 14 (depends on 8)

The method of claim 8, wherein selecting the pair of optimized complexity allocation control parameters and number of encoding passes further comprises verifying effectiveness of the selected complexity allocation control parameters and the number of encoding passes for the bitrate control strategy.

### Claim 15

A non-transitory computer-readable storage medium having executable computer program instructions recorded thereon for optimizing encoding bitrate, distortion and complexity for a video hosting service, the computer program instructions comprise instructions for:
encoding a plurality of videos with a bitrate control strategy, a pair of complexity allocation control parameters and one or more target output video formats specifications;
obtaining encoding bitrate, distortion and complexity performance samples from the encoding of the plurality videos;
selecting optimal encoding bitrate, distortion and complexity performance samples from the encoding bitrate, distortion and complexity performance samples; and
obtaining a plurality of computation levels from the selected optimal encoding bitrate, distortion and complexity performance samples; and
for each computation level, selecting a pair of optimized complexity allocation control parameters and number of encoding passes corresponding to the selected optimal encoding bitrate, distortion and complexity samples.

### Claim 16 (depends on 15)

The computer-readable storage medium of claim 15, wherein the complexity allocation control parameter models encoding computation-efficiency trade-off of encoding a video for a selected bitrate control strategy.

### Claim 17 (depends on 15)

The computer-readable storage medium of claim 15, wherein an encoding bitrate, distortion and complexity performance sample of a video of the plurality of videos comprises:
an encoding bitrate of encoding the video;
a distortion measure of encoding the video, the distortion being measured by mean-square-error of luminance component of frames of the video; and
encoding complexity represented by encoding time per frame.

### Claim 18 (depends on 15)

The computer-readable storage medium of claim 15, wherein the computer program instructions for selecting optimal encoding bitrate, distortion and complexity performance samples further comprise instructions for:
interpolating the encoding distortion and encoding complexity over the encoding bitrate for each pair of complexity allocation control parameters; and
finding Pareto optimal encoding bitrate, distortion and complexity performance samples.

### Claim 19 (depends on 15)

The computer-readable storage medium of claim 15, wherein the computation levels comprise at least one of the following computation levels: fastest, fast, medium, slow and slowest, wherein the fastest computation level is for encoding a video with the fastest transcoding time among the plurality of the computation levels and the slowest computation level is for generating a video with the highest perceptual visual quality among the plurality of the computation levels.

### Claim 20 (depends on 15)

The computer-readable storage medium of claim 15, wherein computer program instructions for selecting the pair of optimized complexity allocation control parameters and number of encoding passes further comprise instructions for verifying effectiveness of the selected complexity allocation control parameters and the number of encoding passes for the bitrate control strategy.
