Fault-Tolerant Live Video Streaming
The fault-tolerant cloud-based architecture with a redundant control unit addresses streaming disruptions by switching between transcoded streams, ensuring seamless playback and cost-effective operation without specialized hardware, thus enhancing user experience and reducing costs.
Patent Information
- Application Number
- JP2021566287
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-09
- Filing Date
- 2020-05-08
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-05-08
AI Technical Summary
Cloud-based live video streaming is prone to disruptions due to failures in components of the streaming delivery chain, leading to reduced user experience and increased costs for traditional redundancy solutions that require special hardware and software.
A fault-tolerant cloud-based architecture with a redundant control unit that switches between multiple transcoded video streams, modifying manifests to minimize disruptions and ensuring seamless playback without the need for special hardware or software at the video source.
The solution provides efficient fault tolerance in live video streaming, maintaining a high-quality user experience while reducing implementation and operational costs by utilizing off-the-shelf encoders and minimizing playback errors.
Smart Images

Figure 0007554775000005 
Figure 0007554775000006 
Figure 0007554775000001
Abstract
Description
[Technical field]
[0001] This application claims the benefit of priority to U.S. Provisional Patent Application No. 62 / 845,492, filed May 9, 2019, for fault-tolerant live video streaming, the entire contents of which are incorporated herein by reference. [Background technology]
[0002] Cloud-based live video streaming over the Internet may require a chain of communicatively coupled components configured to relay (and process) the live video from a video source (e.g., a camera) to a player (e.g., a media software application running on a computer, a mobile phone, etc.) that is viewed by an end user. However, failure of any component in the live streaming delivery chain may disrupt the viewing experience of the event and reduce the value of the live video to the video provider by reducing the quality of the user experience from the end user's perspective.
[0003] Conventional solutions have been shown to help reduce the chance of an interrupted viewing experience by providing redundant video streams and, when necessary, switching over a failed stream with an operational stream. However, such solutions often require special hardware and / or software at the video source and can be expensive to implement. Summary of the Invention
[0004] Embodiments herein overcome these and other problems by providing a fault-tolerant cloud-based architecture that includes a redundant control unit capable of switching between multiple transcoded video streams output by two or more transcoders. The redundant control unit may output a manifest from one of the multiple transcoded video streams and, upon detecting a failure in that stream, modify the manifest to switch to another one of the multiple transcoded video streams. The redundant control unit may further modify the manifest to flag discontinuities in the video stream, thereby allowing the player to switch to the new transcoded video stream without error. Other embodiments may include additional redundancy useful for providing additional fault tolerance. These embodiments may be significantly more cost-effective than traditional redundancy solutions because they do not require special hardware and / or software at the video source (e.g., the contribution encoders can be common off-the-shelf encoders).
[0005] An example method for providing fault-tolerant live video streaming according to the present specification comprises obtaining a first transcoded video stream from a first video transcoder and a second transcoded video stream from a second video transcoder, outputting a first manifest that provides a first output video stream using video segments of the first transcoded video stream, identifying a failure condition in the first transcoded video stream, and switching from providing the first output video stream using video segments of the first transcoded video stream to providing the first output video stream using video segments of the second transcoded video stream by updating the first manifest in response to identifying the failure condition.
[0006] An example system according to the present disclosure comprises a memory and one or more processing units communicatively coupled to the memory configured to: obtain a first transcoded video stream from a first video transcoder and a second transcoded video stream from a second video transcoder, output a first manifest that provides a first output video stream using video segments of the first transcoded video stream, identify a failure condition in the first transcoded video stream, and switch from providing the first output video stream using video segments of the first transcoded video stream to providing the first output video stream using video segments of the second transcoded video stream by updating the first manifest in response to identifying the failure condition.
[0007] An exemplary non-transitory computer-readable medium according to the present specification may include a processor that stores instructions that, when executed by one or more processing units, cause the one or more processing units to obtain a first transcoded video stream from a first video transcoder and a second transcoded video stream from a second video transcoder, output a first manifest that provides a first output video stream using video segments of the first transcoded video stream, identify a failure condition in the first transcoded video stream, and update the first manifest in response to identifying the failure condition, thereby switching from providing the first output video stream using video segments of the first transcoded video stream to providing the first output video stream using video segments of the second transcoded video stream. [Brief description of the drawings]
[0008] [Figure 1]FIG. 1 is a block diagram showing the overall structure of a modern cloud-based live video distribution chain. [Diagram 2] 2A-2C are diagrams of switching mechanisms that may be utilized in a fault-tolerant live video distribution system according to some embodiments. [Diagram 3] FIG. 1 is a block diagram of a fault-tolerant video distribution system with a post-transcoder switch according to one embodiment. [Figure 4] FIG. 1 illustrates an example of how a manifest can be modified to minimize player issues caused by switching from one video stream to another. [Diagram 5] FIG. 2 is a block diagram of an additional embodiment of a fault-tolerant video distribution system. [Figure 6] FIG. 2 is a block diagram of an additional embodiment of a fault-tolerant video distribution system. [Figure 7] FIG. 2 is a block diagram of an additional embodiment of a fault-tolerant video distribution system. [Figure 8] 8 is a flow diagram illustrating a method 800 for providing fault-tolerant live video streaming according to one embodiment. [Figure 9] FIG. 1 is a block diagram of one embodiment of a computer system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Like reference symbols in various figures indicate like elements according to a particular implementation. Also, multiple instances of an element may be designated by a first number of the element followed by a letter or a hyphen and a second number. For example, multiple instances of element 110 may be designated as 110-1, 110-2, 110-3, or 110a, 110b, 110c, etc. When such an element is referred to using only the first number, it may be understood to refer to any instance of the element (e.g., element 110 in the previous example may refer to elements 110-1, 110-2, 110-3, or elements 110a, 110b, 110c).
[0010] Several exemplary embodiments are described below with reference to the accompanying drawings, which form a part of this specification. Specific embodiments capable of implementing one or more aspects of the present disclosure are described below, but other embodiments can be used and various modifications can be made without departing from the spirit of the scope of the present disclosure or the appended claims.
[0011] Internet streaming is a model of continuous media delivery and playback that utilizes one of the existing chunked delivery protocols such as DASH[1], HLS[2], etc. Internet streaming can be used for the delivery of video originating from live or pre-recorded sources. Traditionally, streaming implementations have been mostly done on-premise, with all transcoding, packaging, and ad splicing operations being performed by dedicated hardware components. However, in recent years, the emergence of cloud platforms has changed this model, with more and more operations being performed in the cloud. As used herein, the terms "video feed" and "video stream" may be used interchangeably to refer to the video data of a video that can be used by a video player to ultimately enable the video to be played.
[0012] FIG. 1 is a block diagram illustrating the overall structure of a modern cloud-based live video delivery chain. In this diagram, the lines between components represent communication links from one component to the next. Those skilled in the art can appreciate that there may be many devices, networks, etc. used to provide this communication. The various entities involved in the video delivery chain (video publishers, cloud service providers, content delivery networks (CDNs), and user devices) may be communicatively connected, for example, via the Internet. Also, the various components illustrated in each block of FIG. 1 (video source 105, contribution encoder 115, cloud transcoder 125, etc.) may be executed by one or more computing devices, such as the computing devices described below (which may include and / or be integrated into a larger device, such as a media player, video camera, etc.).
[0013] The input video in this chain originates from a video source 105, which may be, for example, a production video camera shooting a live event. The output 110 from the video source 105 is provided to a contribution encoder 115, which converts the raw input format video (e.g., uncompressed video delivered over a serial digital interface (SDI)) into a format suitable for transmission of the video over the Internet. This format may include, for example, a Transport Stream (TS) stream, a TS stream + forward error correction (FEC), a real-time messaging protocol (RTMP), or a secure reliable transport (SRT) stream. As shown in FIG. 1, these parts of the video distribution chain may be performed by a video publisher.
[0014] Once formatted by the contribution encoder 115, its output 120 (e.g., a video stream formatted for transmission over the Internet) may be sent to a cloud service provider, which may first use a cloud transcoder 125 to transcode the input video stream into one or more output formats. The format of the output 130 of the cloud transcoder 125 may include, for example, Hypertext Transfer Protocol (HTTP) Live Streaming (HLS), Dynamic Adaptive Streaming over HTTP (DASH) format, and / or other chunked media delivery formats commonly used for CDN-assisted HTTP-based delivery. Also, in some embodiments, the output 130 of the cloud transcoder 125 may be modified by ad insertion processing logic and placed on an origin server 135, which serves as an input for CDN-assisted delivery.
[0015] The ultimate receiver of the live video stream is a player 110 running on a user device such as a personal computer (PC), mobile phone, tablet, or television, which uses a player 150 (e.g., a software application) to obtain chunks of the encoded stream from the CDN 145. The player 150 decodes the encoded stream and plays the decoded media on the device. For a particular live video stream, there may be many players 150 (tens, hundreds, thousands, etc.).
[0016] The failure of any component in the live streaming delivery chain (e.g., contribution encoder 115, cloud transcoder 125, origin server 135, etc.) may interrupt the viewing experience of the user of the user device executed by the player 150. This problem is well known in all video delivery models (broadcast, cable, over-the-top (OTT)). However, it is particularly difficult to solve in cloud-based OTT delivery due to the distributed nature of computing resources and the lack of control over the latency and quality of the connections between them. To ensure precise synchronization between different media streams, some solutions have been created utilizing proprietary hardware. However, achieving this precise synchronization is difficult, and as such such solutions are usually relatively expensive and computationally intensive, which can make them difficult to scale.
[0017] According to embodiments herein, these and other problems can be overcome by providing a fault-tolerant live streaming system. Fault tolerance is achieved, according to some embodiments, by utilizing multiple (redundant) instances of encoders, ad servers, and origin servers to perform live ingest, encoding, ad insertion, and delivery operations in parallel. If an instance delivering a current live stream becomes unavailable or unstable, the system may switch between redundant instances to enable continuous delivery of the video stream to user devices. Different embodiments may include different architectures and different methods of handling such switchover between encoders and origin servers to minimize discontinuities and quality of experience (QoE) impacts in such switchover cases. Practical advantages of the proposed system include, for example, superior reliability, low implementation and operational costs (thus improving scalability), and the ability to achieve results without modifying ingest workflows or imposing limitations on inputs.
[0018] In principle, a well-established approach to achieving higher fault tolerance in many practical systems relies on the introduction of redundancy. In the case of the system shown in Figure 1, redundancy may be introduced in the form of two or more contribution encoders 115, contribution feeds 120, cloud transcoders 125 (and corresponding ad insertion servers, if present), origin servers 135, and / or multiple CDNs 145. However, such redundancy must also be combined with a means to detect which redundant component has failed, and to switch delivery to the healthy version.
[0019] As shown in FIG. 2A-FIG. 2C, there are several switching mechanisms available (note that while the illustrated embodiments show the ability to switch between two inputs, alternative embodiments may be able to switch between any two or more inputs). For example, FIG. 2A illustrates a "redundant control unit" in a cloud, i.e., RCU200. The RCU200 comprises a cloud instance that executes code to get input data from two or more other cloud-based processing units (e.g., transcoders) coming at an input 210. If one of these units becomes unresponsive, the RCU200 may switch the input 210 from the unresponsive unit to another input 210 that is healthier and provides an output 215 corresponding to the health input.
[0020] The use of RCU210 can provide developers of cloud processing chains with the best possible control over how such switches can be implemented and what adjustments (if any) need to be made to the bitstream being sent to output 215 to minimize or prevent the appearance of content discontinuities when such switches are made.
[0021] A drawback of relying on pure cloud-level switching is that it may be limited to managing problems that occur before or while the content is processed in the cloud. If problems occur later in the chain (e.g., at the origin server 135 or CDN 145), an alternative switching mechanism must be used. Also, the RCU 210 itself may be subject to failures (e.g., the cloud instance running the RCU may become unstable), and thus exclusive reliance on such mechanisms may not in principle make the system fully fault-tolerant.
[0022] 2B illustrates a switchable CDN 220 that includes CDN-level switching logic that allows the CDN to switch (or balance traffic load) between inputs 230 received from two or more origin servers 135 if one of the origin servers 135 becomes unresponsive or becomes less responsive. If such functionality is available, it can be programmed to implement rapid switching between the inputs 230 upon failure of an origin server 135.
[0023] 2C illustrates a switching player 240 with player-side switching logic. The switching player 240 can switch between different sources (Uniform Resource Locators (URLs)) of media segments during a streaming session. This functionality is enabled by both the HLS [2] and DASH specifications, each of which allows a manifest to specify a list of alternative URLs that contain media segments. Thus, the switching mechanism performed by the switching player 240 can provide continuous playback in case the point of failure is the CDN 145 itself.
[0024] The three means of switching shown in Figures 2A-2C can provide complementary means of ensuring fault tolerance and can be used in various embodiments of a fault-tolerant live video streaming chain, as described in the following embodiments.
[0025] FIG. 3 is a block diagram of a fault-tolerant video delivery system according to an embodiment with a post-transcoder switch. As shown, the system utilizes a first contribution encoder 115-1 and a second contribution encoder 115-2 to provide output to a first cloud transcoder 125-1 and a second cloud transcoder 125-2, respectively. Unlike systems where synchronous encoding is required, the contribution encoders 115-1, 115-2 in the system shown in FIG. 3 do not need to be synchronous. Also, the feeds from the contribution encoders 115-1, 115-2 to the cloud may be different and use different delivery protocols. Thus, the inputs to the cloud transcoders 125-1, 125-2 may not be perfectly synchronous. Each cloud transcoder may output video streams in a final delivery format (e.g., DASH or HLS, etc.), so no separate steps of repackaging them are required.
[0026] In one alternative embodiment, the cloud transcoder 125-1 and 125-2 may include an ad insertion functionality in which the content of the original live feed is replaced by content from other sources at certain time intervals. In another alternative embodiment, the ad insertion functionality may be added as an additional logical unit located between the RCU 200 and the origin server 135.
[0027] The input to RCU200 may represent the location of the HLS or DASH manifest and encoded segments (e.g., stored on an intermediate cloud server). As an example, the first cloud transcoder 125-1 may provide a live video feed that is routed to the player 150. When the transcoder instance 125-1 and the components upstream of the first cloud transcoder 125-1 (e.g., the video source 105 and the first contribution encoder 115-1) are operational, both the manifest and the media segments are updated periodically in response to changes in the content. RCU200 monitors such changes and continues to send both the manifest and the segments received from the first cloud transcoder 125-1 to the origin server 135 as long as RCU200 determines that the live feed is operational. RCU200 may determine whether the live feed is operational based on, for example, whether the feed is updated periodically and / or other appropriate operational suggestions.
[0028] On the other hand, if the RCU200 receives an indication that the video feed received from the first cloud transcoder 125-1 is not working properly (e.g., not providing output, gradually lagging, etc.), the RCU200 may check characteristics of the live video stream from the second cloud transcoder 125-2. If the live video stream from the second cloud transcoder 125-2 is operational, the RCU200 may switch to the live video stream and provide the manifest and video segment positions received from the second cloud transcoder 125-2 to the origin server 135.
[0029] Because the video streams delivered by the first cloud transcoder 125-1 and the second cloud transcoder 125-2 are generally not precisely synchronized, additional adaptation of the video streams provided to the origin server 135 may need to be done to help minimize the impact of such switching as perceived by the end user. For example, some players 150 may not be able to handle switching from one video stream to another when the video streams are not perfectly synchronized.
[0030] In this regard, embodiments may include updating the manifest file to allow the player 152 to adapt to the switch. For example, in an HLS manifest, the manifest file may be updated to include a discontinuity marker (EXT-X-DISCONTINUITY) placed before the reference to the new media segment after the switch. In a DASH manifest (DASH MPD), the manifest may be updated to indicate the start of a new period of the presentation, allowing the player to better handle the discontinuity. Finally, embodiments may additionally or alternatively provide a means to improve the handling of discontinuities by updating the media segments. For example, the last segment in the chain before the switch of the first segment after the switch may be updated to include a DASH or Common Media Application Format (CMAF) event that includes the new manifest, which allows the media player to reload the manifest and continue processing the subsequent segments as the new presentation. Alternatively, the media segments after the switch may be transmuxed and updated at the elementary stream level to allow such streams to be continuously decodable. The associated changes may be performed by updating the sequence parameter set (SPS), picture parameter set (PPS), and presentation timestamp (PTS), display timestamp (DTS), program clock reference (PCR), or system clock reference (SCR) parameters. Filler bits may also be inserted to make the stream compliant to the hypothetical reference decoder (HRD) level. Although the system shown in FIG. 3 does not necessarily result in seamless switching between redundant streams, it may still minimize the impact of such switching to comply with the DASH and HLS standards. Also, as noted above, using the RCU200 in this manner may eliminate the need for proprietary and expensive hardware to run contribution encoders, upload links, and other components in the distribution chain.
[0031] FIG. 4 provides an example of how the HLS manifest may be modified by the RCU200 of FIG. 3 to help minimize issues at the player 150 caused by switching from one video stream to another. In this figure, each block includes content of a manifest (M3U8 file) of a live video stream. In this example, the content of block 410 includes a manifest of a live video stream from the first cloud transcoder 125-1, and the content of block 420 includes a manifest of a live video stream from the second cloud transcoder 125-2. The content of block 430 includes the output of the RCU200, and a switch from using the video stream of the first cloud transcoder 125-1 to using the video stream of the second cloud transcoder 125-2 is possible. In this example, the RCU200 starts by forwarding the output received from the first cloud transcoder 125-1. Thus, the first portion of the content in block 430 includes the content of block 410. However, RCU200 subsequently switches to the second video stream from the second cloud transcoder 125-2 (e.g., in response to determining that the video stream from the first transcoder 125-1 has stopped generating video segments). Thus, the latter portion of the content in block 430 includes the portion of the content in block 420 received from the second cloud transcoder 125-2. Importantly, RCU200 inserts a discontinuity indication 440 into the manifest, which may indicate to player 150 the discontinuity between the first portion of the manifest in block 430 and the second portion of the manifest. This indication may enable player 150 to better handle the discontinuity without causing playback errors. In the case of DASH, RCU200 may similarly provide an output manifest for the indicated discontinuity by signaling the start of a new period of the presentation.
[0032] FIG. 5 illustrates another embodiment of a fault-tolerant video delivery system. Similar to the system of FIG. 3, the system of FIG. 5 includes two contribution encoders 115-1, 115-2 and two cloud transcoders 125-1, 125-2. However, the system of FIG. 5 further includes redundancy in downstream components for additional types of failures. These redundant components include a first RCU 200-1 and a second RCU 200-2, a first origin server 135-1 and a second origin server 135-2, and a first CDN 145-1 and a second CDN 145-2 (similar to above, variations of this embodiment may include three or more components of the same type). For dual CDN delivery to a user device, the user device may also include a switching player 240.
[0033] Due to the symmetrically deployed RCUs 200-1, 200-2, two versions of the content can be delivered. Also, streaming of one of these versions continues even if one of the RCUs 200-1, 200-2 fails. The delivery of the stream further passes through redundant origin servers 135-1, 135-2 and redundant CDNs 145-1, 145-2 (or different configurations in the same CDN 145). Using player-side switching can be an additional fault-tolerance measure in addition to the in-cloud delivery chain switching. The switching player 240 can dynamically select among multiple playlist URLs (or base segment URLs) in HLS and DASH implementations.
[0034] Compared with the system of Fig. 3, the degree of additional protection provided by the system of Fig. 5 comes at a relatively low additional implementation and operational cost. That is, the costs associated with the additional RCU 200, the origin server 135, and the CDN connection 145 are relatively low. Meanwhile, since at any given time, the switching player 240 uses only one of the connected CDNs (145-1 or 145-2), the amount of bandwidth delivered by both CDNs will be the same as delivery via a single CDN. Thus, the overall operational cost may be similar.
[0035] 5 may utilize an additional distributed consensus-type protocol in the RCU200-1, 200-2, which may enable the RCU200-1, 200-2 to coordinate the switching to minimize the deviation in presentation time of the generated output stream upon switching.
[0036] FIG. 6 illustrates another embodiment of a fault-tolerant video delivery system. The system of FIG. 6 has similar components and functions as the system of FIG. 5, with the addition of switching CDNs 220-1, 220-2 to provide CDN-level switching. In summary, some CDNs provide the ability to switch between origin servers in addition to an application programming interface (API). Thus, an embodiment of a fault-tolerant system can utilize such switching to add fault tolerance. The system illustrated in FIG. 6 switches between content located on two origin servers 135-1, 135-2 by using a switching CDN 220-1, 220-2 capable of such switching. Because the origin servers 135-1, 135-2 may be located in different regions, the system of FIG. 6 may provide additional resiliency in the event that an entire region of the cloud service offered may fail. The use of a switching player 240 in the system of FIG. 6 may also be useful in the event of failure of a CDN (e.g., different parts of the same CDN used to enable one or both delivery paths of 220-1, 220-2).
[0037] Finally, the system of FIG. 6 provides a layer of protection against failures while minimizing additional implementation and operational costs compared to the systems of FIG. 3 and FIG. 5. The use of CDN-implemented delivery path switching in addition to the manifest output provided by RCU200-1, 200-2 can ensure standards compliance and minimal discontinuity of the stream during the switch. Again, the use of player-side switching in addition to the switching provided by RCU200-1, 200-2, CDN145-1, 145-2 serves as an additional fault-tolerance measure.
[0038] 6 may utilize an additional distributed consensus-type protocol in the RCU200-1, 200-2, which may enable the RCU200-1, 200-2 to coordinate the switching to minimize the deviation in presentation time of the generated output stream upon switching.
[0039] FIG. 7 illustrates yet another embodiment of a fault-tolerant video delivery system. As a variation of the embodiment described above, the embodiment illustrated in FIG. 7 combines a single RCU 200 with two origin servers 135-1, 135-2. Also, rather than utilizing a switching CDN 220, the embodiment of FIG. 7 illustrates the use of a single CDN 145 that can provide streams from both origin servers 135-1, 135-2 to a switching player 240 (which selects the origin server 135-1, 135-2 for receiving the video streams). Alternative embodiments of the system of FIG. 7 may utilize any of the components described above to provide additional or alternative fault tolerance. For example, one or more switching CDNs 220 may be used in addition to or as an alternative to the switching player 240.
[0040] As noted above, the various components of the fault-tolerant live video streaming system of Figures 3, 5, 6, and 7, as well as alternative embodiments thereof, may be implemented on one or more computer systems. The various video streams may be routed through computer servers in various geographic regions, which may help avoid failures in the event of an outage at a server in one of the geographic regions. An exemplary computer system in which one or more components of the embodiments of the fault-tolerant live video streaming system may be implemented is shown in Figure 9 and described in more detail below.
[0041] It should be noted that although embodiments may use a single redundancy (e.g., using two of the same component), embodiments are not so limited. Embodiments may, for example, use multiple redundancies (e.g., more than two of the same component) if desired.
[0042] FIG. 8 is a flow diagram illustrating a method 800 for providing fault-tolerant live video streaming according to an embodiment that may use one or more techniques in the above embodiments. The functions illustrated in FIG. 8 are provided as an example. Alternate embodiments may add, omit, combine, separate, or modify the illustrated functions. The functions of one or more blocks illustrated in FIG. 8 may be performed, for example, by an RCU as described above. As described above, the RCU may be implemented by software and / or hardware components of a computer system, such as the computer system illustrated in FIG. 9, which is described in more detail below.
[0043] At block 810, the function includes obtaining a first transcoded video stream from a first video transcoder and obtaining a second transcoded video stream from a second video transcoder. As shown in the above embodiment, each video transcoder may receive a video stream from a respective contribution encoder that may encode a separate video stream from a single video source (which may include a set of one or more video cameras). The contribution encoder may provide the video stream to the first and second video transcoders using any of a variety of formats, such as TS, TS+FEC, RTMP, SRT, etc. In some embodiments, as described above, the first transcoded video stream and the second transcoded video stream are in HLS format or DASH format. The contribution encoder may provide the video stream to the first and second video transcoders over the Internet using any of a variety of communication means (including public and / or private networks, wireless and / or wired technologies, etc.). In some embodiments, the first and second video transcoders may receive the video streams from each contribution encoder over different independent communication paths to help ensure that if one communication path fails, the other does not fail. As one skilled in the art will appreciate, method 800 may include obtaining additional video streams from additional transcoders (i.e., in addition to the first and second video transcoders) to provide additional redundancy.
[0044] At block 820, the function includes outputting a first manifest that provides a first output video stream using video segments of the first transcoded video stream. Specifically, embodiments may create the first manifest based on a manifest provided by the first video transcoder. The manifest may use the same format as the manifest of the first video transcoder (e.g., if the output manifest provided by the first video transcoder is in HLS format, then the first manifest may also be in HLS format).
[0045] At block 830, the function includes identifying a failure condition in the first transcoded video stream. Here, the function may include monitoring an output manifest of the first video transcoder to determine whether the output manifest is updated as expected. Because the manifest may include a list of URLs that identify where video segments can be found, the function may further include determining whether the URLs in the manifest are functional. Thus, if the first video transcoder cannot update its output manifest in time (i.e., there is a delay in the output of the first transcoded video stream that is longer than a threshold time) or if one of the URLs in the manifest is not functional (i.e., there is a link that cannot access a video segment of the first transcoded video stream), a failure condition may be identified.
[0046] At block 840, the method includes switching from using video segments of the first transcoded video stream to provide the first output video stream to using video segments of the second transcoded video stream in response to identifying the failure condition by updating the first manifest. In some embodiments, the first manifest further includes an identifier indicating a point at which the first manifest switches from using video segments of the first transcoded video stream to using video segments of the second transcoded video stream. As discussed above, the identifier may include an indication of a discontinuity in the first output video stream, an indication of a new period in the first output video stream, and / or an indication embedded in the encoded stream by transmuxing the media segments.
[0047] The embodiments of method 800 may vary depending on the desired functionality. For example, additional redundancy may be created. In some embodiments, a first redundancy control unit may be used to perform the functions of blocks 810-140. Such embodiments may further include using a second redundancy control unit to obtain the first transcoded video stream from the first video transcoder and the second transcoded video stream from the second video transcoder and output a second manifest that uses video segments of the first transcoded video stream, the second transcoded video stream, or both to provide a second output video stream. This allows for CDN switching. That is, in some embodiments, the method may further include providing the first output video stream to a first CDN and providing the second output video stream to a second CDN, as shown in Figures 5 and 6. Some embodiments may further output each output video stream to a CDN for additional redundancy, as shown in Figure 6. Thus, the method may further include providing the first output video stream to a second CDN, and providing the second output video stream to the first CDN.
[0048] The origin server may be used in different ways depending on the required functionality. In some embodiments, for example, when RCU is used, the first output video stream and the second output video stream may be provided to the first origin server and the second origin server, respectively, as shown in Figures 5 and 6. Alternatively, a single origin server may be used (e.g., as shown in Figure 3). That is, a single output video stream (e.g., the first output video stream) may be provided to the first origin server and the second origin server (e.g., as shown in Figure 7).
[0049] Figure 9 is a block diagram of an embodiment of a computer system 900 that may be used in whole or in part to perform one or more functions of the methods described herein, including the method illustrated in Figure 8. The computer system 900 may be incorporated into one or more components of a system for providing fault tolerant live video streaming as illustrated in Figures 3 and 5-7, including components of a video publisher, a cloud service provider, a CDN, and / or a user device.
[0050] Figure 9 is intended only to provide a generalized example of the various components, any or all of which may be utilized as appropriate. Thus, Figure 9 broadly illustrates how individual system elements may be implemented in a relatively separated or relatively integrated manner. Additionally, the components illustrated in Figure 9 may be localized on a single device or distributed across various network devices that may be located in various geographic locations.
[0051] Computer system 900 is shown to include hardware elements that may be electrically coupled (or may communicate, as appropriate) via a bus 905. The hardware elements may include a processing unit 910. The processing unit 910 may include, but is not limited to, one or more general-purpose processors, one or more special-purpose processors (digital signal processing chips, graphics acceleration processors, etc.), and / or other processing structures that may be configured to perform one or more of the methods described herein. Computer system 900 may also include one or more input devices 915 and one or more output devices 920. The input devices 915 may include, but are not limited to, a mouse, a keyboard, a camera, a microphone, etc. The output devices 920 may include, but are not limited to, a display device, a printer, etc.
[0052] The computer system 900 may further include (and / or be in communication with) one or more non-transitory storage devices 925. The non-transitory storage devices 925 may include, but are not limited to, local and / or network accessible storage and / or solid-state storage devices, such as, but not limited to, disk drives, drive arrays, optical storage devices, random access memory (RAM), and / or programmable and flash updatable read-only memory (ROM), and the like. Such storage devices may be configured to implement any suitable data store, which may include, but are not limited to, various file systems, database structures, and the like. Such data stores may include databases and / or other data structures used to store and manage messages and / or other information sent to one or more devices as described herein.
[0053] The computer system 900 may also include a communications subsystem 930. The communications subsystem 930 may include wireless communication technologies managed and controlled by a wireless communication interface, as well as wired technologies (such as Ethernet, coaxial communication, Universal Serial Bus (USB)). Thus, the communications subsystem 930 may include a modem, a network card (wireless or wired), an infrared communication device, a wireless communication device, and / or a chipset, and / or the like, and / or the communications subsystem 930 may enable the computer system 900 to communicate over one or more communications networks with any device on each network, including other computer systems and / or other electronic devices (including operations and / or applications executed thereon) described herein. Thus, the communications subsystem 930 may be used to send and receive data as described in the embodiments herein.
[0054] In many embodiments, the computer system 900 further includes a working memory 935, which may include a RAM or ROM device as described above. The software elements shown as being located in the working memory 935 may include other code, such as an operating system 940, device drivers, executable libraries, and / or one or more applications 945, which may include computer programs provided by various embodiments, and / or the software elements may be designed to implement methods and / or construct systems provided by other embodiments as described herein. By way of example only, one or more procedures described with respect to the methods above may be implemented as code and / or instructions executable by a computer (and / or a processing unit within a computer). In one aspect, such code and / or instructions may be used to configure and / or adapt a general-purpose computer (or other device) to perform one or more operations in accordance with the described methods.
[0055] A set of these instructions and / or code may be stored in a non-transitory computer-readable storage medium, such as storage device 925 described above. In some cases, the storage medium may be incorporated within a computer system, such as computer system 900. In other embodiments, the storage medium may be separate from the computer system (e.g., a removable medium such as an optical disk) and / or may be provided in an installation package, such that the storage medium programs, configures, and / or adapts a general-purpose computer with the stored instructions / code. These instructions may take the form of executable code that can be executed by computer system 900, and / or may take the form of source and / or installable code that takes the form of executable code upon compilation and / or installation into computer system 900 (e.g., using any of a variety of commonly available compilers, installation programs, compression / decompression utilities, etc.).
[0056] It will be apparent to those skilled in the art that substantial modifications can be made according to particular requirements. For example, specific hardware may also be used and / or particular elements may be implemented in hardware, software (including portable software such as applets), or both. Furthermore, connections to other computing devices, such as network input / output devices, may be used.
[0057] With reference to the accompanying figures, components that may constitute a memory may include non-transitory machine-readable media. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any storage medium that participates in providing data that causes a machine to operate in a specific manner. In the embodiments provided above, various machine-readable media may participate in providing instructions / code to a processing unit and / or other devices for execution. Additionally or alternatively, machine-readable media may be used to store and / or transmit such instructions / code. In many implementations, the computer-readable medium is a physical and / or tangible storage medium. Such media may take many forms, including, but not limited to, non-volatile media, volatile media, and transmission media. Common forms of computer-readable media may include, for example, magnetic and / or optical media, any other physical media with a pattern of holes, RAM, programmable ROM (PROM), erasable PROM (EPROM), flash EPROM, any other memory chip or cartridge described herein, or any other medium from which a computer can read instructions and / or code.
[0058] The methods, systems, and devices described herein are examples. Various embodiments may omit, substitute, or add various procedures or components, as appropriate. For example, features described with respect to certain embodiments may be combined in other various embodiments. Different aspects and elements of the embodiments may be combined in a similar manner. Various components of the diagrams provided herein may be embodied in hardware and / or software. Technology evolves, and therefore many of the elements are examples that do not limit the scope of the disclosure to those specific examples.
[0059] References throughout this specification to "one example," "an example," "an example," or "an exemplary implementation" mean that a particular feature, structure, or characteristic described in connection with a feature and / or example may be included in at least one feature and / or example of the claimed subject matter. Thus, the appearances of "in one example," "in an example," "in an example," "in an implementation," or other similar phrases in various places throughout this specification do not necessarily all refer to the same features, examples, and / or limitations. Furthermore, particular features, structures, or characteristics may be combined in one or more examples and / or characteristics.
[0060] Some portions of the detailed description contained herein are presented in terms of algorithms or symbolic representations of operations of binary digital signals stored in a memory of a specific apparatus or computing device or platform for a specific application. In the context of this particular specification, terms such as specific apparatus include a general-purpose computer that is programmed to perform specific operations pursuant to instructions from program software. Algorithmic descriptions or symbolic representations are examples of techniques used by those skilled in the art of signal processing or related arts to convey the substance of their work to others skilled in the art. An algorithm is generally considered herein to be a self-consistent sequence of operations or similar signal processing that leads to a desired result. In this context, operations or processing include physical manipulations of physical quantities. Typically, but not necessarily, such physical quantities may take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, or otherwise manipulated. It has proven convenient at times, primarily for reasons of common usage, to refer to signals such as bits, data, values, elements, symbols, characters, terms, numbers, numerals, and the like. However, it may be understood that all of these or similar terms are to be associated with the appropriate physical quantities and are merely convenient labels. Unless otherwise indicated, and as will be apparent from the description herein, throughout this specification, descriptions utilizing terms such as "processing," "operation," "calculation," "determination," and the like refer to the operations or processing of a particular apparatus, such as a special purpose computer, a special purpose computing apparatus, or a similar special purpose electronic computing device. Thus, in the context of this specification, a special purpose computer or a similar special purpose electronic computing device can manipulate or transform signals that are typically represented as physical electronic or magnetic quantities in a memory, in a register or other information storage device, in a transmission device, or in a display device of the special purpose computer or similar special purpose electronic computing device.
[0061] As used herein, the terms "and," "or," and "and / or" may include a variety of meanings that may depend, at least in part, on the context in which such terms are used. Typically, when "or" is used to link a list such as A, B, C, it is intended to mean A, B, and C used in an inclusive sense, and A, B, or C used in an exclusive sense. Also, as used herein, the term "one or more" may be used to describe any feature, structure, or characteristic in the singular, or may be used to describe a plurality or some other combination of features, structures, or characteristics. However, this is merely an example, and claimed subject matter is not limited to this example.
[0062] While what are presently believed to be exemplary features have been shown and described, those skilled in the art will recognize that various other modifications can be made and equivalents can be substituted without departing from the subject matter of the claims. Additionally, many modifications can be made to adapt a particular situation to the teachings of the claimed subject matter without departing from the central concept described herein.
[0063] Therefore, it is intended that the claimed subject matter not be limited to the particular examples disclosed, but that such claimed subject matter can include all embodiments falling within the scope of the appended claims and equivalents thereof.
[0064] Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly or conventionally understood. As used herein, "a" refers to one or more (i.e., at least one). By way of example, "an element" means one element, or two or more elements. As used herein, "about" and / or "approximately" when referring to a measurable value, such as an amount or a temporal duration, encompasses a variation of ±20%, ±10%, ±5%, or +0.1% relative to the specified value, as appropriate in the context of the systems, devices, circuits, methods, and other implementations described herein. As used herein, "substantially" when referring to a measurable value, such as an amount or a temporal duration, or a physical attribute (such as frequency), encompasses a variation of ±20%, ±10%, ±5%, or +0.1% relative to the specified value, as appropriate in the context of the systems, devices, circuits, methods, and other implementations described herein.
[0065] As used herein, including in the claims, "and" used in a list of items following "at least one" or "one or more" indicates that any combination of the listed items can be used. For example, a list of "at least one of A, B, and C" includes any combination of A, B, C, AB, AC, BC, and / or ABC (i.e., A, B, and C). Furthermore, to the extent that multiple occurrences or uses of items A, B, or C are possible, multiple uses of A, B, and / or C may form part of the intended combination. For example, a list of "at least one of A, B, and C" may also include AA, AAB, AAA, BB, etc.
Claims
1. 1. A method for providing fault tolerant live video streaming, comprising: performing the steps of: obtaining a first transcoded video stream from a first cloud video transcoder and a second transcoded video stream from a second cloud video transcoder, the obtaining step, wherein input to the first redundancy control unit includes the first transcoded video stream and the second transcoded video stream, the first transcoded video stream consisting of a first transcode manifest and a set of first transcoded video segments generated by the first cloud video transcoder, and the second transcoded video stream consisting of a second transcode manifest and a set of second transcoded video segments generated by the second cloud video transcoder; outputting a first output manifest to a first origin server for providing a first output video stream using the first transcoded video segments of the first transcoded video stream, the first output manifest being based on the first transcoded manifest; monitoring the first transcoding manifest to identify a fault condition in the first transcoded video stream; switching from providing the first output video stream using the first set of transcoded video segments of the first transcoded video stream to providing the first output video stream using the second set of transcoded video segments of the second transcoded video stream by updating the first output manifest in response to identifying the failure condition, wherein updating the first output manifest is based on the second transcoded video stream; outputting the updated first output manifest to the first origin server; providing the first output video stream to the first origin server; using the first redundant control unit.
2. 2. The method of claim 1 , wherein the updated first output manifest is a HyperText Transfer Protocol (HTTP) Live Streaming (HLS) manifest that includes an EXT-X-DISCONTINUITY marker placed before using the second set of transcoded video segments of the second transcoded video stream.
3. 2. The method of claim 1 , wherein the updated first output manifest is a DASH manifest and specifies the second set of transcoded video segments of the second transcoded video stream as a new period of a media presentation.
4. 2. The method of claim 1, wherein the updated first output manifest is a Dynamic Adaptive Streaming over HTTP (DASH) or Common Media Application Format (CMAF) manifest further encoded and placed as a DASH manifest in a last media segment of the first transcoded video stream before the switch.
5. The method of claim 1, further comprising updating the set of second transcoded video segments of the second transcoded video stream after the switch to help ensure continuous decodability by a decoder.
6. Updating the second set of transcoded video segments of the second transcoded video stream includes: Sequence Parameter Set (SPS), Image Parameter Set (PPS), Presentation Time Stamp (PTS), Display Time Stamp (DTS), Program Clock Reference (PCR), The System Clock Reference (SCR), or any combination thereof, The method of claim 5 , further comprising modifying
7. The fault condition is a delay in outputting the first transcoded video stream that is greater than a threshold time; an inaccessible link to a video segment of the first transcoded video stream; or any combination thereof, The method of claim 1 , comprising:
8. Using a second redundant control unit, obtaining the first transcoded video stream from the first cloud video transcoder and the second transcoded video stream from the second cloud video transcoder; using the second redundancy control unit to output a second manifest that uses video segments of the first transcoded video stream, the second transcoded video stream, or both to provide a second output video stream; The method of claim 1 further comprising:
9. providing the first output video stream to a first content delivery network (CDN); providing the second output video stream to a second CDN; The method of claim 8 further comprising:
10. providing the first output video stream to the second CDN; providing the second output video stream to the first CDN; The method of claim 9 further comprising:
11. providing the first output video stream to the first origin server; providing the second output video stream to a second origin server; The method of claim 8 further comprising:
12. 10. The method of claim 1, further comprising providing the first output video stream to a second origin server.
13. 1. A system for providing fault-tolerant live video streaming, comprising: Memory, one or more processing units communicatively coupled to the memory and using a first redundant control unit; wherein the first redundant control unit obtaining a first transcoded video stream from a first cloud video transcoder and a second transcoded video stream from a second cloud video transcoder, the obtaining step, wherein input to the first redundancy control unit includes the first transcoded video stream and the second transcoded video stream, the first transcoded video stream consisting of a first transcode manifest and a set of first transcoded video segments generated by the first cloud video transcoder, and the second transcoded video stream consisting of a second transcode manifest and a set of second transcoded video segments generated by the second cloud video transcoder; outputting a first output manifest to a first origin server for providing a first output video stream using the first transcoded video segments of the first transcoded video stream, the first output manifest being based on the first transcoded manifest; monitoring the first transcoding manifest to identify a fault condition in the first transcoded video stream; switching from providing the first output video stream using the first set of transcoded video segments of the first transcoded video stream to providing the first output video stream using the second set of transcoded video segments of the second transcoded video stream by updating the first output manifest in response to identifying the failure condition, wherein updating the first output manifest is based on the second transcoded video stream; outputting the updated first output manifest to the first origin server; providing the first output video stream to the first origin server; A system that is configured to run
14. 14. The system of claim 13, wherein the one or more processing units are configured to obtain the first transcoded video stream and the second transcoded video stream comprising a HyperText Transfer Protocol (HTTP) Live Streaming (HLS) format or a Dynamic Adaptive Streaming over HTTP (DASH) format.
15. The one or more processing units: a delay in outputting the first transcoded video stream that is greater than a threshold time; an inaccessible link to a video segment of the first transcoded video stream; or any combination thereof, 14. The system of claim 13, configured to identify the fault condition at least in part by determining:
16. The one or more processing units further use a second redundant control unit to: obtaining the first transcoded video stream from the first cloud video transcoder and the second transcoded video stream from the second cloud video transcoder; outputting a second manifest using video segments of the first transcoded video stream, the second transcoded video stream, or both to provide a second output video stream; The system of claim 13 configured to:
17. The one or more processing units further include: providing the first output video stream to a first content delivery network (CDN); providing the second output video stream to a second CDN; The system of claim 16 configured to:
18. A non-transitory computer-readable medium having instructions stored thereon, comprising: Execution of the instructions by one or more processing units causes the one or more processing units to perform the following steps using a first redundant control unit, the one or more processing units: obtaining a first transcoded video stream from a first cloud video transcoder and a second transcoded video stream from a second cloud video transcoder, the obtaining step, wherein input to the first redundancy control unit includes the first transcoded video stream and the second transcoded video stream, the first transcoded video stream consisting of a first transcode manifest and a set of first transcoded video segments generated by the first cloud video transcoder, and the second transcoded video stream consisting of a second transcode manifest and a set of second transcoded video segments generated by the second cloud video transcoder; outputting a first output manifest to a first origin server for providing a first output video stream using the first transcoded video segments of the first transcoded video stream, the first output manifest being based on the first transcoded manifest; monitoring the first transcoding manifest to identify a fault condition in the first transcoded video stream; switching from providing the first output video stream using the first set of transcoded video segments of the first transcoded video stream to providing the first output video stream using the second set of transcoded video segments of the second transcoded video stream by updating the first output manifest in response to identifying the failure condition, wherein updating the first output manifest is based on the second transcoded video stream; outputting the updated first output manifest to the first origin server; providing the first output video stream to the first origin server; using the first redundant control unit, A non-transitory computer-readable medium, wherein updating the first output manifest includes including an identifier in the first output manifest indicating a point at which the first output manifest switches from using the first set of transcoded video segments of the first transcoded video stream to using the second set of transcoded video segments of the second transcoded video stream.
Citation Information
Patent Citations
Video communication method and video communication apparatus
JP2006067483A
Live timing for dynamically adaptive streaming (dash) over http
JP2016509400A
System and Method for Cloud-Based Live Media Ingestion and Transcoding
US20130308436A1
Adaptive bit rate (ABR) streaming with server side adaptation
US20140344443A1
Rendering content and time-shifted playback operations for personal over-the-top network video recorder
US20170171590A1
