Video Frame Coding Scene Change Bit Compensation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

During video frame coding, especially in scenarios like video chats or live broadcasts, scene changes lead to a significant increase in bit consumption, causing network strain and poor coding quality due to high peak bit rates and noticeable blocking effects.

Innovation Solution

A video frame coding method that detects scene changes by analyzing bit consumption and average bit rates, adjusts quantization parameters, and establishes a compensation window to distribute extra bits across subsequent frames, thereby stabilizing bit rates and maintaining video quality.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If quantization parameters are adjusted to control bit consumption during scene change, then the quantity of bits is reduced, but coding quality deteriorates

Engineering Contradiction:
Improvequantity of bitsVSAvoidcoding quality
Core Design Contradiction:
Quantity of substanceVSManufacturing precision

Solution Approach 1:

The patent establishes a compensation window before scene changes occur and pre-allocates additional bits to frames within this window. By performing bit allocation in advance rather than reactively, the system ensures that frames during scene transition have sufficient bits available, preventing both excessive bit consumption and quality degradation. The compensation window is set based on detecting scene change parameters, and bits are distributed proactively to affected frames.

Inventive Principle:
Principle #10Preliminary action

2Quantity of substance

If coding parameters are adjusted to reduce bit consumption during scene change, then bit rate is controlled, but blocking effects increase

Engineering Contradiction:
Improvebit rateVSAvoidblocking effects
Core Design Contradiction:
Quantity of substanceVSObject-affected harmful factors

Solution Approach 1:

The patent applies different coding strategies to different temporal regions. Frames within the compensation window (near scene changes) receive special treatment with increased bit allocation and adjusted quantization parameters, while frames outside this window use standard coding. This localized approach ensures that blocking effects are minimized only where necessary (during scene transitions) without unnecessarily reducing quality in stable regions.

Inventive Principle:
Principle #3Local quality

3Manufacturing precision

If high bit rate is used during scene change to maintain quality, then coding quality is preserved, but peak bit rate increases causing network strain

Engineering Contradiction:
Improvecoding qualityVSAvoidpeak bit rate
Core Design Contradiction:
Manufacturing precisionVSPower

Solution Approach 1:

The patent dynamically adjusts quantization parameters and bit allocation based on the temporal position of frames relative to scene changes. Instead of using a static high bit rate, the system varies bit allocation smoothly across frames within the compensation window. The adjustment is continuous and adaptive, ensuring quality is maintained during transitions while avoiding sudden bit rate spikes that would strain the network. The dynamics of adjustment are controlled to be gradual rather than abrupt.

Inventive Principle:
Principle #15Dynamics

4Stability of the object's composition

If scene change detection is performed to manage bit allocation, then bit rate stability is improved, but system complexity increases

Engineering Contradiction:
Improvebit rate stabilityVSAvoidsystem complexity
Core Design Contradiction:
Stability of the object's compositionVSDevice complexity

Solution Approach 1:

The patent detects scene changes by monitoring parameter changes in the video stream, such as variations in motion magnitude, frame difference, or other statistical properties. When these parameters exceed thresholds, a scene change is detected and a compensation window is established. This parameter-based detection approach is simpler than complex scene analysis methods while still providing effective triggering for bit allocation adjustments, thus achieving bit rate stability without excessive system complexity.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentEP3606050B1Video frame coding method, terminal, and storage medium
Publication Date: 2024.04.03 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • EP3606050B1 patent drawingFigure 1
  • EP3606050B1 patent drawingFigure 2~3
  • EP3606050B1 patent drawingFigure 4~5

AI summary

Disclosed are a video frame coding method and a terminal. The method includes: obtaining an ith video frame in a group of pictures, coding the ith video frame by using a first coding rule, and counting a quantity of actually consumed bits corresponding to the ith video frame after coding; detecting a state of the ith video frame based on the quantity of actually consumed bits, an initial average bit rate of the group of pictures, a quantization model, and a video frame detection rule, and determining a first initial quantization parameter, a first maximum quantization parameter, and a first minimum quantization parameter of a (i+1)th video frame when the ith video frame is in a scene change state; obtaining a compensation length, and determining, based on the compensation length and the compensation model, first quantities of allocated bits for compensation of first to-be-compensated video frames; updating the first coding rule according to a first quantity of allocated bits for compensation, the first initial quantization parameter, the first maximum quantization parameter, and the first minimum quantization parameter corresponding to the (i+1)th video frame when the (i+1)th video frame belongs to the first to-be-compensated video frames, and coding the (i+1)th video frame.