Media Encoder Selective Evaluation Skipping for Rate-Distortion Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current video encoding processes are computationally intensive due to the large number of coding tools and options available, leading to time-consuming and resource-intensive operations despite advancements in hardware.

Innovation Solution

A media encoder selectively skips evaluation stages during encoding by analyzing previous decisions and media content to avoid evaluating coding tools, parameters, or modes that do not improve rate-distortion performance, such as determining threshold unit sizes, evaluating motion vectors, applying quantization methods, and disabling transform skip mode based on usage patterns.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If comprehensive evaluation of all coding tools and options is performed during encoding, then rate-distortion performance is optimized, but computational complexity and encoding time increase significantly

Engineering Contradiction:
Improverate-distortion performanceVSAvoidcomputational complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The encoder performs preliminary analysis of the current block characteristics (e.g., transform coefficients, prediction residuals) before evaluating coding tools. Based on this preliminary assessment, the encoder pre-determines which coding tools are likely to be beneficial and which can be skipped, thereby reducing the evaluation scope without significantly compromising rate-distortion performance

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

Instead of evaluating all possible coding tools exhaustively, the encoder selectively evaluates only a subset of coding tools that are most relevant to the current block characteristics. This partial evaluation approach achieves acceptable rate-distortion performance while significantly reducing computational complexity

Inventive Principle:
Principle #16Partial or excessive action

2Measurement precision

If comprehensive evaluation of all coding tools and options is performed during encoding, then rate-distortion performance is optimized, but encoding speed decreases

Engineering Contradiction:
Improverate-distortion performanceVSAvoidencoding speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The encoder performs preliminary analysis of block characteristics before encoding to identify which coding tools warrant evaluation. This preliminary step enables the encoder to skip unnecessary tool evaluations during the main encoding process, thereby maintaining rate-distortion performance while significantly improving encoding speed

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The encoder selectively skips evaluation of coding tools that are unlikely to improve rate-distortion performance based on preliminary block analysis. By rushing through or skipping these unnecessary evaluations, the encoder maintains acceptable performance while achieving faster encoding speeds

Inventive Principle:
Principle #21Skipping (Rushing through)

3Measurement precision

If all candidate unit sizes are evaluated during encoding, then rate-distortion performance is optimized, but computational complexity increases

Engineering Contradiction:
Improverate-distortion performanceVSAvoidcomputational complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The encoder adapts the unit size evaluation strategy to local block characteristics. For example, for blocks with certain properties (e.g., smooth regions, high-frequency content), the encoder limits evaluation to specific unit size ranges that are most likely to be optimal, rather than evaluating all possible unit sizes uniformly across all blocks

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

Instead of evaluating all candidate unit sizes for every block, the encoder performs partial evaluation by considering only a subset of unit sizes that are most relevant to the current block characteristics, thereby reducing computational complexity while maintaining acceptable rate-distortion performance

Inventive Principle:
Principle #16Partial or excessive action

4Measurement precision

If all candidate motion vectors are evaluated for contextual motion mode, then rate-distortion performance is optimized, but encoding time increases

Engineering Contradiction:
Improverate-distortion performanceVSAvoidencoding time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The encoder performs preliminary analysis of motion characteristics and block properties before evaluating candidate motion vectors. Based on this preliminary assessment, the encoder identifies and evaluates only the most promising candidate motion vectors, skipping evaluation of vectors that are unlikely to improve rate-distortion performance, thereby reducing encoding time while maintaining performance

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10924743B2Skipping evaluation stages during media encoding
Publication Date: 2021.02.16 MICROSOFT TECHNOLOGY LICENSING LLC
  • US10924743B2 patent drawing
  • US10924743B2 patent drawing
  • US10924743B2 patent drawing

AI summary

Various innovations in media encoding are presented herein. In particular, the innovations can reduce the computational complexity of encoding by selectively skipping certain evaluation stages during encoding. For example, based on analysis of decisions made earlier in encoding or based on analysis of media to be encoded, an encoder can selectively skip evaluation of certain coding tools (such as residual coding or rate-distortion-optimized quantization), skip evaluation of certain values for parameters or settings (such as candidate unit sizes or transform sizes, or candidate partition patterns for motion compensation), and/or skip evaluation of certain coding modes (such as frequency transform skip mode) that are not expected to improve rate-distortion performance during encoding.