Video Transcoding Macroblock Segmentation and Watermarking

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing video transcoding methods face challenges such as high computational complexity, long running times, significant video quality loss, and inconsistent input and output bit rates due to the universal transcoding scheme.

Innovation Solution

A video transcoding method that decodes a source video stream, inserts watermark information, determines macroblock types, and uses a rate distortion optimization algorithm to determine target encoding parameters for each macroblock, thereby reducing computational complexity and improving transcoding speed.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If universal transcoding scheme is used, then video can be decoded and re-encoded, but computational complexity increases and running time extends

Engineering Contradiction:
Improvevideo quality consistencyVSAvoidtranscoding speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The video frame is divided into multiple macroblocks, and each macroblock is processed independently with different encoding strategies based on its type (intra or inter). This segmentation allows the system to apply optimized encoding paths for different regions, reducing overall computational complexity while maintaining video quality.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Different encoding parameters and strategies are applied to different macroblocks based on their local characteristics. Intra macroblocks use one encoding approach while inter macroblocks use another, allowing local optimization that reduces computational load in suitable regions while maintaining quality where needed.

Inventive Principle:
Principle #3Local quality

2Reliability

If watermark information is inserted into decoded video frame, then copyright protection is achieved, but video quality loss increases

Engineering Contradiction:
Improvecopyright protectionVSAvoidvideo quality
Core Design Contradiction:
ReliabilityVSManufacturing precision

Solution Approach 1:

Watermark information is inserted into the video frame during the decoding process before the encoding stage. By performing the watermark insertion early in the processing pipeline, the watermarked data becomes part of the source material for encoding, allowing the encoder to optimize compression while preserving watermark integrity, thereby reducing quality loss.

Inventive Principle:
Principle #10Preliminary action

3Manufacturing precision

If rate distortion optimization algorithm is used for each macroblock, then encoding precision improves, but computational complexity increases

Engineering Contradiction:
Improveencoding precisionVSAvoidcomputational complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The rate distortion optimization is applied selectively to different macroblock types rather than uniformly to all blocks. Intra macroblocks and inter macroblocks use different optimization strategies, reducing the overall computational complexity while maintaining encoding precision where it matters most.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Different levels of rate distortion optimization are applied to different regions of the video frame based on local characteristics. Macroblocks that benefit most from optimization receive more computational resources, while others use simplified approaches, achieving a balance between precision and complexity.

Inventive Principle:
Principle #3Local quality

4Reliability

If conventional transcoding is performed, then video can be re-encoded, but input and output bit rates become inconsistent

Engineering Contradiction:
Improvetranscoding functionalityVSAvoidbit rate consistency
Core Design Contradiction:
ReliabilityVSStability of the object's composition

Solution Approach 1:

The encoding process uses feedback from the decoded video frame and watermark information to dynamically adjust encoding parameters. By monitoring the characteristics of the input frame and adapting the encoding strategy accordingly, the system maintains consistent bit rates between input and output while preserving transcoding functionality.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS12316882B2Video transcoding method and apparatus, and electronic device and storage medium
Publication Date: 2025.05.27 BEIJING HUIJUN TECH CO LTD
  • US12316882B2 patent drawing
  • US12316882B2 patent drawing
  • US12316882B2 patent drawing

AI summary

A video transcoding method includes: decoding a source video stream to obtain a first video frame and decoding information, and inserting watermark information into the first video frame to generate a second video frame; determining types of macroblocks in the second video frame based on the watermark information and the decoding information; for each macroblock, determining target encoding parameters required for encoding the macroblock based on the type of the macroblock and a rate distortion optimization (RDO) algorithm; and performing macroblock coding according to the target coding parameters of each macroblock, so as to generate a transcoded target video stream.