# US 2023/0067258 A1 · Dynamic insertion of content via macroblock modification

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

- Number: US 2023/0067258 A1
- Document ID: US20230067258A1
- Status: Published application
- Kind: A1
- Application number: 17/900,057
- Filed: 2022-08-31
- Published: 2023-03-02
- Earliest claimed: 2021-09-01
- Assignees: MK Systems USA Inc.
- Applicants: MK Systems USA Inc.
- Inventors: Freddy Ceranton; Mikael Le Guerroue; David Clewer
- Web page: https://patentgrep.com/patent/US20230067258A1

## CPC

- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/167: Position within a video image, e.g. region of interest [ROI]
- H04N 19/172: the region being a picture, frame or field
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N 19/176: the region being a block, e.g. a macroblock
- 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 19/467: characterised by the embedded information being invisible, e.g. watermarking
- H04N 19/513: Processing of motion vectors
- H04N 19/517: by encoding
- H04N 19/593: involving spatial prediction techniques
- H04N 19/88: involving rearrangement of data among different coding units, e.g. shuffling, interleaving, scrambling or permutation of pixel data or permutation of transform coefficient data among different blocks
- H04N 21/23424: {involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement}
- H04N 21/234354: {by altering signal-to-noise ratio parameters, e.g. requantization}
- H04N 21/4316: {for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window}
- H04N 21/4545: Input to filtering algorithms, e.g. filtering a region of the image
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Systems, methods, and devices for inserting content into a video frame are disclosed herein. A frame of video data encoded to include a plurality of macroblocks is received. An insertion region of the frame for inserting content is defined, the insertion region spanning a subset of the macroblocks. The frame is augmented with a duplication region configured as a non-displayed region, the duplication region including duplicated macroblocks that duplicate the macroblocks of insertion region. The macroblocks of the insertion region are replaced with replacement macroblocks that encode replacement content.

## Claims

### Claim 1

A computer-implemented method for inserting content into a video frame, the method comprising:
receiving a frame of video data encoded to include a plurality of macroblocks;
defining an insertion region of the frame for inserting content, the insertion region spanning a subset of the macroblocks;
augmenting the frame with a duplication region configured as a non-displayed region, the duplication region including duplicated macroblocks that duplicate the macroblocks of insertion region; and
replacing the macroblocks of the insertion region with replacement macroblocks that encode replacement content.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
upon detecting that the frame is an inter-coded frame, modifying a motion vector referencing a macroblock of an insertion region of a reference frame to reference instead a corresponding duplicated macroblock of a duplication region of the reference frame.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising:
upon detecting that the frame is an intra-coded frame, modifying at least one of the macroblocks outside the insertion region to remove a spatial reference to within the insertion region.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising setting a cropping parameter for the frame to configure the duplication region as a non-displayed region.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the duplication region includes duplicated macroblocks that duplicate macroblocks in a margin around the insertion region.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the duplication region is located at the bottom of the frame or on the right side of the frame.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the duplication region has a height equal to a height of the frame or has a width equal to the width of the frame.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the duplication region has at least one of: a height greater than a height of the insertion region or a width greater than a width of the insertion region.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, reversing the replacing of the macroblocks of the insertion region to recover, substantially, the replaced macroblocks.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, further comprising terminating decoding of the frame before reaching the end of the frame.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein the frame of video data is encoded with block motion compensation.

### Claim 12

A computer-implemented system for inserting content into a video frame, the system comprising:
at least one processor;
memory in communication with said at least one processor;
software code stored in said memory, which when executed at said at least one processor causes the system to:
receive a frame of video data encoded to include a plurality of macroblocks;
define an insertion region of the frame for inserting content, the insertion region spanning a subset of the macroblocks;
augment the frame with a duplication region configured as a non-displayed region, the duplication region including duplicated macroblocks that duplicate the macroblocks of insertion region; and
replace the macroblocks of the insertion region with replacement macroblocks that encode replacement content.

### Claim 13 (depends on 12)

The computer-implemented system of claim 12, wherein the software code when executed at the at least one processor further causes the system to:
upon detecting that the frame is an inter-coded frame, modify a motion vector referencing a macroblock of an insertion region of a reference frame to reference instead a corresponding duplicated macroblock of a duplication region of the reference frame.

### Claim 14 (depends on 12)

The computer-implemented system of claim 12, wherein the software code when executed at the at least one processor further causes the system to:
upon detecting that the frame is an intra-coded frame, modify at least one of macroblocks outside the insertion region to remove a spatial reference to within the insertion region.

### Claim 15 (depends on 12)

The computer-implemented system of claim 12, wherein the software code when executed at the at least one processor further causes the system to:
set a cropping parameter for the frame to configure the duplication region as a non-displayed region.
