# US 10,958,908 B2 · Processing media using neural networks

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

- Number: US 10,958,908 B2
- Document ID: US10958908B2
- Status: Granted
- Kind: B2
- Application number: 16/736,649
- Filed: 2020-01-07
- Published: 2020-07-09
- Granted: 2021-03-23
- Earliest claimed: 2019-01-08
- Assignees: Comcast Cable Communications, LLC
- Applicants: Comcast Cable Communications, LLC
- Inventors: Dan Grois; Alexander Giladi
- Web page: https://patentgrep.com/patent/US10958908B2

## CPC

- H04N 19/127: Prioritisation of hardware or computational resources
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/115: Selection of the code volume for a coding unit prior to coding
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/172: the region being a picture, frame or field
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An encoder may determine a plurality of coding units associated with a frame of a media file and a plurality of prediction units associated with the frame of the media file. The encoder may determine, based on the plurality of coding units associated with the frame and the plurality of prediction units associated with the frame, and based on a training of the encoder using one or more neural networks, that a particular region of the frame can be encoded using one or more encoding characteristics that are different than the encoding characteristics of one or more other particular regions of the frame. The encoder may allocate one or more encoding resources to the particular region of the frame based on the one or more encoding characteristics of the particular region of the frame in order to reduce the overall media bitrate.

## Claims

### Claim 1

A method comprising:
accessing, at an encoder, a plurality of frames of a media file;
partitioning, at the encoder, a frame of the plurality of frames of the media file into a plurality of coding units associated with the frame;
generating, at the encoder and based on encoding data associated with one or more frames of the media file prior to the frame, a plurality of prediction units associated with the plurality of coding units associated with the frame;
determining, at the encoder, based on the plurality of prediction units associated with the plurality of coding units associated with the frame, and using one or more neural networks analyzing one or more spatial characteristics of content of the frame, that a particular region of the frame can be encoded using one or more first encoding characteristics that are different than second encoding characteristics of one or more other particular regions of the frame; and
allocating, at the encoder and based on the one or more first encoding characteristics and the one or more second encoding characteristics, lower encoding resources for one or more motion vectors associated with the particular region of the frame than to encoding resources for one or more motion vectors associated with the one or more other particular regions of the frame.

### Claim 2 (depends on 1)

The method of claim 1, wherein allocating the lower encoding resources for one or more motion vectors associated with the particular region of the frame than to encoding resources for one or more motion vectors associated with the one or more other particular regions of the frame comprises allocating fewer bits for one or more motion vectors associated with the particular region of the frame than to encoding resources for one or more motion vectors associated with the one or more other particular regions of the frame.

### Claim 3 (depends on 1)

The method of claim 1, wherein the particular region of the frame is determined automatically using the one or more neural networks analyzing one or more spatial characteristics of the frame.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining that the particular region of the frame can be encoded using one or more first encoding characteristics that are different than the second encoding characteristics of the one or more other particular regions of the frame comprises determining that the one or more spatial characteristics of the content in the particular region of the frame comprises one or more textures that are different from one or more textures in the one or more other particular regions of the frame.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more motion vectors associated with the particular region of the frame comprise an inter-picture prediction residual signal.

### Claim 6 (depends on 5)

The method of claim 5, wherein allocating the lower encoding resources for the one or more motion vectors associated with the particular region of the frame comprises setting the inter-picture prediction residual signal associated with the particular region of the frame to zero.

### Claim 7

A method comprising:
accessing, at an encoder, a plurality of frames of a media file;
partitioning, at the encoder, a frame of the plurality of frames of the media file into a plurality of coding units associated with the frame;
generating, at the encoder and based on encoding data associated with one or more frames of the media file prior to the frame, a plurality of prediction units associated with the plurality of coding units associated with the frame;
automatically determining, at the encoder and based on the plurality of prediction units associated with the plurality of coding units associated with the frame, and using one or more neural networks analyzing one or more spatial characteristics of content of the frame, a particular region of the frame that can be encoded using one or more first encoding characteristics that are different than second encoding characteristics of one or more other particular regions of the frame;
determining, at the encoder and based on the one or more first encoding characteristics of the particular region of the frame, to set a residual signal associated with the particular region of the frame to zero; and
encoding, at the encoder and based on setting the residual signal associated with the particular region of the frame to zero, the frame.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining the particular region of the frame that can be encoded using one or more first encoding characteristics that are different than the second encoding characteristics of the one or more other particular regions of the frame comprises determining that the one or more spatial characteristics of the content in the particular region of the frame comprises one or more textures that are different from one or more textures in the one or more other particular regions of the frame.

### Claim 9 (depends on 7)

The method of claim 7, wherein the residual signal associated with the particular region of the frame comprises an inter-picture prediction residual signal associated with the particular region of the frame.

### Claim 10 (depends on 1)

The method of claim 1, wherein motion in the particular region between the frame and a previous frame is below a Just Noticeable Difference of the Human Visual System.

### Claim 11 (depends on 7)

The method of claim 7, wherein motion in the particular region between the frame and a previous frame is below a Just Noticeable Difference of the Human Visual System.

### Claim 12 (depends on 1)

The method of claim 1, further comprising training the one or more neural networks to identify various spatial characteristics of content.

### Claim 13 (depends on 7)

The method of claim 7, further comprising training the one or more neural networks to identify various spatial characteristics of content.

### Claim 14 (depends on 1)

The method of claim 1, wherein each of the plurality of coding units comprises one or more of the plurality of prediction units.

### Claim 15 (depends on 7)

The method of claim 7, wherein each of the plurality of coding units comprises one or more of the plurality of prediction units.

### Claim 16 (depends on 1)

The method of claim 1, further comprising encoding, at the encoder and based on allocating the lower encoding resources for the one or more motion vectors associated with the particular region of the frame, the frame.

### Claim 17

A method comprising:
accessing a plurality of frames;
partitioning a frame of the plurality of frames into a plurality of blocks;
determining, using one or more neural networks analyzing one or more spatial characteristics of content of the frame, that content of a particular block of the frame has a particular spatial characteristic; and
determining, based on the determination that the content of the particular block of the frame has the particular spatial characteristic, to set a residual signal associated with the particular block of the frame to zero; and
encoding, based on the setting of the residual signal associated with the particular block of the frame to zero, the frame.

### Claim 18 (depends on 17)

The method of claim 17, wherein the plurality of blocks are a plurality of prediction units, and the particular block is a particular prediction unit.

### Claim 19 (depends on 17)

The method of claim 17, wherein the residual signal associated with the particular block of the frame is an inter-picture prediction residual signal associated with the particular block of the frame.

### Claim 20 (depends on 17)

The method of claim 17, further comprising training the one or more neural networks to identify various spatial characteristics of content.
