# US 2021/0289234 A1 · System and method for transcoding media stream

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

- Number: US 2021/0289234 A1
- Document ID: US20210289234A1
- Status: Published application
- Kind: A1
- Application number: 17/198,307
- Filed: 2021-03-11
- Published: 2021-09-16
- Earliest claimed: 2016-08-31
- Assignees: Resi Media LLC
- Applicants: Resi Media LLC
- Inventors: Bradley Reitmeyer; Paul Martel; Christopher Joel Ribble
- Web page: https://patentgrep.com/patent/US20210289234A1

## CPC

- H04N 21/2187: Live feed
- H04L 65/765: {intermediate}
- 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 21/2365: Multiplexing of several video streams
- H04N 21/2743: Video hosting of uploaded data from client
- H04N 21/432: Content retrieval operation from a local storage medium, e.g. hard-disk {(details of retrieval of video data and associated meta data in video databases G06F16/739)}
- H04N 21/440218: {by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 (conversion of standards in analogue television systems H04N7/01)}
- H04N 21/63345: {by transmitting keys (key distribution for secret or secure communication H04L9/08; network support of key management H04L63/06)}
- H04N 21/63775: {for uploading keys, e.g. for a client to communicate its public key to the server (key management H04L9/08; network support of key management H04L63/06)}
- H04N 21/8456: {by decomposing the content in the time domain, e.g. in time segments}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system for transcoding a media stream includes at least one network interface; at least one memory; and at least one processor each coupled to one or more of the at least one network interface and one or more of the at least one memory. The at least one processor is configured to publish, via a messaging bus, a segment transcode request in a segment transcode request queue, retrieve the segment transcode request by a transcode worker thread, wherein the first transcode worker thread monitors the segment transcode request queue, transcode by a second transcode worker thread a segment referenced by the segment transcode request, determine by the manifest processor whether the second transcode worker thread has completed transcoding the segment and is still operating, and, if not, transcode the segment by a third transcode worker thread, and store the transcoded segment.

## Claims

### Claim 1

A system for transcoding a media stream, comprising:
at least one network interface;
at least one memory; and
at least one processor each coupled to one or more of the at least one network interface and one or more of the at least one memory, the at least one processor configured to:
retrieve a segment transcode request from a segment transcode request queue by a first transcode worker thread of a plurality of transcode worker threads, wherein each one of the plurality of transcode worker threads is configured to monitor the segment transcode request queue or independently perform transcoding operations on segments;
transcode, by a second transcode worker thread of the plurality of transcode worker threads, a segment referenced by the segment transcode request; and
determine, by a manifest processor, whether the second transcode worker thread has completed transcoding the segment and is still operating, and, if not,
return the segment transcode request to the segment transcode request queue, and
transcode the segment by a third transcode worker thread of the plurality of transcode worker threads.

### Claim 2 (depends on 1)

The system of claim 1, wherein the at least one processor is further configured to:
initialize the manifest processor;
initialize the plurality of transcode worker threads;
publish, via a messaging bus, a transcode request in a transcode request queue, wherein the transcode request includes one or more transcode request parameters, wherein the messaging bus and the transcode request queue are provided by a messaging service, and wherein the messaging service provides communications distributed over the messaging bus across the system;
retrieve, by the manifest processor, the transcode request from the transcode request queue; and
publish, by the manifest processor via the messaging bus, the segment transcode request in the segment transcode request queue, wherein the segment transcode request queue is provided by the messaging service.

### Claim 3 (depends on 2)

The system of claim 2, wherein the at least one processor is further configured to:
retrieve a manifest referenced by the transcode request; and
parse the manifest, by the manifest processor, to locate the segment and include a location of the segment in the segment transcode request.

### Claim 4 (depends on 3)

The system of claim 3, wherein the at least one processor is further configured to:
publish, by the second or third transcode worker thread via the messaging bus, a segment transcode notification in a segment transcode notification queue, wherein the segment transcode notification indicates a successful transcode of the segment, and wherein the segment transcode notification queue is provided by the messaging service; and
merge the segment transcode notification with any other segment transcode notifications in the segment transcode notification queue.

### Claim 5 (depends on 4)

The system of claim 4, wherein the at least one processor is further configured to:
start a time interval;
retrieve, by the manifest processor, the segment transcode notification or a merged notification from the segment transcode notification queue, in response to an expiration of the time interval; and
create, by the manifest processor, a new manifest including information related to the transcoded segment and other segments referenced by the merged notification.

### Claim 6 (depends on 1)

The system of claim 1, wherein, when determining by the manifest processor whether the second transcode worker thread has completed transcoding the segment and is still operating, the at least one processor is further configured to:
place the segment transcode request in a transcode reattempt queue, wherein the transcode reattempt queue is a separate queue from the segment transcode request queue, wherein the transcode reattempt queue is provided by a messaging service, and wherein available transcode worker threads monitor the transcode reattempt queue in order to retrieve requests from the transcode reattempt queue and transcode segments referenced by segment transcode requests in the transcode reattempt queue.

### Claim 7 (depends on 1)

The system of claim 1, wherein the second transcode worker thread transcodes the segment referenced by the segment transcode request in accordance with one or more transcode request parameters, wherein the one or more transcode request parameters include at least one of:
a resolution parameter, wherein the resolution parameter indicates a resolution at which to transcode the segment;
a bitrate parameter, wherein the bitrate parameter indicates a bitrate to assign to the segment;
a cropping parameter, wherein the cropping parameter indicates that images in the segment are to be cropped;
a resizing parameter, wherein the resizing parameter indicates that a length of the segment is to be altered; or
a codec parameter, wherein the codec parameter indicates that the segment is to be transcoded to a different codec.

### Claim 8

A method for transcoding a media stream, comprising:
retrieving a segment transcode request from a segment transcode request queue by a first transcode worker thread of a plurality of transcode worker threads, wherein each one of the plurality of transcode worker threads is configured to monitor the segment transcode request queue or independently perform transcoding operations on segments;
transcoding, by a second transcode worker thread of the plurality of transcode worker threads, a segment referenced by the segment transcode request; and
determining, by a manifest processor, whether the second transcode worker thread has completed transcoding the segment and is still operating, and, if not,
returning the segment transcode request to the segment transcode request queue, and
transcoding the segment by a third transcode worker thread of the plurality of transcode worker threads.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
initializing the manifest processor;
initializing the plurality of transcode worker threads;
publishing, via a messaging bus, a transcode request in a transcode request queue, wherein the transcode request includes one or more transcode request parameters, and wherein the messaging bus and the transcode request queue are provided by a messaging service, and wherein the messaging service provides communications distributed over the messaging bus;
retrieving, by the manifest processor, the transcode request from the transcode request queue; and
publishing, by the manifest processor via the messaging bus, the segment transcode request in the segment transcode request queue, wherein the segment transcode request queue is provided by the messaging service.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
retrieving a manifest referenced by the transcode request; and
parsing the manifest, by the manifest processor, to locate the segment and include a location of the segment in the segment transcode request.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
publishing, by the second or third transcode worker thread via the messaging bus, a segment transcode notification in a segment transcode notification queue, wherein the segment transcode notification indicates a successful transcode of the segment, and wherein the segment transcode notification queue is provided by the messaging service; and
merging the segment transcode notification with any other segment transcode notifications in the segment transcode notification queue.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
starting a time interval;
retrieving, by the manifest processor, the segment transcode notification or a merged notification from the segment transcode notification queue, in response to an expiration of the time interval; and
creating, by the manifest processor, a new manifest including information related to the transcoded segment and other segments referenced by the merged notification.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
when determining by the manifest processor whether the second transcode worker thread has completed transcoding the segment and is still operating, placing the segment transcode request in a transcode reattempt queue, wherein the transcode reattempt queue is a separate queue from the segment transcode request queue, wherein the transcode reattempt queue is provided by a messaging service, and wherein available transcode worker threads monitor the transcode reattempt queue in order to retrieve requests from the transcode reattempt queue and transcode segments referenced by segment transcode requests in the transcode reattempt queue.

### Claim 14 (depends on 8)

The method of claim 8, wherein transcoding, by the second transcode worker thread, the segment referenced by the segment transcode request includes transcoding the segment in accordance with one or more transcode request parameters, wherein the one or more transcode request parameters include at least one of:
a resolution parameter, wherein the resolution parameter indicates a resolution at which to transcode the segment;
a bitrate parameter, wherein the bitrate parameter indicates a bitrate to assign to the segment;
a cropping parameter, wherein the cropping parameter indicates that images in the segment are to be cropped;
a resizing parameter, wherein the resizing parameter indicates that a length of the segment is to be altered; or
a codec parameter, wherein the codec parameter indicates that the segment is to be transcoded to a different codec.

### Claim 15

A non-transitory computer readable medium comprising instructions for operating a system including at least one network interface, at least one memory, and at least one processor, and the instructions, when executed by the at least one processor, cause the system to:
retrieve a segment transcode request from a segment transcode request queue by a first transcode worker thread of a plurality of transcode worker threads, wherein each one of the plurality of transcode worker threads is configured to monitor the segment transcode request queue or independently perform transcoding operations on segments;
transcode, by a second transcode worker thread of the plurality of transcode worker threads, a segment referenced by the segment transcode request; and
determine, by a manifest processor, whether the second transcode worker thread has completed transcoding the segment and is still operating, and, if not,
return, the segment transcode request to the segment transcode request queue, and
transcode the segment by a third transcode worker thread.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, further comprising instructions that, when executed by the at least one processor, cause the system to:
initialize the manifest processor;
initialize the plurality of transcode worker threads;
publish, via a messaging bus, a transcode request in a transcode request queue, wherein the transcode request includes one or more transcode request parameters, wherein the messaging bus and the transcode request queue are provided by a messaging service, and wherein the messaging service provides communications distributed over the messaging bus across the system;
retrieve, by the manifest processor, the transcode request from the transcode request queue; and
publish, by the manifest processor via the messaging bus, the segment transcode request in the segment transcode request queue, wherein the segment transcode request queue is provided by the messaging service.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, further comprising instructions that, when executed by the at least one processor, cause the system to:
retrieve a manifest referenced by the transcode request; and
parse the manifest, by the manifest processor, to locate the segment and include a location of the segment in the segment transcode request.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, further comprising instructions that, when executed by the at least one processor, cause the system to:
publish, by the second or third transcode worker thread via the messaging bus, a segment transcode notification in a segment transcode notification queue, wherein the segment transcode notification indicates a successful transcode of the segment, and wherein the segment transcode notification queue is provided by the messaging service; and
merge the segment transcode notification with any other segment transcode notifications in the segment transcode notification queue.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, further comprising instructions that, when executed by the at least one processor, cause the system to:
start a time interval;
retrieve, by the manifest processor, the segment transcode notification or a merged notification from the segment transcode notification queue, in response to an expiration of the time interval; and
create, by the manifest processor, a new manifest including information related to the transcoded segment and other segments referenced by the merged notification.

### Claim 20 (depends on 15)

The non-transitory computer readable medium of claim 15, further comprising instructions that, when executed by the at least one processor, cause the system to:
when determining by the manifest processor whether the second transcode worker thread has completed transcoding the segment and is still operating, place the segment transcode request in a transcode reattempt queue, wherein the transcode reattempt queue is a separate queue from the segment transcode request queue, wherein the transcode reattempt queue is provided by a messaging service, and wherein available transcode worker threads monitor the transcode reattempt queue in order to retrieve requests from the transcode reattempt queue and transcode segments referenced by segment transcode requests in the transcode reattempt queue.
