# US 10,958,989 B2 · Framework for embedding data in encoded video

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

- Number: US 10,958,989 B2
- Document ID: US10958989B2
- Status: Granted
- Kind: B2
- Application number: 15/052,906
- Filed: 2016-02-25
- Published: 2017-08-31
- Granted: 2021-03-23
- Earliest claimed: 2016-02-25
- Assignees: Synamedia Limited
- Applicants: Synamedia Limited
- Inventors: Harel Cain; Michal Devir; Yaron Sella; Ben Walton
- Web page: https://patentgrep.com/patent/US10958989B2

## CPC

- H04N 21/8451: {using Advanced Video Coding [AVC]}
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- 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/188: {the unit being a video data packet, e.g. a network abstraction layer [NAL] unit}
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/467: characterised by the embedded information being invisible, e.g. watermarking
- H04N 19/593: involving spatial prediction techniques
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 21/23614: {Multiplexing of additional data and video streams (arrangements for simultaneous broadcast of plural pieces of information H04H20/28)}
- H04N 21/23892: {involving embedding information at multiplex stream level, e.g. embedding a watermark at packet level}
- H04N 21/4316: {for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window}
- H04N 21/435: Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
- H04N 21/44: Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N 21/4405: involving video stream decryption
- H04N 21/8358: involving watermark {(protecting executable software by watermarking G06F21/16; image watermarking in general G06T1/0021; watermarks inserted in still images for transmission purposes H04N1/32144; inserting watermarks during video coding H04N19/467)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

In one embodiment, a video stream is received, and a spatially distinct region of a frame in the received video stream to be modified is identified, the spatially distinct region of the frame being encoded separately from any other region in the frame. A segment of the spatially distinct region of the frame to be modified is extracted. The extracted segment of the spatially distinct region is modified. The extracted segment of the spatially distinct region into a single-segment spatially distinct region is encoded. A network abstraction layer (NAL) header is associated with the encoded single-segment spatially distinct region. The encoded single-segment spatially distinct region and its associated NAL header is inserted into the received video stream following the identified spatially distinct region of the frame to be modified. Related methods, systems and apparatus are also described.

## Claims

### Claim 1

A method comprising:
receiving a video stream;
identifying a spatially distinct region of a frame in a first portion of the received video stream to be modified, the spatially distinct region of the frame being encoded separately from any other region in the frame, the spatially distinct region having an address wherein the address indicates the spatially distinct region's location in the frame;
extracting a segment of the spatially distinct region of the frame to be modified;
modifying the extracted segment of the spatially distinct region;
encoding the extracted segment of the spatially distinct region into a single-segment spatially distinct region, wherein encoding the extracted segment comprises encoding each of a plurality of macroblocks of the extracted segment into which a watermark is embedded into a standalone one macroblock I-slice;
associating a network abstraction layer (NAL) header with each of a plurality of one macroblock I-slices of the encoded single-segment spatially distinct region, wherein associating the NAL header with each of the plurality of one macroblock I-slices of the encoded single-segment spatially distinct region comprises:
creating a new NAL unit for each of the one macroblock I-slice of the plurality of one macroblock I-slices,
updating a slice header field of the new NAL unit from a default value to another value that indicates a determined position for the one macroblock I-slice in the extracted segment of the spatially distinct region,
updating a data field of the new NAL unit to include the encoded single-segment spatially distinct region, and
wrapping the encoded single-segment spatially distinct region comprising the updated slice header field in the new NAL unit; and
inserting a plurality of new NAL units into the received video stream following the first portion, wherein inserting the plurality of new NAL units comprises inserting the plurality of new NAL units after an original I-slice on which the watermark is overlaid, and wherein each of the plurality of new NAL units is inserted in accordance to an increasing order of the position indicated in the slice header field of each of the plurality of new NAL units.

### Claim 2 (depends on 1)

The method according to claim 1 wherein the video stream comprises an H.264 compliant video stream, the spatially distinct region of the frame comprises an H.264 compliant slice, and the segment of the spatially distinct region of the frame comprises an H.264 macroblock.

### Claim 3 (depends on 1)

The method according to claim 1 wherein, the extracting comprises extracting at least two segments of the spatially distinct region of the frame and, a corresponding resulting at least two new NAL units are inserted following the spatially distinct region of the frame.

### Claim 4 (depends on 1)

The method according to claim 1 wherein the modifying the extracted segment of the spatially distinct region of the frame comprises embedding a watermark into the extracted segment of the spatially distinct region of the frame.

### Claim 5 (depends on 1)

The method according to claim 1 wherein the modifying the extracted segment of the spatially distinct region of the frame comprises embedding a logo into the extracted segment of the spatially distinct region of the frame.

### Claim 6

A system comprising: a video stream receiver operative to receive a video stream; and a video embedder operative to: identify a spatially distinct region of a frame in a first portion in the received video stream to be modified, the spatially distinct region of the frame being encoded separately from any other region in the frame, the spatially distinct region having an address wherein the address indicates the spatially distinct region's location in the frame; extract a segment of the spatially distinct region of the frame to be modified; modify the extracted segment of the spatially distinct region of the frame; encode the modified extracted segment of the spatially distinct region of the frame into a single-segment spatially distinct region, wherein the video embedder being operative to encode the modified extracted segment comprises the video embedder being operative to encode each macroblocks of the modified extracted segment into which a watermark is embedded into a standalone one macroblock I-slice; associate a network abstraction layer (NAL) header with each of a plurality of one macroblock I-slices of the encoded single-segment spatially distinct region, wherein the video embedder being operative to associate the NAL header with each of the plurality of one macroblock I-slices of the encoded single-segment spatially distinct region comprises the video embedder operative to: create a new NAL unit for each of the one macroblock I-slice of the plurality of one macroblock I-slices, update a slice header field of the new NAL unit from a default value to indicate a determined position for the one macroblock I-slice in the frame of the video stream, update a data field of the new NAL unit to include the one macroblock I-slice, wherein the position of the one macroblock I-slice comprises the address, and wrap the encoded single-segment spatially distinct region comprising the updated slice header field in the new NAL unit; and insert a plurality of new NAL units into the received video stream following the first portion, wherein the a plurality of new NAL units are inserted after an original I-slice on which the watermark is overlaid, and wherein each of the plurality of new NAL units is inserted in accordance to an increasing order of the position indicated in the slice header field of each of the plurality of new NAL units.

### Claim 7 (depends on 6)

The system according to claim 6 wherein the video stream comprises an H.264 compliant video stream, the spatially distinct region of the frame comprises an H.264 compliant slice, and the segment of the spatially distinct region of the frame comprises an H.264 macroblock.

### Claim 8 (depends on 6)

The system of claim 6, wherein the extracted segment is modified by embedding a watermark into the extracted segment.

### Claim 9 (depends on 6)

The system of claim 6, wherein the extracted segment is encoded in a DC prediction mode.

### Claim 10 (depends on 6)

The system of claim 6, wherein the extracted segment is modified by embedding a logo into the extracted segment.

### Claim 11 (depends on 6)

The system of claim 6, wherein the new NAL unit is inserted into the video stream after the extracted segment.

### Claim 12

A non-transitory computer readable storage medium comprising computer-executable instructions which, when executed by a computing device, will cause the computing device to perform a method comprising: receiving a video stream; identifying a spatially distinct region of a frame in the received video stream to be modified, the spatially distinct region having an address, wherein the address indicates the spatially distinct region's location in the frame; extracting a segment of the spatially distinct region of the frame to be modified; modifying the extracted segment of the spatially distinct region; encoding the extracted segment into a single-segment spatially distinct region, wherein encoding the extracted segment comprises encoding each of a plurality of macroblocks of the extracted segment into which a watermark is embedded into a standalone one macroblock I-slice; associating a network abstraction layer (NAL) header with each of a plurality of one macroblock I-slices of the encoded single-segment spatially distinct region, wherein associating the NAL header with each of the plurality of one macroblock I-slices of the encoded single-segment spatially distinct region comprises: creating a new NAL unit for each of the one macroblock I-slice of the plurality of one macroblock I-slices, updating a slice header field of the new NAL unit from a default value to another value that indicates a determined position for the one macroblock I-slice in the extracted segment of the spatially distinct region, updating a data field of the new NAL unit to include the encoded single-segment spatially distinct region, and wrapping the encoded single-segment spatially distinct region comprising the updated slice header field in the new NAL unit; and inserting a plurality of new NAL units into the received video stream following the first portion, wherein inserting the a plurality of new NAL units comprises inserting the a plurality of new NAL units after an original I-slice on which the watermark is to be overlaid, wherein each of the plurality of new NAL units is inserted in accordance to an increasing order of the position indicated in the slice header field of each of the plurality of new NAL units.

### Claim 13 (depends on 12)

The non-transitory computer readable storage medium of claim 12, wherein the extracted segment of the spatially distinct region of the frame is modified by embedding a logo into the extracted segment of the spatially distinct region of the frame.

### Claim 14 (depends on 12)

The non-transitory computer readable storage medium of claim 12, wherein the extracted segment of the spatially distinct region is modified by embedding a watermark into the extracted segment.

### Claim 15 (depends on 12)

The non-transitory computer readable storage medium of claim 12, wherein the extracted segment of the spatially distinct region is encoded as in a DC prediction mode.

### Claim 16 (depends on 12)

The non-transitory computer readable storage medium of claim 12, wherein the new NAL unit is inserted into the video stream after the extracted segment.

### Claim 17 (depends on 12)

The non-transitory computer readable storage medium of claim 12, wherein the extracted segment of the spatially distinct region of the frame is modified by modifying pixel values in Y, U, and V domains of the extracted segment.

### Claim 18 (depends on 1)

The method according to claim 1, wherein the video stream comprises an H.265 compliant video stream, the spatially distinct region of the frame comprises an H.265 compliant slice segment, and the segment of the spatially distinct region of the frame comprises an H.265 compliant coding tree.

### Claim 19 (depends on 18)

The method according to claim 18, wherein the associating the NAL header with the encoded single-segment spatially distinct region comprises setting a slice_segment_address field in a slice header in the single-segment spatially distinct region, the slice_segment_address field being a coding tree block address of the extracted segment of the spatially distinct region, the setting the slice_segment_address field in the slice header being done by modifying the slice_segment_address field and wrapping the encoded single-segment spatially distinct region comprising the modified slice_segment_address field in the NAL header.

### Claim 20 (depends on 19)

The method according to claim 19, wherein, the extracting comprises extracting at least two segments of the spatially distinct region of the frame and, a corresponding resulting at least two new NAL units are inserted following the at least one spatially distinct region of the frame, according to an increasing order of the new NAL units' slice_segment_address values.

### Claim 21 (depends on 1)

The method according to claim 1, wherein the spatially distinct region of the frame comprises an intra-coded spatially distinct region of the frame.

### Claim 22 (depends on 21)

The method according to claim 21, and further comprising decoding the extracted spatially distinct region of the frame prior to performing the step of extracting the segment of the spatially distinct region from the identified spatially distinct region of the frame.

### Claim 23 (depends on 21)

The method according to claim 21, wherein the encoding the extracted segment of the spatially distinct region into a single-segment spatially distinct region is performed using DC prediction mode.

### Claim 24 (depends on 21)

The method according to claim 21, wherein the encoding the extracted segment of the spatially distinct region into a single-segment spatially distinct region is performed using I_PCM mode.

### Claim 25 (depends on 21)

The method according to claim 21, wherein the encoding the extracted segment of the spatially distinct region comprises modifying at least one pixel in one of a Y, a U, or a V domain.

### Claim 26 (depends on 1)

The method according to claim 1, wherein the spatially distinct region of the frame comprises an inter-coded at least one spatially distinct region of the frame.

### Claim 27 (depends on 26)

The method according to claim 26, wherein the encoding the extracted segment of the spatially distinct region into a single-segment spatially distinct region further comprises encoding the segment of the spatially distinct region of the frame into a single-segment spatially distinct region to incorporate a reference to a same reference picture as is referred to by the identified spatially distinct region of the frame to be modified.

### Claim 28 (depends on 26)

The method according to claim 26, wherein the modifying the extracted segment of the spatially distinct region comprises modifying at least one of the extracted one segment's: residual values; prediction modes; or motion vectors.

### Claim 29 (depends on 6)

The system according to claim 6, wherein the video stream comprises an H.265 compliant video stream, the spatially distinct region of the frame comprises an H.265 compliant slice segment, and the segment of the spatially distinct region of the frame comprises an H.265 compliant coding tree.
