Automated synchronization of multiple encoders for streaming content

The synchronization of multiple content encoders addresses unreliability and format limitations in streaming systems by ensuring identical output through desynchronization detection and frame adjustments, enhancing resilience and format versatility.

US12820261B1Active Publication Date: 2026-12-01AMAZON TECH INC
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
US17/212768
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Filing Date
2021-03-25
Publication Date
2026-12-01
Estimated Expiration
2041-03-25

AI Technical Summary

Technical Problem

Existing content streaming systems face challenges with unreliability due to non-redundant devices, limited format versatility, unsynchronized nature, and difficulty in establishing synchronization, particularly in live streams, leading to inconsistent content delivery across multiple devices.

Method used

Implementing multiple content encoders synchronized through a protocol that ensures identical or interchangeable output by detecting desynchronization and adjusting frame insertion or deletion to regain synchronization, using a centralized controller or peer-to-peer communication.

Benefits of technology

Ensures seamless transitions between redundant or cooperative encoders, enhancing resilience and format versatility while reducing computing resources, and maintaining consistent content delivery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12820261-D00000_ABST
    Figure US12820261-D00000_ABST
Patent Text Reader

Abstract

Systems and methods enable synchronized encoding of streaming video content between multiple encoders, in an automated manner providing seamlessly-interchangeable encodings. Within a pool of encoders, each encoder can periodically generate state information regarding its encoding state and share that state information with other encoders. A video synchronization module implemented with each of the encoders can evaluate the state information to determine whether a desynchronization has occurred in the pool. When a desynchronization does occur, such as due to intermittent network packet loss, the encoders can select a content stream in the pool for updating. Resynchronization is achieved by updating the selected stream, via the automated repeating or removal of one or more frames, resulting in identical or interchangeable encoded content being output from each encoder in the pool.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND

[0001] Consumers increasingly utilize various electronic devices to access multimedia digital content. Content creators and service providers often employ interconnected computing devices (e.g., within data centers) to deliver such content to clients, including the consumers. In some instances, the content delivery may support traditional content distribution systems, such as by creating, modifying, or distributing streaming television or radio content. In other instances, computerized embodiments may serve to replicate or replace prior content distribution systems. In any event, while a single computing device might be used to process a content stream, a failure or delay by that computing device causes a corresponding failure or delay in the content stream. Moreover, because of the streaming nature of that content, it may not be possible to recover a portion of live content which, due to the delay or failure, is lost and does not reach the end viewers.

[0002] Even in cases of redundant or concurrent streaming devices, where one or more parallel encoding devices can continue to process a content stream in the event of a failure by one of the pooled devices, the remaining devices may not be fully interchangeable, such that transitioning an end viewer between streams provided by redundant devices does not result in a “seamless” transition. Specifically, the content output by any processing device may be dependent at least in part on the state of that device, such as a current timestamp for content processed by the device, the arrangement of segments within the content, or other variables.BRIEF DESCRIPTION OF THE DRAWINGS

[0003] Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which:

[0004] FIG. 1 illustrates a logical network environment which may be utilized in accordance with various embodiments;

[0005] FIG. 2 is a block diagram depicting an illustrative configuration of one embodiment of a server which may be utilized in accordance with various embodiments;

[0006] FIG. 3 illustrates representative components and interactions of a system configured to provide encoded streaming content via multiple redundant or cooperative encoders which are synchronized in accordance with various embodiments;

[0007] FIG. 4 illustrates an example process flow for synchronizing redundant or cooperative encoders in accordance with various embodiments;

[0008] FIG. 5 is an illustrative visualization of content encoded by first and second encoders in accordance with various embodiments;

[0009] FIG. 6 illustrates an example client computing device that can be used to implement aspects of the various embodiments; and

[0010] FIG. 7 illustrates example components of a computing device that can be utilized in accordance with various embodiments.DETAILED DESCRIPTION

[0011] Systems and methods in accordance with various embodiments of the present disclosure overcome one or more of the above-referenced and other deficiencies in conventional approaches to providing streaming content over a communication network. In particular, by employing multiple, be they redundant or cooperative, content encoders and a synchronization protocol, the various embodiments ensure synchronization and seamless delivery of the encoded content output by the content encoders. The synchronization protocol allows for synchronization of encoding states and ensures that content output by the encoders is identical or fully interchangeable by a content packager.

[0012] The streaming content hereunder can include any live or pre-recorded content which is intended to be processed (e.g., ingested, encoded, or packaged) and delivered in “real-time,” such as television or network-based content streams. As an example case of applicable content that is not live, a movie provider will be enabled to stream motions pictures continuously. In some illustrative embodiments, where the streaming content is live content (e.g., being both recorded and presented in “real-time”), it may include minor, intentional delays, such as to provide the ability for content censoring, filtering, and / or advertisement insertion. Data centers can provide network-based streaming video and audio content in a manner similar to traditional television networks. Where computing devices are used to facilitate either traditional or network-based distribution systems, specialized software is used to replace or replicate functionality of dedicated hardware devices. For example, software applications may be used to encode and package a data stream containing live video content, thus reducing or eliminating the need for dedicated hardware to perform those functions.

[0013] To facilitate redundant processing of the content in a manner allowing for seamless transition between redundant output streams, the present disclosure provides for multiple content processing devices, such as content encoders, configured to enable synchronized output of interchangeable or identical encoded content by the devices. Specifically, the present disclosure provides an automated protocol by which a content ingesting and / or processing device can communicate with other content processing devices, to ascertain the state of those devices, detect desynchronization between devices, and seamlessly synchronize encoding devices as determined necessary, by the inserting or removal of one or more content frames.

[0014] A centralized controller, such as a dedicated module implemented as part of the encoders, may assist in synchronizing states in some embodiments (thus either reducing or eliminating the need for an encoder itself to monitor or enforce synchronization state). In particular, during encoding, the centralized controller can gather state data regarding the content being encoded or output by encoders within the pool. The state information may consist of any information regarding encoder functioning, including any sort of identifier such as timecodes and / or timestamps (or even the video content itself), which are time values encoded into content streams by a recording devices, such as a digital video recorder. The encoders can then detect desynchronization events between encoders, based on differences in the obtained state data. Where a desynchronization is found to have occurred, the state information is utilized as part of the frame insertion or deletion techniques herein to regain encoder pool synchronization, such that the desynchronized output content stream is interchangeable with content streams provided by other encoders in a pool. As will be discussed, in some embodiments, if a resynchronization is scheduled for an odd-numbered frame, that is when action is taken to drop or repeat frames, ensuring consistency across encoders, including those of the lower frame rate variety.

[0015] An existing content resynchronization approach (“output locking”) strictly requires the input frame rate and output frame rates to be integer multiples or fractions of each other, as part of Frame Rate Conversion (“FRC”) algorithms passing an input timecode to multiplexers to determine whether or not pooled encoders are synchronized. Based on an input timecode, it can be determined that a synchronization disruption has occurred between at least two encoder nodes in a given pool on a network. As is known by now in the art, a realignment algorithm can insert a PTS discontinuity to resynchronize the encoders. This feature may be used to implement redundant live streaming workflows and to perform large encoding jobs that cannot fit on a single encoder or distributed computing deployment instance.

[0016] Another of the shortcomings of output locking is that it does not handle the FRC process well. In some FRC configurations, FRC will drop every other frame. If output locking introduces a one-frame discontinuity, this causes at least three problems. Firstly, the high frame rate and low frame rate renditions will be out of phase by an input frame. Secondly, the low frame rate renditions could also be desynchronized by an input frame across encoders. Thirdly, if dynamic advertisement insertion is enabled, and an encoder receives a request to insert an ad marker, the encoder will need to either split a segment or apply the ad marker at a segment boundary. The encoder must make the same segmentation decision for all renditions, otherwise segment numbers will not be aligned across renditions, introducing “segment drift”. This is a challenge since renditions are possibly out of phase. And providers, especially those whose workflows involve dynamic insertion of advertising in content (typically marked via the SCTE-35 standard to commence on a specific content frame), do not want their systems to get into a state where they are constantly issuing resynchronization commands, trying to resynchronize two encoders which can never be aligned.

[0017] In contrast, described herein are various content streaming systems and methods including a content ingestor to receive streaming content (e.g., from a live content source), a pool of at least two content encoders configured to encode that streaming content and communicate with each other during the process, and a content packager configured to package the encoded content (received from the content encoders) and provide the packaged content to content output devices, such as such as client computing devices, televisions, or radios, or to content distribution systems, such as network-based systems and / or television networks.

[0018] While examples are provided herein with respect to redundant content encoders, embodiments of the present disclosure may be also implemented with respect to cooperative content encoders, such as content encoders that provider interchangeable, but not identical, content streams. For example, aspects of the present disclosure may enable synchronization of a first content encoder operating to encode content into a first format (e.g., standard definition, or “SD”) and a second content encoder that operates to encode content into a second format (e.g., high definition, or “HD”). Thus, content packagers, output devices, or distribution systems may be enabled to interchangeably utilize either format of content stream without interruption. Advantageously, the use of multiple encoders to encode content into different and interchangeable formats can allow greater variety of available formats than would be possible to encode on a single encoder and / or may reduce the computing resources needed to individual encoders (e.g., enabling the use of lower cost, commodity-grade hardware to encode content rather than more expensive, specialized hardware).

[0019] As will be appreciated by one of skill in the art, in light of the present disclosure, the embodiments disclosed herein improve the functionality of computing systems, such as content streaming systems, to deliver content to users in a resilient and / or cooperative manner. Specifically, aspects of the present disclosure improve the ability of content streaming systems to utilize redundant or cooperative encoding devices while allowing for seamless transition between the outputs of such devices, even in instances where transmission losses or errors occur. Moreover, the presently disclosed embodiments address technical problems inherent within computing systems; specifically, the unreliability of non-redundant systems, the limited ability of a single device to encode content according to a variety of formats or parameters, the inherently unsynchronized nature of multiple systems, the difficulty in establishing synchronization in such systems (particularly in the context of live streams), and the inherent potential for inconsistency when transmitting content (particularly streaming content) to multiple devices (e.g., due to the potential for “dropped” content at one, but not all, devices). These technical problems are addressed by the various technical solutions described herein, including the use of content encoding devices for achieving synchronization according to a synchronization protocol (alone or with the assistance of a synchronization controller), utilizing the protocol to establish synchronized encoder states and generate identical or interchangeable encoded content. Thus, the present disclosure represents an improvement on existing content streaming systems and particular, as well as general, computing systems. These advantages, and many of those attendant to the present disclosure, will become more readily appreciated as the same become better understood by reference to the following, when taken in conjunction with the accompanying drawings.

[0020] FIG. 1 is a block diagram depicting an illustrative network environment 100, in which various systems and methods hereunder may be practiced, including multiple content output client devices 102, content providers 104, and content distribution systems 120 in communication with a streaming content delivery system 110 via a network 106. While the content output devices 102, the content providers 104, and the content distribution systems 120 are shown as grouped, the content output devices 102, content providers 104, and content distribution systems 120 may be geographically distant and independently owned or operated. For example, the content output devices 102 could represent a multitude of devices in various global, continental, or regional locations accessing the content streaming system 110. Further, the content providers 104 could represent a multitude of related or distinct parties which have associated with the content streaming system 110 to provide streaming content to the content output devices 102. And the content distribution systems 120 can represent a multitude of related or distinct parties enabling distribution of content from the content streaming system 110 to the content output devices 102. Any one or more of the content streaming system 110, content output devices 102, content providers 104, or content distribution systems 120 may be operated by a common entity, or by a common computing device. Accordingly, the groupings of content output devices 102, content providers 104, content streaming system 110, and content distribution systems 120 within FIG. 1 is intended to represent a logical, rather than physical, grouping. Similarly, each of the components of the content streaming system 110 may be located within geographically diverse areas.

[0021] As discussed herein, network 106 may be any wired network, wireless network, or combination thereof. In some instances, network 106 may be a telecommunications network, such as a personal area network, local area network (“LAN”), wide area network (“WAN”), cable network, a virtual private network, the internet, an intranet, an extranet, a public switched telephone network, an infrared network, a wireless network, a satellite network, cellular telephone network, or any combination thereof, potentially operating via the internet protocol (“IP”). In other instances, the network 106 may be or may include other network types, such as television networks. In the example environment of FIG. 1, network 106 is a global network such as the internet. Protocols and components for communicating via these types of networks are well known to those in the electronic communications art and need not be described in detail herein. While each of the content output devices 102, content providers 104, content distribution systems 120, and content streaming system 110 is depicted as having a single connection to the network 106, individual components of the content output devices 102, content providers 104, content distribution systems 120, and content streaming system 110 may be connected to the network 106 at disparate points. Accordingly, communication times and capabilities may vary between these components. While shown in FIG. 1 as a single network, the network 106 may represent different networks interconnecting the different components. For example, the network 106 may represent a first network (e.g., the internet) that interconnects the content streaming system 110 and the content distribution systems 120, and a second network (e.g., a television broadcasting network) that interconnects the content distribution system 120 and the content output devices 102.

[0022] As noted herein, content output devices 102 may include any number of different client or user devices configured to output content from the content streaming system 100 (e.g., directly or via the content distribution systems 120). For example, individual content output devices 102 may correspond to computing devices, such as a laptop or tablet computer, personal computer, wearable computer, server, personal digital assistant (“PDA”), hybrid PDA / mobile phone, mobile phone, electronic book reader, set-top box, camera, digital media player, and the like. As a further example, individual content output devices 102 may correspond to televisions or other output devices (e.g., which may or may not include or correspond to computing devices). Each content output device 102 may include hardware and / or software enabling the reception and output of streaming content, including dedicated playback hardware, dedicated software (e.g., specially-programmed applications), and general purpose software (e.g., web browsers) capable of outputting streaming content (e.g., by downloading the content directly or downloading a web page including the content).

[0023] Content providers 104 may include any computing device owned or operated by an entity providing content to the content streaming system 110 for subsequent transmission to content output devices 102. For example, content providers 104 may include servers hosting streaming video or may include recording devices transmitting content to the content streaming system 110 (e.g., digital video recorders).

[0024] Content distribution systems 120 can include any computing device owned or operated by an entity that assists in delivery of content from the content streaming system 110 to the content output devices 102. Illustratively, the content distribution systems 120 may include network-based content delivery networks (“CDNs”) providing a geographically diverse set of points of presence (“POPs”) from which content output devices 102 may obtain and output content. As a further illustration, the content distribution systems 120 may include distribution points in traditional networks, such as a television station, cable provider station, etc. The content distribution systems 120 may further employ a content synchronization controller (not shown) to automatically conduct analyses and facilitate synchronizations contemplated herein and may employ one or more software modules or functions handling such tasks. One or more components can also lookup information in a user data store or other such location to determine whether a given user has access rights to certain streaming content.

[0025] The content streaming system 110 can include a variety of components and devices configured to process streaming content obtained from a content provider and make the processed content available to the content output devices 102 and / or the content distribution systems 120. Specifically, the content streaming system 110 can include a content ingestor 111 configured to obtain a stream of content (e.g., live content) from a content provider 104 and to provide that content to a pool 112 of content encoders 114 for encoding. The content provided to the content ingestor 111 may be in “raw,” uncompressed, or analog format, or in a format otherwise required to be “encoded” prior to delivery to the content output devices 102. Accordingly, the content ingestor 111 may pass the stream of content onto one or more content encoders 114, which can encode the content into one or more formats accepted by the content distribution systems 120 or the content output devices 102. While the term “encode” is used herein to discuss the processing of the content encoders 114, use of this term is not intended to limit that processing to conversion of analog to digital formats; rather, the content encoders 114 may in some instances process digital content to convert that digital content into another digital format (sometimes referred to as “transcoding”), and the term “encode” herein encompasses such conversions. As discussed, in order to provide redundant or cooperative encoding of content (e.g., to provide resiliency or adaptive-quality streaming), multiple content encoders 114 are configured to encode the stream of content received from the content ingestor 111 according to the same or interchangeable parameters.

[0026] In accordance with the present disclosure, to ensure the interchangeability of content output by the content encoders 114, one or more components may act (including through the use of a video synchronization module potentially included as part of each encoder 114) as a controller in order to determine an authoritative encoding state for the pool 112 and issue resynchronization commands to one or more of the encoders 114 as may be determined necessary. The term “video synchronization module,” as used herein, is to be construed broadly and encompasses the use of any number of synchronization modules to accomplish one or multiple tasks such as output locking (i.e., aligning outputs of encoders such that failover between the two is seamless) and synchronization of audio and video. In this vein, each encoder 114 may periodically communication with, and receive state information from, each of the other encoders 114 and use, in connection with the video synchronization module, received state information to detect whether any encoder 114 has become desynchronized. In the event that an encoder 114 has become desynchronized, instructions can be generated and transmitted to the desynchronized encoder 114 to re-establish synchronization. In some instances, either or both of the ingestor 111 and the encoders 114 may be configured to receive and respond to requests. For example, when an encoder 114 joins the pool 112, the encoder 114 may be configured to transmit a request for state information to either, or both of, the ingestor 111 and the other encoders 114 of the pool 112, and to synchronize its own state with the determined authoritative state.

[0027] More particularly, in a “peer-to-peer” sort of configuration, the content encoders 114 may themselves be configured to detect potential desynchronizations between content encoders 114 within the pool 112, and to utilize a synchronization protocol to exchange state information, enabling the content encoders 114 to reestablish synchronization and thus provide interchangeable outputs. In one illustrative embodiment, each encoder 114 within the pool 112 can be configured to include video synchronization modules, as discussed herein, and periodically transmit information regarding its encoding state to each other encoder 114. On receiving an encoding state from another encoder 114, a receiving encoder 114 can verify that the received encoding state matches (e.g., is interchangeable with) its own state. In the instance that a received encoding state does not match the current state of an encoder 114, the encoder 112, such as via its video synchronization module, determine whether the received state should be considered authoritative (indicating that its own state has become desynchronized from the pool 112) and if so, modify its output to resynchronize its state with that of the pool 112.

[0028] After encoding the content, each content encoder 114 may provide the encoded content to one or more content packagers 116, which may package the content into a container format accepted by the content distribution systems 120 and / or content output devices 102. The content packagers 116 can then distribute the content to the content distribution systems 120, which may, in turn, distribute the content to content output devices 102 for decoding and output (e.g., display). Additionally or alternatively, the content streaming system 110 may distribute the content directly to the content output devices 102. The content streaming system 110 may further store the encoded content within the content data store 119 (e.g., for archival purposes and / or for later transmission to the content distribution systems 120 and / or content output devices 102). The content data store 119 may correspond to any persistent or substantially persistent data storage, such as a hard drive (“HDD”), a solid state drive (“SDD”), network attached storage (“NAS”), a tape drive, or any combination thereof.

[0029] It will be appreciated by those skilled in the art that the content streaming system 110 may have fewer or greater components than are illustrated in FIG. 1. In addition, the content streaming system 110 could include various web services or peer-to-peer network configurations. In some embodiments, components of the content streaming system 110, such as the content ingestor 111, the content encoders 114, and the content packagers 116, may be executed by one or more virtual machines implemented in a hosted or “cloud” computing environment. A cloud computing environment may include one or more rapidly provisioned and released computing resources, with such resources being computing, networking communicating, and / or storage devices. In other embodiments, components of the content streaming system 110, such as the content ingestor 111, the content encoders 114, and the content packagers 116, may be implemented within an environment of a content provider 104 (e.g., on the premises of a content provider 104).

[0030] FIG. 2 depicts one embodiment of an architecture of a server 200 that may implement one or more of the content encoders 114. The general architecture of server 200 includes an arrangement of computer hardware and software components used to implement various aspects of the present disclosure. As illustrated, the server 200 includes a processing unit 204, a network interface 206, a computer readable medium drive 207, an input / output device interface 220, a display 202, and an input device 224, all of which may communicate with one another by way of a communication bus. The network interface 206 may provide connectivity to one or more networks or computing systems, such as the network 106 of FIG. 1. The processing unit 204 may thus receive information and instructions from other computing systems or services via a network. The processing unit 204 may also communicate to and from memory 210 and further provide output information for an optional display 202 via the input / output device interface 220. The input / output device interface 220 may also accept input from the optional input device 224, such as a keyboard, mouse, digital pen, and the like. Of course, the server 200 may include more (or fewer) components than those shown. For example, some embodiments of the server 200 may omit the display 202 and input device 224, while providing input / output capabilities through one or more alternative communication channel (e.g., via the network interface 206).

[0031] The network interface 206 layer can include any appropriate components known or used to receive requests from across a network, such as may include one or more APIs or other such interfaces for receiving such requests. The network interface 206 layer might be owned and operated by the provider, or leveraged by the provider, as part of a shared resource or cloud offering. The network interface 206 layer can receive and analyze requests and commands, and it may be capable of causing at least a portion of the information in requests and commands to be directed to an appropriate system, service, or component, including display driver hardware.

[0032] The memory 210 may include computer program instructions that the processing unit 204 executes in order to implement one or more embodiments. The memory 210 generally includes random access memory (“RAM”), read-only memory (“ROM”), and / or other persistent or non-transitory memory. The memory 210 can store an operating system 214 that provides computer program instructions for use by the processing unit 204 in the general administration and operation of the server 200. The memory 210 may further include computer program instructions and other information for implementing aspects of the present disclosure. For example, in one embodiment, the memory 210 includes user interface software 212 that generates user interfaces (and / or instructions therefor) for display upon a computing device, such as via a navigation interface such as an installed web browser. In addition, memory 210 may include or communicate with one or more auxiliary data stores, such as data store 120.

[0033] In addition to the user interface module 212, the memory 210 may include content encoder software 216 that can be executed by the processing unit 204. In some embodiments, the content encoder software 216 implements various aspects of the present disclosure, e.g., encoding content obtained from a content ingestor 111, while utilizing a synchronization protocol to ensure synchronization with other content encoders 114. While the content encoder software 216 is shown in FIG. 2 as part of the server 200, in other embodiments, all or a portion of the software may be implemented by alternative computing devices within the content streaming system 110, such as virtual computing devices provisioned within a cloud computing environment. Moreover, while FIG. 2 is described with respect to a content encoder 114, the software within the memory 210 may, additionally or alternatively, include instructions to implement other components of the present disclosure, such as the content ingestor 111.

[0034] With reference to FIG. 3, some illustrative interactions for synchronized encoding of streaming content by four encoders, labeled content encoders 114A through 114D, will be described. While these interactions will be described using four content encoders 114, the interactions may be similarly applied to any number of encoders. For these purposes, a scenario is described in which all content encoders begin to encode content in a synchronized manner, but in which a portion of the content stream transmitted to a single encoder is lost (e.g., due to malfunction with a network, such as dropped packets). The interactions enable the desynchronized encoder to resynchronize with the other encoders of the pool 112, even after loss of a portion of the content stream (which may not have been experienced at the other encoders). Illustratively, the various encoders 114A-D may provide enable either redundant or distributed content encoding within the content streaming system 110. By way of but one example, encoders 114A and 114B may be configured to encode content according to a first set of parameters (e.g., at 4K resolution and 60 fps), while encoders 114C and 114D could be configured to encode the same content according to a second set of parameters (e.g., at 1080p resolution and 30 fps). In some embodiments, an individual encoder 114 may be configured to encode multiple versions (or “renditions”) of content. For example, encoders 114C and 114D could, in addition to encoding the content according to the second set of parameters, also be configured to each encode the content according to a third set of parameters (e.g., at 480i resolution and 30 fps). Thus, any combination of encoders may be used to encode any combination of versions of a content item, with each encoder providing one or more redundant or cooperative encoded content streams.

[0035] In such an arrangement, it is desirable within the content streaming system 110 for the content output from the content encoders 114A-D to be identical or interchangeable. However, at least some aspects of content output by the encoders 114 may depend on the state of those encoders. For example, encoded video content often uses segments (such as groups of pictures or “GOPs”) to encode video. Each group of pictures can consist of at least one “independent frame” and one or more “dependent frames.” Each independent frame may be coded without respect to other frames of the video, such that decoding the independent frame does not depend on other frames within the video. Each dependent frame may be encoded based at least partly on other (e.g., previous) frames, such that decoding the dependent frame requires information regarding other frames. Generally, the arrangement of GOPs within encoded content (and thus the arrangement of independent or dependent frames) is determined by the encoder, independent of the content being input. If encoders 114A-D commence encoding the received content stream simultaneously, the placement of the GOPs within the output content stream can be expected to be the same, and thus, the content streams will be interchangeable. However, if one encoder 114, such as encoder 114C, does not receive some frames of the content, then its GOP alignment may deviate from the other encoders 114 (e.g., such that the frames lost at the encoder 114C are included in given GOP at the other encoders 114, while the encoder 114C instead includes in a corresponding GOP those frames occurring immediately after the lost frames). This may result in non-interchangeable content streams, since arrangement of independent or dependent frames varies between the streams. The interactions of the present disclosure address these deficiencies, by enabling synchronization of the encoders 114 within the pool 112.

[0036] For each encoder in a given pool 112, as will be appreciated by those skilled in the art, there will be a predetermined transcoding pipeline. At the outset of such, a demultiplexer will split input data into separate audio and video data. The separated audio and video then go through respective transcoding pipelines, after which they reunite via multiplexing and are outputted. The outgoing media is examined to ensure that the outbound segments align with the segments as handled by other encoders in a given pool. If a segment misalignment is detected, a resynchronization command is issued, propagating through the pipelines for each applicable encoder.

[0037] The early interactions relating to FIG. 3 (the stage labeled as “1” merely for identification purposes) begin when the content ingestor 111 receives content from a content provider 104. Illustratively, the content ingestor 111 may receive content from content providers 104 over the network 106 (e.g., via a user datagram protocol, or “UDP,” stream). In other embodiments, the content may be received directly from a capture device (e.g., a digital video recorder connected to the content ingestor 111 via a serial digital interface (“SDI”)). As noted, the content provided to the content ingestor 111 may uncompressed, analog, or in a format that is otherwise required to be “encoded” prior to delivery to the content output devices 102. At stage “2,” the content ingestor 111 passes the content as a stream to the encoders 114 of the pool 112, for encoding to start.

[0038] While it is assumed for the purposes of description of FIG. 3 that each of the encoders 114A-D begin encoding (stage “3”) the content stream at the same time, this is not required. Rather, where an encoder 114 begins encoding at a later point in time than other encoders 114, that encoder 114 may establish synchronization with the other encoders 114 via the mechanisms described herein (e.g., by waiting for state information to be received from other encoders 114 or a centralized controller, or by actively polling other encoders 114 or the centralized controller for that state information).

[0039] Illustratively, the content may be encoded in any number of formats, including, but not limited to, H.263, H.264, H.265, MICROSOFT SMPTE 421M (also known as VC-1), APPLE™ ProRes, APPLE Intermediate Codec, VP3 through 9, Motion JPEG (“M-JPEG”), MPEG-2 part 2, RealVideo, Dirac, Theora, and MPEG-4 Part 2 (for video), and Vorbis, Opus, MP3, advanced audio coding (“AAC”), pulse-code modulation (“PCM”), dedicated to sound (“DTS”), MPEG-1, audio coding 3 (“AC-3”), free lossless audio codec (“FLAC”), and RealAudio (for audio), or combinations thereof. As noted, locations in the content streams may be designated by identifiers such as timecodes. Various techniques for encoding content are known within the art, and therefore will not be described in greater detail herein.

[0040] The encoder-generated state information (stage “4”) can include any information required by the synchronization processes of the content encoder 114B, including GOP and timecode mapping data. In one embodiment, the utilized state information is historical, reflecting timecodes and GOP numbers already output by an encoder 114. In another embodiment, the state information is forward-looking, or a combination of historical and forward-looking, and includes at least one timecode, timestamp, and / or GOP mapping that has not yet been encoded by the encoder 114. In some instances, the state information may include other information regarding the encoder 114 or a stream, such as the parameters under which the encoder 114 is operating or parameters specific to a stream (fps, resolution, etc.). Assuming that the state information stems from a first encoder 114A, another encoder 114 can verify synchronization with the encoder 114A using the information in the stream. Specifically, in this example, if an encoder 114 has (or will) apply the same GOP number to content at a given input timecode, then the encoder 114 is expected to produce content interchangeable with that produced by encoder 114A.

[0041] The state information generated at an encoder 114 can be shared with the content ingestor 111 and / or any or all other encoders 114 in the pool 112. Illustratively, each encoder 114 may be configured to generate the state information periodically, such as every n seconds or frames during encoding. In one embodiment, the encoders 114 transmit the state information to each other using a multicast transmission. In another embodiment, the encoders 114 communicate state information directly or by use of a messaging service (not shown) configured to either “push” messages or allow the receivers to periodically “pull” messages from the service.

[0042] It is determined whether the state information indicates that a desynchronization has occurred in the encoder pool 112, with some illustrative embodiments applying a content ingestor 111, having a video synchronization module, to make such determination. As noted, desynchronization can refer to a situation in which the state information of an encoder 114 does not match or correspond to the authoritative state information, as may occur when frames have been dropped by or not received at the encoder 114. Again, desynchronization events can occur for a variety of reasons, such as loss of data in transmission to one, but not all, of the encoders 114, errors in operation of an encoder 114 (e.g., due to an overtaxed central processing unit (“CPU”)), crashes, software problems, and the like. In particular, the occurrence of a desynchronization event can be determined based, at least in part, on one or more timecode differences between video content, as being processed by two encoders 114 in the pool 112.

[0043] In some embodiments, content encoders 114 may be configured to transmit state information in response to detecting an anomaly in that information. These transmissions may occur either in addition to or alternatively from transmitting state information periodically. Illustratively, an encoder 114 might detect an anomaly in state information by comparing actual encoding values to those expected. Similarly, an encoder 114 may detect that a segmentation boundary appears at unexpected location (e.g., due to dropped frames or a forced boundary insertion by the content ingestor 111 or other component) and flag the unexpected location as indicative of an anomaly. When an anomaly is detected, the encoder 114 can transmit state information to other encoders 114, which may utilize the state information to resynchronize, if necessary. In some instances, when an anomaly is detected, an encoder 114 may request state information from other encoders 114, in order to determine whether the state of the encoder 114 after the detected anomaly matches an authoritative state of the pool 112. In embodiments where a central controller is used, the encoder 114 may transmit its state information to the central controller on detection of an anomaly, and the central controller may act to determine whether that state information is authoritative. If so, the controller can propagate the state information to relevant encoders 114 (e.g., those that the controller believes have a state other than the authoritative state). If not, the controller can transmit instructions to the encoder 114 that detected the anomaly to resynchronize to the encoder pool 112. Because a controlling ingestor and / or module can maintain the state of each encoder 114 in the pool 112, it may be unnecessary for the encoders 114 to transmit state information among themselves or even to the controller, other than in instances of detected anomalies. The reduction in network communications would likely improve the efficiency of a given system.

[0044] Illustratively, in embodiments where a controlling ingestor or synchronization module is not used, an encoder 114 can determine that it has become desynchronized when received state information does not match its own state (e.g., where received state information indicates that another encoder 114 has applied a different GOP number to the same input timecode) and when the encoder 114 determines that the received state information is more authoritative than its own state. As used herein, authoritative state information generally refers to state information that is “correct” and thus should be adopted by the encoders 114 of the pool 112. Each encoder 114 may be configured to identify authoritative state information in the same manner, such that, under the same conditions, each encoder 114 will identify the same state information as authoritative. Any number of consistency-ensuring protocols can be utilized to identify authoritative information and ensure consistency among the pool 112. For example, each encoder 114 may be configured to identify the “oldest” state information—applying the earliest timestamp or largest GOP number to a given timecode—as authoritative. In another embodiment, the encoders 114 may utilize a quorum-oriented protocol, such that the state information shared by at least a quorum (e.g., more than half) of the encoders 114 is determined to be authoritative.

[0045] Based on content encoder 114 state information, one or more content streams may be selected for updating, meaning resynchronizing as contemplated herein, by insertion of at least one frame into the update stream or deletion of at least one frame from the selected update stream. As noted, prior schema can cause FRC drops every other frame, by not precisely aligning timecodes and permitting streams to be one frame apart, yet wrongly considered synchronized. In other words, if the two content encoders 114 become out of sync by a full frame, such encoder misalignment previously could not be rectified satisfactorily. The present systems and methods may still insert short segments and PTS discontinuities in the course of updating a stream, but only do in the course of dropping or repeating a small number of frames. Alternatively, some illustrative embodiments avoid short segments and discontinuities entirely and simply drop or repeat frames in the update stream, as determined necessary, prior to encoding to realign encoders 114 whose output is not synchronized. This eliminates the fractional frame phase offset and resolves the segment drifting problem, while working with as many encoders 114 as desired.

[0046] As discussed herein, one or more dedicated video synchronization modules are employed in some illustrative embodiments, which are responsible for tasks such as ensuring that the outputted content has a constant fps number and is well-timed, even for a given “noisy” or otherwise problematic input, with such entailing dropping and repeating frames as necessary. In various embodiments, the video synchronization module has, among other things, PTS-type frame counting capability, incrementing the count, for example, as frames are output. When a desynchronization has occurred, the video synchronization module generates a resynchronization command and transmits same to one or more content encoders. In this fashion, the module ensures that the encoders 114 within the pool 112 provide identical or interchangeable outputs.

[0047] The resynchronization command, generally speaking, can include instructions to the selected out-of-sync encoder 114 to resynchronize to the pool 112, as well as information enabling that resynchronization. In one embodiment, the information enabling resynchronization is a set of correct output values for the errant encoder 114 calculated by the content ingestor 111 according to criteria provided herein, such that the encoder 114C is not itself required to conduct the calculations. In some instances, a resynchronization command may further include a timecode at which the content encoder 114C is to resynchronize. More specifically, the resynchronization command may be issued with an input timecode, and the command propagates to the video synchronization module, which is responsible for tasks including ensuring that video output has a constant fps number and is well-timed, with such entailing dropping and repeating frames as necessary. More particularly, in some illustrative embodiments, the video synchronization module can include a frame synchronization component which, applying a clock, focuses on the pace of the output video. Thus, by utilizing the state information, a desynchronized encoder 114 can be instructed to resynchronize its output with the remaining encoders 114 within the pool 112, ensuring output of interchangeable encoded content.

[0048] Following generation of a resynchronization command, calculations, at the controlling module level and / or based on the PTS count for a current input frame in conjunction a with known total output frame count, may determine whether a resynchronization should be applied to a given frame. One or more timecode-driven algorithms can identify whether a resynchronization would knock, for example, a 30 fps rendition out of phase by at least one frame, and, if so, action may automatically be taken to drop or repeat at least one frame to ensure proper alignment (i.e., seamless presentation) of the content output by the encoder pool, including SCTE-35 implementations. The resynchronization command input time code is translated to a synchronized PTS value, which will fall on an even frame or odd frame. Resynchronizations hereunder may be applied only to even-numbered content frames. If the synchronized PTS value falls on an odd frame, one or more algorithms perform at least one frame synchronization internal buffer state examination. Over time in cases of clock drift, if an underflow is detected, frames are repeated, whereas frames are dropped in the event of frame synchronization clock overflow. As will be appreciated by those skilled in the art, any of various calculations may be performed to examine depth of the buffer, for repeating or dropping, and take the repeat or removal action necessary to optimizing encoder 114 video flow for a steady output state. Because the present algorithms take the frame synchronization buffer into account, they reduce the number of frame drops and repeats, which, in turn, reduces the number of resynchronizations. It should be well-noted, though, that, while the terms “odd” and “even” are used herein for convenience in connection with frames and their rates, other classification scenarios are possible.

[0049] Multiple frames can be dropped and / or repeated as necessary, even without the use of PTS discontinuities, in which case all segments would be sized equally. Beneficially, such simplifies the output locking issue, as a provider need not give special treatment, during testing or a live deployment, to short segments and PTS discontinuities emitted by an output-locked encoder. For the avoidance of doubt, the present systems and methods may be applied with a myriad of frame rates and combinations, and there could be more than two frame rates involved in any given instance of frame dropping or repeating. That said, frame rates which are integer multiples of each other can provide more consistent results. By way of example, by dropping or repeating one frame, it effectively shifts the phase of the 30 fps rendition, such that it goes from out of phase by a frame to a proper alignment with the 60 fps rendition.

[0050] Segmentation boundaries generally refer to boundaries between time-based logical divisions of encoded content, such as, in the video context, boundaries designating the alignment of GOPs within a video stream. The present synchronization of encoded content may require, for example, synchronization of segmentation boundaries within the content. For example, with respect to video content, segmentation boundaries may designate the transition between a first GOP and a second GOP, with each group of pictures representing a collection of video frames that are collectively encoded, or may designate collections of GOPs. Segments commence on a GOP boundary, and a first GOP frame will be an Instantaneous Decoder Refresh. (“IDR”) frame type, which is known in the art and permits decoding without system knowledge about any previous frames. GOPs and their duration sizes are configurable, including by downstream content providers when setting advertisement insertion markers.

[0051] Additionally or alternatively, synchronization of encoding may require synchronization of timestamp values within encoded content. A timestamp generally refers to a time value encoded into a content stream by an encoding device, which may be used to facilitate decoding or presentation of the content. Timestamp values may have a relatively high resolution (e.g., 10 million values per second, often synchronized to a system clock of an encoding device), and thus facilitate highly accurate playback. However, unlike timecode values (which are generally encoded into content by a recording device), timestamp values are often determined independently at an encoder. Because timestamp values can be utilized by downstream devices (e.g., a content packager or a content output device), differences therein can result in erroneous, uneven, or unsynchronized packaging or playback. Thus, to enable seamless transition between encoded content streams at a content package, each content encoder 114 could be required to maintain synchronized timestamp values. Accordingly, the content encoders 114 disclosed herein can be configured to utilize a synchronization protocol that, on initialization of an encoder 114, enables the encoders 114 to receive state information from a reference encoder (e.g., that has previously operated to encode content) and utilize the state information to synchronize its own state, including its own timestamp. The encoder 114 can then begin encoding in a synchronized manner. In this manner, the encoders 114 can provide truly interchangeable content streams to a content packager, thus providing redundancy and resiliency in the content streaming system.

[0052] In some embodiments, if an encoder 114 has become desynchronized, that encoder 114 can utilize the authoritative state information in order to resynchronize its content output. Illustratively, a content encoder 114 can utilize the authoritative state information to determine segmentation boundaries for its own encoded content and to use those segmentation boundaries for the content. The size of each GOP is generally dependent on the configuration of an encoder 114, and the output of identical or interchangeable content can be dependent on use of the same segmentation boundaries. By utilizing authoritative state information, an encoder 114 can determine where a next GOP segment should begin.

[0053] While the interactions herein, including those of FIG. 3, are described under conditions in which an encoder 114 begins in a synchronized state, but later becomes desynchronized, the same or similar interactions may be utilized to enable an encoder 114 to conduct an initial synchronization (e.g., when the encoder 114 begins encoding content at a later time than other encoders 114 of the pool 112). For example, when an encoder 114 receives instructions to begin encoding a content stream, the encoder 114 may delay that encoding until state information is received from an ingestor 111 with controlling authority or from one or more other encoders 114. The encoder 114 may then determine authoritative state information, if need be, and synchronize its own state pursuant to the present disclosure. An encoder 114 may passively await state information, by waiting until the other encoders 114 initiate transmission of the state information, or may actively solicit state information in the instance that the other encoders 114 are configured to receive and respond to requests for state information.

[0054] The above-discussed interactions continue such that the encoders 114 within the pool 112 transmit their encoded content to the content packagers 116. Thereafter, the content packagers 116 may package the content into a container format accepted by the content distribution systems 120 and / or content output devices 102. As will be recognized by one of skill in the art, a container format may combine encoded video and audio into a file, potentially along with synchronization information, subtitles, metadata, or other information. Examples of containers include, but are not limited to, Matroska, FLV, MPEG-4 Part 12, VOB, Ogg, Audio Video Interleave (“AVI”), Quicktime, Advanced Systems Format (“ASF”), RealMedia, and MPEG Transport Stream (“MPEG-TS”). In at least one embodiment, content packagers 116 may package the content into multiple container files, such as multiple transport stream files, and generate additional information enabling distribution systems 120 and / or content output devices 102 to distribute or consume the packaged content. For example, the content packagers 116 may package the encoded content according to streaming protocols, such as Hypertext Transport Protocol (“HTTP”) Live Streaming (“HLS”) or MPEG Dynamic Adaptive Streaming over HTTP (“MPEG-DASH”), and generate metadata regarding the encoded content, such as manifest file identifying each package of encoded content.

[0055] After packaging the encoded content, those streams may be provided or made available for access. Namely, the content packagers 116 can distribute the content to one or more of the content output devices 102, the content distribution systems 120 (which may in turn distribute the content to content output devices 102 for decoding and output), and the content data store 119 (e.g., for archival purposes, for later transmission to the content distribution systems 120 and / or content output devices 102).

[0056] While the interactions relating to FIG. 3 are generally described sequentially, it is contemplated that some or all of the interactions may repeatedly occur and that these interactions may occur at least in part concurrently. And while the equations and description generally discuss frames of content, other units may additionally or alternatively be used. For example, where video content is interlaced, the equations above may be calculated with respect to video fields, rather than video frames. Moreover, while the description above generally discuss GOPs and video segments as synonymous, this may not be true for all embodiments. For example, some embodiments may utilize multi-GOP video segments. In such embodiments, references to “GOPs” in the description herein can be understood to refer to “video segments.”

[0057] With reference to FIG. 4, one representative routine 400 that can be implemented to encode content synchronously among encoders in a pool is depicted. The routine 400 may function as a “while” loop, running continuously while content is being encoded. Although described in FIG. 4 as a single routine, it is possible to implement the routine 400 as a series of sub-routines, executed at least partly in parallel. Hence, the ordering of operations within the routine 400 is intended to be merely illustrative in nature.

[0058] The routine 400 begins at block 402, where the system, possibly by a controlling video synchronization module or one or more selected encoders in a pool of at least two encoders, determines whether video content is currently being encoded or at least ready for encoding. If so, at block 404, a first content stream is obtained or received by a first encoder in the pool, and a related second content stream is obtained or received, at block 406, by a second encoder. Locations in both the first and second streams are designated by respective timecodes and / or other identifiers. This example routine 400 continues at block 408, where the controller, or at least one encoder, obtains state information about the encoders in the pool. In one embodiment, the controller passively receives the state information from the encoders. In another embodiment, the controller may actively query encoders for the state information.

[0059] At block 410, it is determined, based at least in part on the obtained encoder state information and in accordance with the present disclosure, whether a desynchronization event has occurred within the encoder pool. Illustratively, the determination that a desynchronization could be made where the state information of various controllers indicates that encoded content is not identical or interchangeable (e.g., where the same timecode of content has been assigned different timestamps or where segmentations boundaries differ between the content). In other words, the occurrence of a desynchronization event can be based at least in part on one or more differences in the timecodes of the first and second streams. As described, any number of constituency-ensuring algorithms may be utilized to determine an authoritative state among differing encoder state information.

[0060] If a desynchronization has indeed occurred, this representative routine 400 continues to block 412, where one of the current streams (i.e., the first or second content streams here) is selected, by the controller or one or more of the encoders, for updating. The routine 400 then continues to block 414, where resynchronization instructions are generated for, and transmitted to, the encoder processing the stream which was selected for updating. Illustratively, the resynchronization instructions can include a command to resynchronize, as well as state information and other data usable to that end. As discussed herein, the resynchronization will involve at least the insertion of at least one frame into the update stream or removal of at least one frame from the update stream. At block 416, the resynchronized streams are provided for access, such as being made available to content providers for broadcast to client devices.

[0061] All of the methods and processes described above may be embodied in, and fully automated via, software code modules executed by one or more computers or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other computer storage device. Some or all of the methods may alternatively be embodied in specialized computer hardware, including by firmware.

[0062] FIG. 5 depicts an illustrative visualization 500 of where the outputs of two different encoders 114 may be synchronized, per the systems and methods hereunder, following a streaming discontinuity such as frame loss. Each depicted time axis 505 reflects the output PTS timeline, as opposed to input timecodes. First 510 and second 520 encoders, “Encoder 1” and “Encoder 2,” may begin encoding video content at a first point in time, represented as timecode “00:00:00:00” (0 hours, 0 minutes, 0 seconds, and 0 frames). Each encoder may begin with the same or interchangeable parameters (the same initial timestamp, the same GOP size, etc.). Both Encoder 1 510 and Encoder 2 520 may generate state information and share the respective state information with each other.

[0063] In FIG. 5, both encoders encode content synchronously for the first GOPs, until a frame input timecode discontinuity 530 occurs in Encoder 2's stream. The encoders can determine that Encoder 2 520 has become desynchronized (by virtue of its timecode state information differing from authoritative state information) and transmit a resynchronization command to Encoder 2 520. If this desynchronizing event 530 is, say, an eleven (11) frame input timecode discontinuity, prior techniques result in output locking insertion of an eleven (11) PTS discontinuity at rectification point 540, but, in doing so, not yield a seamless stream from Encoder 2. As discussed herein, the resynchronization command will entail dropping or repeating one or more frames. If the lowest output frame rate is half the input frame rate (e.g., 30 fps from a 30 6 ps input), in line with options arising under the present disclosure, output locking will ensure all resynchronization discontinuities are an integer multiple number of the input rate (continuing the example, a multiple of 30 fps being an even number of 60 FPS frames): repeat frame 00:00:05:59 and insert a 10 frame PTS discontinuity; remove frame 00:00:05:59 and insert a 12 frame PTS discontinuity; or repeat frame 00:00:05:59 11 times and insert 0 frame PTS discontinuity (the lost-frame repeating option which is the action taken at depicted point 540). The encoders may then resume synchronous encoding at the beginning of GOP 4 (timecode 00:00:08:00).

[0064] As noted herein, and illustrated in FIG. 6, the systems and methods include the use of electronic computing devices 600, including client devices, which can include any appropriate device operable to send and receive requests, messages, content, data, or other information over an appropriate network and convey information back to a user of the device. While a portable client computing device 600 is illustrated for purposes of this example, it should be emphasized that any of various other types of personal computers and computing devices can be utilized to process and display the content as well, as may include a tablet computer, a smart phone, a desktop computer, a notebook computer, a laptop computer, a personal data assistant (“PDA”), a handheld messaging device, a video gaming console, a television set top box, a wearable computer (e.g., a smart watch or glasses), or a portable media player, and the like. These devices 600 will execute an operating system and be capable of supporting at least one networking protocol and at least one messaging protocol.

[0065] In the FIG. 6 example, the computing device 600 has an outer casing 602 and a display screen 604. The display screen 604, under normal operation, will display information to a user (or viewer) facing the display screen (e.g., on the same side of the computing device as the display screen). In line with the disclosure herein, the device can internally include one or more communication components 606, such as may include a cellular communications subsystem, Wi-Fi communications subsystem, Bluetooth® communication subsystem, and the like. Such a device also can be in the form of workstations running any of a variety of commercially-available operating systems and other known applications for purposes such as development and database management. As noted, the networks handling communications can include any appropriate network, such as may include the internet, a LAN, a cellular network, and the like.

[0066] FIG. 7 shows some components of note for a computing device 700, including the client-type device illustrated in FIG. 6, which can be used to synchronize and / or display content to a user in accordance with various embodiments. While a sample portable smart device is depicted in FIG. 6, the computing device 700 in practice can be any appropriate device able to receive and process commands, content, and other data, such as a personal computer, laptop computer, television set top box, cellular phone, PDA, e-book reading device, video game system, or portable media player, among others. This example device 700 includes a display element 702, such as a liquid crystal display (“LCD”) or a touch-sensitive display screen, for displaying information to a user as known in the art. That said, devices such as portable media players might also convey information via other means, such as through audio speakers.

[0067] The computing device 700 may also include display driver hardware 706 and related image processing capabilities, including one or more image capture elements which could be in the form of, for example, a front-facing camera, a charge-coupled device (“CCD”), a motion detection sensor, or a radiation sensor, among many other possibilities. The example device 700 can also include a microphone or other such audio-capturing device. The device 700 in at least some embodiments can also determine various actions based upon sound detected by the microphone. The device 700 can store, or otherwise have access to, at least one algorithm to process and analyze content, as may be stored at least temporarily on the device itself, or it can send the content to be analyzed and otherwise processed by a remote computer or service. Any of a number of algorithms known in the computing art can be used to analyze content, apply rules, enhance the user interface, and the like. Various other options can be utilized as well as discussed and suggested herein.

[0068] In this example, the device 700 further includes one or more processors 708 for executing instructions that can be stored in a memory device or element 710. As known in the art, the device 700 can include many types of memory, data storage, or computer-readable media, such as a first data storage for program instructions for execution by the processor 708, a separate storage for images or data, a removable memory for sharing information with other devices, etc. In some embodiments, the device 700 can include at least one additional input device 712 able to receive conventional input from a user. This conventional input can include, for example, a push button, touch pad, touch-sensitive element used with a display, wheel, joystick, keyboard, mouse, keypad or any other such device or element whereby a user can input a command to the device 700.

[0069] Different components, such as one or multiple display drivers 706, can be used to render or otherwise display different portions of the content and related information on a client device. Each device driver 706 can be implemented via hardware and / or software and may include an integrated circuit (“IC”) or state machine that accepts commands from a processing component or interface and generates signals useful for displaying the desired content on the relevant portion of the display element(s). In at least some embodiments, a display driver 706 is a semiconductor IC that accepts commands over a general purpose interface, such as I2C, SPI, TTL, or CMOS, and generates signals with the appropriate current, voltage, and other properties for pixels of the appropriate display element. The display driver 706 in some embodiments can include memory, firmware, and other such elements. Factors such as screen size and font size may enable additional or fewer portions of a user interface and other content on the client display 702 to be updated as appropriate.

[0070] As discussed, the various embodiments of the present disclosure can be implemented in a wide variety of operating environments, which, in some cases, include one or more computing devices used to operate any of a number of applications. User or client devices can include any of a number of general purpose personal computers, such as desktop or laptop computers running a standard operating system, as well as cellular, wireless, and handheld devices running mobile software and capable of supporting a number of networking and messaging protocols. Such a system also can include a number of workstations running any of a variety of commercially-available operating systems and other known applications for purposes such as development and database management. These devices also can include other electronic devices, such as dummy terminals, thin clients, gaming systems, and other devices capable of communicating via a network.

[0071] Various aspects also can be implemented as part of at least one Web or other service, such as may be part of a service-oriented architecture. Services such as Web services can communicate using any appropriate type of messaging, such as by using messages in extensible markup language (“XML”) format and exchanged using an appropriate protocol like SOAP (derived from the “Simple Object Access Protocol”). Processes provided or executed by such services can be written in any appropriate language, such as the Web Services Description Language (“WSDL”). Using a language such as WSDL allows for functionality such as the automated generation of client-side code in various SOAP frameworks.

[0072] As noted, most embodiments utilize at least one network that would be familiar to those skilled in the art for supporting communications using any of a variety of commercially-available protocols, such as TCP / IP, FTP, UPnP, NFS, and CIFS. In embodiments utilizing a Web server, the Web server can run any of a variety of server or mid-tier applications, including HTTP servers, FTP servers, CGI servers, data servers, Java servers, and business application servers. The server(s) also may be capable of executing programs or scripts in response requests from user devices, such as by executing one or more Web applications that may be implemented as one or more scripts or programs written in any programming language, such as Java®, C, C# or C++, or any scripting language, such as Perl, Python, or TCL, as well as combinations thereof. The server(s) may also include database servers, including without limitation those commercially available from Oracle®, Microsoft®, Sybase®, and IBM®.

[0073] The environment can include a variety of data stores and other memory and storage media as discussed above. These can reside in a variety of locations, such as on a storage medium local to (and / or resident in) one or more of the computers or remote from any or all of the computers across the network. In a particular set of embodiments, the information may reside in a storage-area network (“SAN”) familiar to those skilled in the art. Similarly, any necessary files for performing the functions attributed to the computers, servers, or other network devices may be stored locally and / or remotely, as appropriate. Where a system includes computerized devices, each such device can include hardware elements that may be electrically coupled via a bus, the elements including, for example, at least one CPU, at least one input device (e.g., a mouse, keyboard, controller, touch screen, or keypad), and at least one output device (e.g., a display device, printer, or speaker). The system may also include one or more storage devices, such as disk drives, optical storage devices, and solid-state storage devices such as RAM and / or ROM, as well as removable media devices, memory cards, flash cards, etc.

[0074] Such devices also can include a computer-readable storage media reader, a communications device (e.g., a modem, a network card (wireless or wired), an infrared communication device, and the like), and working memory as described above. The computer-readable storage media reader can be connected with, or configured to receive, a computer-readable storage medium, representing remote, local, fixed, and / or removable storage devices as well as storage media for temporarily and / or more permanently containing, storing, transmitting, and retrieving computer-readable information. The systems and various devices also typically will include a number of software applications, modules, services, or other elements located within at least one working memory device, including an operating system and application programs, such as a client application or Web browser. It should be appreciated that alternate embodiments may have numerous variations from that described above. For example, customized hardware might also be used and / or particular elements might be implemented in hardware, software (including portable software, such as applets), or both. Further, connection to other computing devices such as network input / output devices may be employed.

[0075] Storage media and other non-transitory computer readable media for containing code, or portions of code, can include any appropriate media known or used in the art, including storage media and communication media, such as but not limited to volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules, or other data, including RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (“DVD”) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transitory computer-readable storage medium which can be used to store the desired information and which can be accessed by the a system device.

[0076] Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways and / or methods to implement the various embodiments. All of the specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. It will be evident that various modifications and changes may be made thereunto without departing from the broader spirit and scope of the invention as set forth in the claims.

Claims

1. A computer-implemented method, comprising:under control of one or more computer systems configured with executable instructions,receiving, by a first video encoder, a first live video content stream, wherein locations within the first live video content stream are designated by first timecodes;receiving, by a second video encoder in a first pool of encoders including the first video encoder, a second live video content stream, wherein locations within the second live video content stream are designated by second timecodes;obtaining, by the first video encoder or the second video encoder, the first timecodes and the second timecodes;encoding, by the first video encoder and the second video encoder, first timestamps into the first live video content stream and second timestamps into the second live video content stream, respectively, wherein the first timecodes and the second timecodes are distinct from the first timestamps and the second timestamps;determining, by at least one of a first video synchronization module in the first video encoder and a second video synchronization module in the second video encoder, and based at least in part on a difference between the first timecodes and the second timecodes, an occurrence of a desynchronization event indicating that one of the first video encoder and the second video encoder is desynchronized from the first pool of encoders, wherein the first video synchronization module and the second video synchronization module are to determine the occurrence of the desynchronization event independently of each other;selecting, from the first live video content stream or the second live video content stream, an update video stream, wherein the update video stream is selected based on at least a determination that timecodes from a quorum of other encoders in the first pool of encoders match one of the first timecodes or the second timecodes;generating, by the video synchronization module in the first video encoder or the second video encoder, a command to resynchronize the update video stream by insertion of at least one frame from the update video stream or removal of at least one frame from the update video stream;resynchronizing, based at least in part on the command, the update video stream based in part on first timestamps of the first live video content stream or the second timestamps of the second live video content stream; andproviding, for access, a first encoded live video content stream and a second encoded live video content stream which correspond to the first live video content stream and the second live video content stream and which are based in part on the update video stream.

2. The computer-implemented method of claim 1, wherein the command includes at least one timecode at which the update video stream is to resynchronize.

3. The computer-implemented method of claim 1, wherein the first video encoder and the second video encoder each include an interface through which to receive content, the interface being at least one of a serial digital interface (“SDI”) or a network interface.

4. The computer-implemented method of claim 1, wherein the encoded first live video content stream is a substantially 60 frames per second (“fps”) content stream and the encoded second live video content stream is a substantially 30 fps video stream.

5. A computer-implemented method, comprising:under control of one or more computer systems configured with executable instructions,receiving, by a first encoder, a first content stream, wherein locations within the first content stream are designated by first identifiers;receiving, by a second encoder in a first pool of encoders including the first encoder, a second content stream, wherein locations within the second content stream are designated by second identifiers;obtaining, by the first encoder or the second encoder, the first identifiers and the second identifiers, wherein the first identifiers and the second identifiers include time codes;encoding, by the first encoder and the second encoder, first timestamps into the first content stream and second timestamps into the second content stream, respectively;determining, by at least one of a first video synchronization module in the first encoder and a second video synchronization module in the second encoder and based at least in part on a difference between the time codes of the first identifiers and of the second identifiers, an occurrence of a desynchronization event indicating that one of the first encoder and the second encoder is desynchronized from the first pool of encoders, wherein the first video synchronization module and the second video synchronization module are to determine the occurrence of the desynchronization event independently of each other;selecting, from the first content stream or the second content stream, an update video stream, wherein the update video stream is selected based on at least a determination that identifiers from a quorum of other encoders in the first pool of encoders match one of the first identifiers or the second identifiers;resynchronizing the first content stream and the second content stream by insertion of at least one frame into the update video stream or removal of at least one frame from the update video stream and based in part on first timestamps of the first content stream or the second timestamps of the second content stream, wherein the first identifiers and the second identifiers are distinct from the first timestamps and the second timestamps; andproviding, for access, a first encoded content stream and a second encoded content stream which correspond to a first live video content stream and a second live video content stream and which are based in part on the update video stream.

6. The computer-implemented method of claim 5, wherein the resynchronizing maintains a constant segment size in the first content stream and the second content stream.

7. The computer-implemented method of claim 5, wherein the determination of a desynchronization event is made by at least one of the first video synchronization module and the second video synchronization module performing one or more actions based on the first timestamps or the second timestamps for a current video frame and a known total output frame count.

8. The computer-implemented method of claim 7, wherein the resynchronizing includes at least one command issued by at least one of the first video synchronization module and the second video synchronization module, the command specifying at least one timecode at which the resynchronizing is to commence.

9. The computer-implemented method of claim 5, wherein frame rates of the first content stream and the second content stream are integer multiples of each other.

10. The computer-implemented method of claim 5, wherein the resynchronizing includes an addition of at least one timestamp discontinuity into the update video stream.

11. The computer-implemented method of claim 5, wherein providing the first and second content streams for access includes outputting one or more containers generated in accordance with at least one of a Hypertext Transport Protocol (“HTTP”) Live Streaming (“HLS”) protocol or a MPEG Dynamic Adaptive Streaming over HTTP (“MPEG-DASH”) protocol.

12. The computer-implemented method of claim 5, wherein the first content stream is encoded in a standard definition video format and the second content stream is encoded in a high definition video format.

13. A system, comprising:at least one processor;a memory device including instructions that, when executed by the at least one processor, cause the system to:receive, by a first encoder, a first content stream, wherein locations within the first content stream are designated by first identifiers;receive, by a second encoder in a first pool of encoders including the first encoder, a second content stream, wherein locations within the second content stream are designated by second identifiers;obtain, by the first encoder or the second encoder, the first identifiers and the second identifiers, wherein the first identifiers and the second identifiers include time codes;encode, by a first video synchronization module in the first encoder or a second video synchronization module in the second encoder, first timestamps into the first content stream and second timestamps into the second content stream, respectively, wherein the first identifiers and the second identifiers are distinct from the first timestamps and the second timestamps;determine, by the first video synchronization module in the first encoder and the second video synchronization module in the second encoder, and based at least in part on a difference between the time codes of the first identifiers and of the second identifiers, an occurrence of a desynchronization event indicating that one of the first encoder and the second encoder is desynchronized from the first pool of encoders, wherein the first video synchronization module and the second video synchronization module are to determine the occurrence of the desynchronization event independently of each other;select, from the first content stream or the second content stream, an update video stream, wherein the update video stream is selected based on at least a determination that identifiers from a quorum of other encoders in the first pool of encoders match one of the first identifiers or the second identifiers;resynchronize the first content stream and the second content stream by insertion of at least one frame into the update video stream or removal of at least one frame from the update video stream and based in part on the first timestamps and the second timestamps associated with one or more frames of the first content stream or of the second content stream; andprovide, for access, a first encoded content stream and a second encoded content stream which correspond to a first live video content stream and a second live video content stream and which are based in part on the update video stream.

14. The system of claim 13, wherein the first content stream and the second content stream represent live streaming content.

15. The system of claim 13, wherein the first video synchronization module and the second video synchronization module determine the occurrence of the desynchronization event based at least in part on the first timestamps and the second timestamps.

16. The system of claim 13, wherein at least one of the first video synchronization module and the second video synchronization module includes a frame sync component and a clock configured to time the first content stream and the second content stream.

17. The system of claim 13, wherein a number of frames for addition to, or removal from, the update video stream is based at least in part upon a buffer value.

18. The system of claim 17, wherein the instructions, when executed, further cause the system to:examine a frame synchronization buffer to calculate, based at least in part on the buffer value, a number of frames to be added to, or deleted from, the update video stream.

19. The system of claim 17, wherein a frame number for the at least one frame inserted or deleted from the update video stream is an odd-numbered frame.

20. The system of claim 13, wherein the first content stream and the second content stream are segmented into groups of pictures (“GOPs”).

Citation Information

Patent Citations

  • Synchronization of multiple encoders for streaming content

    US10652292B1

  • Synchronization of multiple encoders for streaming content

    US10652625B1

  • Method and system for synchronization of adaptive streaming transcoder and packager outputs

    US11750865B1

  • Dynamic time synchronization

    US20120128061A1

  • System and method for providing alignment of multiple transcoders for adaptive bitrate streaming in a network environment

    US20140140417A1