# US 2022/0021891 A1 · Cross-codec encoding optimizations for video transcoding

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0021891 A1
- Document ID: US20220021891A1
- Status: Published application
- Kind: A1
- Application number: 17/238,075
- Filed: 2021-04-22
- Published: 2022-01-20
- Earliest claimed: 2020-07-20
- Assignees: Meta Platforms, Inc.
- Applicants: Facebook, Inc.
- Inventors: Gaurang Chaudhari; Hariharan G. Lalgudi; Harikrishna Madadi Reddy
- Web page: https://patentgrep.com/patent/US20220021891A1

## CPC

- H04N 19/40: using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
- H04N 21/234309: {by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo (conversion of standards in analog television systems H04N7/01)}
- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/12: Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
- H04N 19/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/179: the unit being a scene or a shot
- H04N 19/53: Multi-resolution motion estimation; Hierarchical motion estimation
- H04N 21/234363: {by altering the spatial resolution, e.g. for clients with a lower screen resolution}
- H04N 21/23439: {for generating different versions}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for sharing the motion estimation and mode decision results and decisions of one codec with another codec is disclosed. A video is received to be transcoded into a plurality of different output encodings of a plurality of different codecs. Each codec has a different video encoding format. A shared motion estimation and a shared mode decision processing of the video are performed. One or more results of the shared mode decision processing shared across the plurality of different codecs are used to encode the video into the plurality of different output encodings of the plurality of different codecs.

## Claims

### Claim 1

4 method, comprising:
receiving a video to be transcoded into a plurality of different output encodings of a plurality of different codecs, wherein each codec has a different video encoding format;
performing a shared motion estimation and a shared mode decision processing of the video; and
using one or more results of the shared mode decision processing shared across the plurality of different codecs to encode the video into the plurality of different output encodings of the plurality of different codecs.

### Claim 2 (depends on 1)

The method of claim 1, wherein the shared motion estimation and the shared mode decision processing are compatible with a first codec of the plurality of different codecs with a first video encoding format, and wherein the shared motion estimation and the shared mode decision processing are not compatible with a second codec of the plurality of different codecs with a second video encoding format.

### Claim 3 (depends on 2)

The method of claim 2, further comprising directly sending a result of the shared mode decision processing to a first standard-specific module compatible with the first video encoding format for further processing, wherein the first standard-specific module comprises a first standard-specific final encoding module and a first standard-specific filter engine.

### Claim 4 (depends on 3)

The method of claim 3, wherein the first standard-specific final encoding module performs prediction, transform and quantization, and entropy coding.

### Claim 5 (depends on 2)

The method of claim 2, further comprising sending one or more results of the shared mode decision processing to a mapping module that maps the one or more results to one or more mapped results, wherein the one or more mapped results comprise one or more mode decision processing results compatible with the second video encoding format.

### Claim 6 (depends on 5)

The method of claim 5, further comprising sending the one or more mapped results to a second standard-specific module compatible with the second video encoding format for further processing, wherein the second standard-specific module comprises a second standard-specific final encoding module and a second standard-specific filter engine.

### Claim 7 (depends on 6)

The method of claim 6, wherein the second standard-specific final encoding module performs prediction, transform and quantization, and entropy coding.

### Claim 8 (depends on 5)

The method of claim 5, wherein the mapping module maps the one or more results to the one or more mapped results using a mapping function based on a machine learning model, wherein the machine learning model is trained based on mode decisions collected on one or more video decoders.

### Claim 9 (depends on 5)

The method of claim 5, wherein the mapping module performs additional motion estimation and mode decision processing, wherein the one or more mapped results are based on the one or more results of the shared mode decision processing and results of the additional motion estimation and mode decision processing.

### Claim 10 (depends on 5)

The method of claim 5, wherein the one or more results of the shared mode decision processing comprise intermediate results of motion estimation or mode decision processing, and wherein the mapping module performs additional motion estimation and mode decision processing based on the intermediate results to form the one or more mapped results.

### Claim 11 (depends on 5)

The method of claim 5, wherein the mapping module uses the one or more results as one or more initial values for a refinement search for one or more refined mode decision processing results to form the one or more mapped results.

### Claim 12

A system, comprising:
an interface configured to receive a video to be transcoded into a plurality of different output encodings of a plurality of different codecs, wherein each codec has a different video encoding format; and
a processor coupled to the interface and configured to:
perform a shared motion estimation and a shared mode decision processing of the video; and
use one or more results of the shared mode decision processing shared across the plurality of different codecs to encode the video into the plurality of different output encodings of the plurality of different codecs.

### Claim 13 (depends on 12)

The system of claim 12, wherein the shared motion estimation and the shared mode decision processing are compatible with a first codec of the plurality of different codecs with a first video encoding format, and wherein the shared motion estimation and the shared mode decision processing are not compatible with a second codec of the plurality of different codecs with a second video encoding format.

### Claim 14 (depends on 13)

The system of claim 13, wherein the processor is configured to map one or more results of the shared mode decision processing to one or more mapped results, wherein the one or more mapped results comprise one or more mode decision processing results compatible with the second video encoding format.

### Claim 15 (depends on 14)

The system of claim 14, wherein the processor is configured to process the one or more mapped results using a second standard-specific final encoding module and a second standard-specific filter engine, wherein the second standard-specific final encoding module performs prediction, transform and quantization, and entropy coding

### Claim 16 (depends on 14)

The system of claim 14, wherein the processor is configured to map the one or more results to the one or more mapped results using a mapping function based on a machine learning model, wherein the machine learning model is trained based on mode decisions collected on one or more video decoders.

### Claim 17 (depends on 14)

The system of claim 14, wherein the processor is configured to map the one or more results to the one or more mapped results by performing additional motion estimation and mode decision processing, wherein the one or more mapped results are based on the one or more results of the shared mode decision processing and results of the additional motion estimation and mode decision processing.

### Claim 18 (depends on 14)

The system of claim 14, wherein the one or more results of the shared mode decision processing comprise intermediate results of motion estimation or mode decision processing, and wherein the processor is configured to map the one or more results to the one or more mapped results by performing additional motion estimation and mode decision processing based on the intermediate results to form the one or more mapped results.

### Claim 19 (depends on 14)

The system of claim 14, wherein the processor is configured to map the one or more results to the one or more mapped results by using the one or more results as one or more initial values for a refinement search for one or more refined mode decision processing results to form the one or more mapped results.

### Claim 20

A system, comprising:
an interface receiving a video to be transcoded into a plurality of different output encodings of a plurality of different codecs, wherein each codec has a different video encoding format;
a motion estimation module configured to perform a shared motion estimation of the video;
a mode decision module configured to perform a shared mode decision processing of the video; and
a mapping module configured to use one or more results of the shared mode decision processing shared across the plurality of different codecs to encode the video into the plurality of different output encodings of the plurality of different codecs.
