IP Library Granted Patent US 12701236
Granted Patent B2
US 12701236 · App. 18/671,301 · Granted Aug 4, 2026

Video coding method and related apparatus thereof

Inventors: Libin Zhang (Beijing, CN); Luheng Jia (Beijing, CN); Chang Liu (Shenzhen, CN); Xiaodong Guo (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
H04N19/136H04N19/176
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12701236
App. No.
18/671,301
Granted
Aug 4, 2026
Kind
B2
Abstract

A video coding method includes: obtaining a first video file and a second video file that are different; separately decoding the first video file and the second video file to obtain first information of a first image block in the first video file and second information of a second image block in the second video file; obtaining, based on the first information and the second information, difference information indicating a difference between the first information and the second information; and encoding the difference information to obtain encoded data. The difference information may be used to replace an original decoding result in the second video file. It is equivalent to reducing storage resources for video storage and bandwidth for video transmission while ensuring that the complete second video file can be restored.

Claims (42)

1 . A method comprising:

obtaining a first coding parameter of a first image block and a second coding parameter of a second image block, wherein the first image block is in a first video file, wherein the second image block is in a second video file, wherein the first video file and the second video file are different video files, and wherein each of the first coding parameter and the second coding parameter comprises a motion vector or a residual;

obtaining first difference information based on the first coding parameter and the second coding parameter, wherein the first difference information indicates a first difference between the first coding parameter and the second coding parameter;

encoding the first difference information to obtain encoded data; and

encoding indication information indicating the first difference information is based on a second difference between the first image block and the second image block.

2 . The method of claim 1 , further comprising:

decoding the first video file to obtain the first coding parameter; and

decoding the second video file to obtain the second coding parameter.

3 . The method of claim 1 , wherein a similarity between image features of the first image block and the second image block is greater than a threshold.

4 . The method of claim 3 , wherein each of the image features comprises at least one of a color feature, a texture feature, a shape feature, or a spatial relationship feature.

5 . The method of claim 1 , wherein the first coding parameter comprises a first motion vector, wherein the second coding parameter comprises a second motion vector, wherein the first difference is between the first motion vector and the second motion vector, and wherein encoding the first difference information comprises encoding the first difference information through lossless compression coding.

6 . The method of claim 1 , wherein the first coding parameter comprises a first residual, wherein the second coding parameter comprises a second residual, wherein the first difference is between the first residual and the second residual, and wherein encoding the first difference information comprises encoding the first difference information through lossless compression coding or lossy compression coding.

7 . The method of claim 1 , wherein the indication information comprises a first identifier of the first image block and a second identifier of the second image block.

8 . The method of claim 1 , wherein a similarity between the first coding parameter and the second coding parameter is greater than a threshold.

9 . The method of claim 1 , wherein a similarity between subtitle information in the first video file and the second video file is greater than a threshold.

10 . The method of claim 1 , wherein a similarity between audio information in the first video file and the second video file is greater than a threshold.

11 . The method of claim 1 , wherein a similarity between discrete cosine transform (DCT) coefficients of the first image block and the second image block is greater than a threshold.

12 . The method of claim 1 , wherein the indication information comprises a first identifier of the first video file and a second identifier of the second video file.

13 . A method comprising:

obtaining encoded data;

decoding the encoded data to obtain difference information;

decoding a first image block based on indication information to obtain a first coding parameter, wherein the indication information indicates an existing association between the first image block and a second image block, wherein the indication information further indicates the difference information is based on a difference between the first image block and the second image block, wherein the first image block is of a first video file, wherein the second image block is of a second video file, and wherein the first video file and the second video file are different video files; and

obtaining a second coding parameter based on the first coding parameter and the difference information, wherein each of the first coding parameter and the second coding parameter comprises a motion vector or a residual.

14 . The method of claim 13 , wherein the indication information comprises a first identifier of the first image block and a second identifier of the second image block.

15 . The method of claim 13 , wherein the indication information comprises a first identifier of the first image block, a second identifier of the second image block, a third identifier of the first video file, and a fourth identifier of the second video file.

16 . An apparatus comprising:

a memory configured to store instructions; and

one or more processors coupled to the memory and configured to execute the instructions to cause the apparatus to:

obtain a first coding parameter of a first image block and a second coding parameter of a second image block, wherein the first image block is in a first video file, wherein the second image block is in a second video file, wherein the first video file and the second video file are different video files, and wherein each of the first coding parameter and the second coding parameter comprise a motion vector or a residual;

obtain difference information based on the first coding parameter and the second coding parameter, wherein the difference information indicates a first difference between the first coding parameter and the second coding parameter;

encode the difference information to obtain encoded data; and

encode indication information indicating the difference information is based on a second difference between the first image block and the second image block.

17 . The apparatus of claim 16 , wherein the one or more processors are further configured to execute the instructions to cause the apparatus to:

decode the first video file to obtain the first coding parameter; and

decode the second video file to obtain the second coding parameter.

18 . The apparatus of claim 17 , wherein:

a first similarity between image features of the first image block and the second image block is greater than a first threshold;

a second similarity between the first coding parameter and the second coding parameter is greater than a second threshold;

a third similarity between subtitle information or audio information in the first video file and the second video file is greater than a third threshold; or

a fourth similarity between discrete cosine transform (DCT) coefficients of the first image block and the second image block is greater than a fourth threshold.

19 . The apparatus of claim 16 , wherein the first coding parameter comprises a first motion vector, wherein the second coding parameter comprises a second motion vector, wherein the first difference is between the first motion vector and the second motion vector, and wherein the one or more processors are further configured to execute the instructions to cause the apparatus to encode the difference information by encoding the difference information through lossless compression coding.

20 . The apparatus of claim 16 , wherein the first coding parameter comprises a first residual, wherein the second coding parameter comprises a second residual, wherein the first difference is between the first residual and the second residual, and wherein the one or more processors are further configured to execute the instructions to cause the apparatus to encode the difference information by encoding the difference information through lossless compression coding or lossy compression coding.