Transcoding Rate Control via Two-Pass Quantization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional transcoding rate control algorithms face challenges in maintaining accurate bit rate and visual quality due to the use of general encoding rate-distortion models, which are not suitable for transcoding and often result in significant bit control errors.

Innovation Solution

The proposed solution involves a rate-distortion model that considers the quantization procedure of both the encoding and transcoding processes, using a transcoder component to determine transcoding parameters and encode the input content stream into an output stream based on these parameters, facilitating window-level rate control and real-time transcoding.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If conventional general encoding rate-distortion models are used for transcoding, then the transcoding process is simple, but significant bit control errors occur and visual quality consistency deteriorates

Engineering Contradiction:
Improvebit rate control accuracyVSAvoidtranscoding process complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The transcoding process is divided into two distinct passes: a first pass that analyzes the input stream and determines initial quantization parameters, and a second pass that performs the actual transcoding using refined parameters. This segmentation allows complex rate control to be achieved without overwhelming the system in a single step, thereby improving bit rate control accuracy while managing process complexity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The first pass performs preliminary analysis of the input stream characteristics, including determining rate-distortion model parameters and initial quantization parameters, before the actual transcoding occurs. This preliminary action enables the second pass to operate with optimized parameters, significantly improving bit rate control accuracy and visual quality consistency.

Inventive Principle:
Principle #10Preliminary action

2Manufacturing precision

If accurate bit rate control is implemented through complex rate-distortion modeling, then visual quality consistency improves, but processing time and computational resources increase

Engineering Contradiction:
Improvevisual quality consistencyVSAvoidtranscoding processing time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

By dividing the transcoding into two passes, the computationally intensive rate-distortion modeling and parameter optimization are performed once in the first pass, while the second pass executes the actual transcoding with pre-determined parameters. This segmentation reduces the computational burden during real-time transcoding, maintaining visual quality consistency while reducing processing time.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

All complex rate-distortion model parameter determination and quantization parameter optimization are performed in advance during the first pass. This preliminary action ensures that the second pass can execute efficiently with pre-optimized parameters, achieving both high visual quality consistency and reduced processing time.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If two-pass rate control algorithm with sliding window buffer check is used, then bit rate accuracy and visual quality improve, but device complexity and processing overhead increase

Engineering Contradiction:
Improvebit rate accuracyVSAvoidcontrol algorithm complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The control algorithm is segmented into distinct functional modules: the first pass handles rate-distortion model parameter determination, the second pass handles actual transcoding with buffer management, and the sliding window mechanism handles real-time bit rate monitoring and adjustment. This modular segmentation makes the complex algorithm more manageable and implementable while maintaining high bit rate accuracy.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The rate-distortion model parameters and target bit rate allocations are determined in advance during the first pass, before the actual transcoding begins. This preliminary determination simplifies the second pass operations, reducing the real-time computational complexity while maintaining accurate bit rate control through the sliding window buffer check.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS9667981B2Rate control for content transcoding
Publication Date: 2017.05.30 CITY UNIVERSITY OF HONG KONG
  • US9667981B2 patent drawing
  • US9667981B2 patent drawing
  • US9667981B2 patent drawing

AI summary

The disclosed subject matter relates to rate control aspects for content transcoding. A rate control scheme for transcoding is disclosed that is considerate of quantization parameters related to an encoded input content stream and when transcoding the input content stream into an output content stream. Quantization parameters can be determined for an encoded input content stream by parsing the stream. These can be combined with a rate-distortion model for transcoding to determine transcoding quantization parameters. Further, iteratively applying the derived rate-distortion model to windows of frames during transcoding can facilitate real-time two-pass transcoding. Window size can be based on buffer constraints. Moreover, a sliding window buffer check scheme can be employed to avoid buffer constraint violations.