Video content may be transmitted in a variety of ways. One way involves digitizing the video content and transferring the digitized video content to a playback device in multiple packets using the Internet Protocol (IP). Video content provided using this technique is often referred to as IP video.
IP video servers may stream IP video to playback devices in real time. A playback device may connect to an IP video server at any point during a live IP video stream and begin playback. IP video is typically a pull-based technology in which a playback device requests portions of the video content from an IP video server. In response to the requests, the IP video server transmits the requested video content to the playback device. Playback devices may connect to an IP video server at slightly different times and thus receive the portions of video content at different times. As a result, playback of an IP video stream across multiple playback devices may occur at different times and thus be out of sync.
Therefore a need exists for synchronizing video streams across multiple playback devices.
Some aspects of the disclosure generally relate to reproduction of video content. Various aspects of the disclosure relate to synchronizing reproduction of segmented video content across multiple playback devices.
Techniques for synchronizing playback of segmented video streams across multiple video playback devices are provided. In this way, where multiple video playback devices are deployed to a common location (e.g., a sports bar) or at different locations, playback of the video content is synchronized across those playback devices when presented to the viewers.
In example implementations, a video server is configured to provide a segmented video stream comprised of multiple fragments of video content (referred to herein as video fragments). The video server maintains a playlist identifying the currently available video fragments and updates the playlist as new video fragments become available. The video server receives from video playback devices requests for the playlist and for the video fragments. In response to requests for the playlist, the video server determines (e.g., calculates) the age of the playlist. In one example implementation, the age of the playlist is the difference between the time the video server received the playlist request and the last time the playlist was updated, e.g., to identify a new video fragment. The video server may include the age of the playlist in the response to the playlist request.
The video playback device (referred to herein as a playback device) may use the age of the playlist to modify (if necessary) one or more video fragments received from the video server. In particular, the playback device determines (e.g., calculates) an estimated live-point (or current point for time-shifted content) time of the server based on the age of the playlist and sets a scheduled playback time for the video fragments based on the estimated live-point time. The playback device then determines whether the actual playback times of the video fragments match their respective scheduled playback times. If not, the playback device modifies the video fragments until the actual playback times match the scheduled playback times. When each playback device employs this technique, playback of the video content across multiple playback devices is synchronized.
In some aspects, a playback device may modify a video fragment by adding frames to or removing frames from that video fragment. If, for example, the actual playback times of successive video fragments occur after their respective scheduled playback times, the playback device removes frames from one or more successive video fragments until the actual playback time of a video fragment matches its scheduled playback time. On the other hand, if the actual playback times of successive video fragments occur before their respective scheduled playback times, the playback device adds frames to each successive video fragment until the actual playback time of a video fragment matches its scheduled playback time.
This summary is not intended to identify critical or essential features of the disclosures herein, but instead merely summarizes certain features and variations thereof. Other details and features will also be described in the sections that follow.
Some features herein are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements.
Techniques for synchronizing playback of segmented video streams across multiple playback devices are provided. By employing the techniques described herein, playback devices deployed to a common location (e.g., a sports bar, a residence, etc.) may synchronize a segmented video stream presented to viewers on multiple displays at that location.
In some implementations, a video server that provides segmented video may update its playlist of currently available video fragments every two seconds. Playback devices may thus connect to the video server and request the playlist at any point within that two second window. As a result, playback devices may be out-of-sync by up to two seconds which is within the bounds of human visual perception. When viewing playback of a segmented video stream at a location having multiple playback devices and displays, viewers may thus easily notice the lack of synchronization.
As described in further detail below, playback devices may synchronize playback of the segmented video stream by modifying the video fragments in a way that goes unnoticed by the viewer. More particularly, the playback devices may add or remove frames from the video fragments received from the video server until the actual playback times of the video fragments match respective scheduled playback times for those video fragments. Playback of the segmented video stream may occur at 30 frames per second (fps). At this framerate, viewers may be unable to perceive the addition or removal of only a few frames each second. In other words, even if the playback devices are not precisely in sync, the techniques described herein achieve enough synchronization such that any deviations from a precise synchronization go unnoticed by the viewers.
The synchronization techniques described herein are agnostic to the particular clock time of the video server and the individual clock times of the playback devices. In other words, playback devices may synchronize playback of a segmented video stream regardless of the clock time at the video server or the respective clock times of the playback devices. As described in further detail below, a playback device estimates the live-point time of the video server in terms of its own clock time. A playback device similarly schedules playback of the video fragments in terms of its own clock time. Playback devices can thus achieve synchronization even when clock drift occurs at the video server or the individual playback devices.
Additional aspects and will be appreciated with the benefit of the additional disclosures provided in more detail below.
Referring to
There may be one link 101 originating from the local office 103, and it may be split a number of times to distribute the signal to various premises 102 in the vicinity (which may be many miles) of the local office 103. The links 101 may include components not illustrated, such as splitters, filters, amplifiers, etc. to help convey the signal clearly, but in general each split introduces a bit of signal degradation. Portions of the links 101 may also be implemented with fiber-optic cable, while other portions may be implemented with coaxial cable, other lines, or wireless communication paths.
The local office 103 may include an interface 104, such as a termination system (TS). More specifically, the interface 104 may be a cable modem termination system (CMTS), which may be a computing device configured to manage communications between devices on the network of links 101 and backend devices such as servers 105-107 (to be discussed further below). The interface 104 may be as specified in a standard, such as the DOCSIS standard, published by Cable Television Laboratories, Inc. (a.k.a. CableLabs), or it may be a similar or modified device instead. The interface 104 may be configured to place data on one or more downstream frequencies to be received by modems at the various premises 102, and to receive upstream communications from those modems on one or more upstream frequencies.
The local office 103 may also include one or more network interfaces 108, which can permit the local office 103 to communicate with various other external networks 109. These networks 109 may include, for example, networks of Internet devices, telephone networks, cellular telephone networks, fiber optic networks, local wireless networks (e.g., WiMAX), satellite networks, and any other desired network, and the network interface 108 may include the corresponding circuitry needed to communicate on the external networks 109, and to other devices on the network such as a cellular telephone network and its corresponding cell phones.
As noted above, the local office 103 may include a variety of servers 105-107 that may be configured to perform various functions. For example, the local office 103 may include a push notification server 105. The push notification server 105 may generate push notifications to deliver data and/or commands to the various premises 102 in the network (or more specifically, to the devices in the premises 102 that are configured to detect such notifications). The local office 103 may also include a content server 106. The content server 106 may be one or more computing devices that are configured to provide content to users at their premises. This content may be, for example, video on demand movies, television programs, songs, text listings, etc. The content server 106 may include software to validate user identities and entitlements, to locate and retrieve requested content, to encrypt the content, and to initiate delivery (e.g., streaming) of the content to the requesting user(s) and/or device(s).
The local office 103 may also include one or more application servers 107. An application server 107 may be a computing device configured to offer any desired service, and may run various languages and operating systems (e.g., servlets and JSP pages running on Tomcat/MySQL, OSX, BSD, Ubuntu, Redhat, HTMLS, JavaScript, AJAX and COMET). For example, an application server may be responsible for collecting television program listings information and generating a data download for electronic program guide listings. Another application server may be responsible for monitoring user viewing habits and collecting that information for use in selecting advertisements. Yet another application server may be responsible for formatting and inserting advertisements in a video stream being transmitted to the premises 102. Still another application server 107 may be responsible for tracking and collecting billing data associated with various equipment at the premises 102. Although shown separately, one of ordinary skill in the art will appreciate that the push notification server 105, content server 106, and application server 107 may be combined. Further, here the push notification server 105, content server 106, and application server 107 are shown generally, and it will be understood that they may each contain computer memory storing computer-executable instructions to cause a processor to perform steps described herein and/or memory for storing data.
An example premise 102a, such as a home, may include an interface 120. The interface 120 can include any communication circuitry needed to allow a device to communicate on one or more links 101 with other devices in the network. For example, the interface 120 may include a modem 110, which may include transmitters and receivers used to communicate on the links 101 and with the local office 103. The modem 110 may be, for example, a coaxial cable modem (for coaxial cable lines 101), a fiber interface node (for fiber optic lines 101), twisted-pair telephone modem, cellular telephone transceiver, satellite transceiver, local Wi-Fi router or access point, or any other desired modem device. Also, although only one modem is shown in
In
As also seen in
The content provider system 200, in this example, includes a web server 214 and a video server 216. The web server 214 is configured to handle and process the requests from the playback devices 202. Such requests may include, for example, requests for the current playlist from the video server 216 as well as requests for the video fragments currently available from the video server. The web server 214 may forward the requests received from the playback devices 202 to the video server 216 and receive from the video server the playlist or video fragments requested. The web server may then package the playlist or video fragments requested in a response that is delivered to the playback devices via the network 204. Although
The network 204 may include a wide area network (WAN) such as the Internet and utilize various Internet-related protocols for delivering segmented video content to the playback devices 202. For example, HTTP (HyperText Transfer Protocol) may be utilized to transmit segmented video content from a video server to a playback device. The network 204 may also include a cellular network that uses cellular communication technologies to deliver segmented video content from a video server to a playback device.
The playback devices 202 may be any type of device configured to receive segmented video content, generate a video signal based on the segmented video content received, and output the video signal generated to a display device. Examples of playback devices include set-top boxes, digital video recorders, personal computers, desktop computing devices, laptop computing devices, tablet computing devices, hand-hand computing devices, mobile telephones, video game machines, virtual reality headsets, “smart” televisions, IPTV receivers, portable media players, console media players, dongles, microconsoles, information appliances, video graphics cards, and other types of devices configured to generate a video signal based on segmented video content received.
Playback devices may receive content via a wired or wireless connection. For example, a coaxial cable may provide the video content to a modem, and a playback device may be connected to the modem. A playback device may be connected to the modem directly via an Ethernet connection or indirectly via a network router that is connected to the modem. The playback device may be connected to the network route via a wired connection (e.g., via an Ethernet connection) or via a wireless connection (e.g., via an 802.11 wireless communication session). The coaxial cable may also provide the video content directly to the playback device.
The display devices 206 may be any type of device configured to receive a video signal and output visual images corresponding to that video signal. Examples of display devices include televisions, computer monitors, computer screens, touchscreens, video projectors, head-up displays, head-mounted displays, digital billboards, and other types of devices configured to generate visual images from a video signal received.
Although the playback devices 202 are shown to be separate from their respective display devices 206, this need not be the case. In example implementations, a single device may incorporate both the playback device and the display device. Examples of devices that include both the playback device and the display device include mobile telephones (i.e., “smartphones”), tablet computing devices, laptop computing devices, desktop computing devices, and other types of devices configured to receive the segmented video content, generate a video signal based on the segmented video content received, and output visual images corresponding to that video signal.
The playlist request handling instruction module 306 includes instructions configured to process and respond to a request for the video content playlist 304. The playlist request handling instruction module 306, in this example, processes requests for playlists received at the video server 300. In some implementations, a video server may provide multiple segmented video streams and thus maintain a respective playlist for each segmented video stream. Accordingly a playlist request may identify, in this example, a particular playlist that is requested. The playlist request handling instruction module 306 may thus extract from the playlist request an identifier for the playlist requested (e.g., a playlist name, a playlist ID number, etc.) and retrieve the requested playlist based on that identifier. In other implementations, the video server may only provide one segmented video stream, and the playlist request may simply request whatever playlist is currently available at the video server. Having retrieved a requested playlist, the playlist request handling instruction module 306 may then prepare a response that includes as its payload the playlist retrieved. The playlist request handling instruction module 306 may also include in the payload of the response the age of the playlist. As described herein, the age of the playlist, in this example, is the duration between the live-point time of the video server and the time the video server received the playlist request. As also described herein, the live-point time of the video server is the time the playlist was last updated when a new video fragment became available. The playlist request handling instruction module 306 may thus also calculate the age of the playlist when processing a playlist request received from a playback device and include the playlist age in the response sent back to the playback device. Throughout the segmented video stream, the playlist request handling instruction module 306 may process multiple requests for the playlist from the same playback device as well as multiple requests for the playlist from different playback devices. In some implementations, a playback device may only request the playlist once when the playback device first connects to the video server. The instructions of the playlist request handling instruction module 306 are computer-executable instructions stored in memory at the video server 300 and are executable by one or more processors of the video server.
The video request handling instruction module 308 includes instructions configured to process and respond to a request for the video content 302. The video request handling instruction module 308, in this example, processes requests for video fragments received at the video server. In some example implementations, the video fragment request may identify one or more particular video fragments, e.g., by video fragment sequence number or ID number. In other implementations, the video fragment request may simply request whatever video fragments are currently available from the video server. In some implementations, a video fragment request may identify the last video fragment the playback device received, and the video request handling instruction module 308 may retrieve the available video fragments that are subsequent to the video fragment identified. The video request handling instruction module 308 may thus retrieve the requested video fragments (e.g., the n number of most recent video fragments) and prepare a response that includes as its payload the video fragments received. Throughout the segmented video stream, the playlist request handling instruction module 306 may process multiple requests for video fragments from one or more playback devices. The instructions of the video request handling instruction module 308 are likewise computer-executable instructions stored in memory at the video server 300 and executable by one or more processors of the video server.
The video content 302, in this example, is segmented video content and thus has been segmented into multiple video fragments 312. Each video fragments includes a sequence of frames 314. For the sake of clarity, some of the frames in the video fragments 312 have been omitted from
The number of frames 314 in a video fragment 312 may vary across implementations. In example implementations, the segmented video content may have a framerate of 30 fps and be segmented into fragments having a duration of 2 seconds (s). This type of video fragment thus has 60 total frames (i.e., 30 frames/second×2.0 seconds=60 frames). In other example implementations, the video fragments may have a duration of, e.g., 10 s or 12 s. Each frame 314 of a video fragment 312 may be at the same resolution and aspect ratio. As described in further detail below, various resolutions and aspect ratios may be selectively employed for the segmented video content. It will be appreciated with the benefit of this disclosure that a video server may provide multiple streams of segmented video content in which the fragment duration, resolution, and aspect ratio varies between each stream of segmented video content. The frames 314 of the video fragment 312 may be quantized in order to compress the size of the frames.
The clock 310 maintains a clock time 316 for the video server 300. As noted above, the playlist request handling instruction module 306 includes the age of the video content playlist 304 in the response to a request for the video content playlist. In example implementations, the age of the playlist is the difference between the time the video server received the playlist request and the last time the playlist was updated. The video server 300 may thus store, for each video fragment 312, a reading of the clock time 316 that video fragment became available. Additionally or alternatively, the video server 300 may store a “last update” time and update the “last update” time with a reading of the clock time 316 whenever a new video fragment becomes available. As an example, the clock time 316 of the video server 300 may be 16:30:31.700 when it receives a request for the video content playlist 304. If, in this example, the “last update” time is 16:30:30.500, then the age of the video content playlist 304 is 1.2 s, i.e., 16:30:31.700 minus 16:30:30.500.
It will thus be recognized that the age of the playlist may depend on how long it takes for new video fragments to become available. For example, if a new video fragment becomes available every two seconds, then a video content playlist may be updated every two seconds. Since a video server may receive requests for the video content playlist anywhere within this two second window, then, in this example, the age of the video content playlist will range between zero and two seconds (0-2 s). Additional examples will be appreciated with the benefit of this disclosure.
The video server 350, in this example, is configured to provide adaptive bitrate video to playback devices. Accordingly, the video server 350 includes video content encoded at different bit rates. More particularly, the video server 350, in this example, includes high-resolution video content 360, medium-resolution video content 362, and low-resolution video content 364. The high-, medium-, low-resolution video content 360-364 in
The video server 350 also includes playlists for each of the adaptive bitrate video content available. As seen in
The respective clocks 310 and 356 of the video servers 300 and 350 may measure the respective clock times 316 and 358 on the scale of milliseconds (ms). For convenience, the clock times are referred to herein according to the 24-hour format of HH:MM:SS.sss, where HH represents the hour from 0-23, MM represents the minute from 0-59, SS represents the second from 0-59, and sss represents the millisecond from 0-999. An example clock time according to this format is 16:30:30.500.
The playback device 400, in this example, includes a video content buffer 406 configured to store a set 408 video fragments 410, a video content playlist 411 that includes the age 413 of the video content playlist, video content playback instructions 412, a clock 414 that provides a clock time 416 for the playback device, and configuration information 418. The playback device 400 may include additional components which will be appreciated with the benefit of this disclosure but have been omitted from
As the playback device 400 requests, receives, and processes the set 408 of video fragments 410 during playback, the playback device may update the video content buffer 406 with new video fragments 410 at regular or irregular intervals. If the playback device 400 is configured for adaptive bit rate streaming, the particular video fragments 410 stored in the video content buffer during playback may vary between high-, medium-, and low-resolution video fragments.
The video content playback instructions 412 are configured to initiate and carry out playback of the segmented video content received from a video server. The video content playback instructions 412 are computer-executable instructions stored in memory at the playback device 400 and are executable by one or more processors of the playback device. Playback of the segmented video content at the playback device 400, in this example, includes carrying out the techniques that achieve synchronized playback of the segmented video content with other playback devices that are similarly configured. To this end, the video content playback instructions 412, in this example, include a playlist request instruction module 420, a video content request instruction module 422, a live-point estimation instruction module 424, a playback time calculation instruction module 426, a video fragment modification instruction module 428; and a video codec 429. The video content playback instructions 412 may include additional instructions or instruction modules which will be appreciated with the benefit of this disclosure but again have been omitted from
The playback device 400 may utilize the video codec 429 (coder-decoder) to process the video fragments. More particularly, the playback device 400 may utilize a video codec to decode the video fragments and obtain the raw, uncompressed video data used to generate the video signal sent to the display device. Although the playback device 400 is depicted in
During playback, the video content playback instructions 412 may take readings of the current clock time 416 which are used, e.g., to estimate the live-point estimation time and calculate the playback time for the video fragments as described above. Like the clocks discussed above with reference to
The following summary is provided as a general introduction to an example implementation of the synchronization process that occurs during playback of the segmented video content at the playback device 400. The synchronization process will be described in further detail below with reference to
The playlist request instruction module 420, in this example, is configured to obtain, from the video server, one or more playlists for the segmented video content available from that video server. The playlist request instruction module 420 may prepare and transmit a request to the video server for the video content playlist 411. The request may be, e.g., a request for a list of playlists available from the video server, a request for a particular playlist available from the video server, or a request for whatever playlist is currently available at the video server. For example, the playlist request instruction module 420 may cause the playback device to first request a list of playlists available from a video server, receive a response that identifies the available playlists, select one of the playlists, and then request the playlist selected.
If, for example, the playback device is configured for adaptive bitrate streaming, the initial playlist request sent to the video server may be a request for a master playlist that identifies the various types of adaptive segmented video content available (e.g., high-, medium-, and low-resolution video content). A subsequent playlist request may thus be a request for one of the adaptive bitrate video content playlists. The playlist request instruction module 420 may also be configured to determine, during playback, whether relatively higher-resolution or relatively lower-resolution segmented video content should be utilized due to, e.g., an improved or degraded network and/or playback conditions. If, for example, the network and/or playback conditions improve during playback, the playlist request instruction module 420 may request from a video server the playlist for relatively higher-resolution video content in order to continue playback of the segmented video stream using relatively higher-resolution segmented video content. On the other hand, if the network and/or playback conditions degrade during playback, then the playlist request instruction module 420 may request from a video server the playlist for relatively lower-resolution video content in order to continue playback of the segmented video stream using relatively lower-resolution segmented video content. It will be appreciated a playback device configured for playback of adaptive bitrate video content may switch back and forth between using relatively higher-resolution and relatively lower-resolution video content throughout playback as the network and/or playback conditions change. Network conditions include, for example, the bandwidth available on the network connection between the playback device and the video server. Playback conditions include, for example, the capacity of one or more processors of the playback device.
The video content request instruction module 422, in this example, is configured to obtain, from the video server, the segmented video content selected for playback. The video content request instruction module 422 may prepare and transmit a request to the video server for one or more video fragments 410. The request may be, e.g., a request for particular video fragments or a request for whatever video fragments are currently available from the video server. Upon receipt of the video fragments 410, the video content request instruction module 422 may store the video fragments in the video content buffer 406. The video content request instruction module 422 may configure the requests for video fragments based on the video content playlist 411, e.g., the particular video fragments identified in the video content playlist. Throughout playback, the video content request instruction module 422 may request new video fragments at regular or irregular intervals.
The playback device 400 may utilize the HTTP (or any other protocol) to request and receive the video content playlist 411 and video fragments 410. Accordingly the requests for the video content playlists and the requests for the video fragments may be HTTP requests. An HTTP request for a video content playlist, for example, may thus include, e.g., an identifier for a particular video content playlist requested or an indication to provide a video content playlist is currently available. The corresponding response may be an HTTP response in which the payload of the response includes the video content playlist and the age of the video content playlist. An HTTP request for one or more video fragments may thus include, e.g., one or more identifiers for the video fragments requested, a number of video fragments requests (e.g., the last x number of video fragments available), or an indication to provide whatever video fragments are currently available. The corresponding response may be an HTTP response in which the payload of the response includes the video fragments. Additional examples will be appreciated with the benefit of this disclosure.
The live-point estimation instruction module 424, in this example, is configured to estimate the live-point time of the video server. The live-point estimation instruction module 424, in this example, estimates the live-point time of the video server (LivePointTimeserv) in the units of the clock time 416 at the playback device 400. In example implementations, the live-point estimation instruction module 424 calculates the estimated live-point time of the video server as follows. Having requested and received the video content playlist 411 and playlist age 413, the live-point estimation instruction module 424 estimates the current time of the video server (EstCurrentTimeserv) when the playback device 400 receives the video content playlist 411 requested. The estimated current time of the video server may thus be based on the round-trip time (RTT) associated with requesting and receiving the video content playlist 411, i.e., the response latency of the playlist request. Accordingly, the RTT may be the difference between the time the playback device 400 sent the playlist request (Timereq) and the time the playback device 400 received the response (Timeresp), i.e., RTT=Timeresp−Timereq. The live-point estimation instruction module 424, in this example, assumes the upstream and downstream propagation times to be the same. Accordingly, live-point estimation instruction module 424 subtracts half of the RTT from the time the playback device received the video content playlist 411 in order to obtain the estimated current time of the video server, i.e., EstCurrentTimeserv=Timeresp−(RTT÷2). To obtain the estimated live-point time, the live-point estimation instruction module then subtracts the playlist age 413 (PlaylistAge) from the estimated current time of the video server, i.e., LivePointTimeserv=EstCurrentTimeserv−PlaylistAge. As described in further detail below, the playback device utilizes the estimated live-point time of the video server to schedule playback of the video fragments 410 received from the video server.
An example of estimating the live point time of a video server is as follows. A video server located in St. Louis initiates playback of segmented video content at server clock time 15:30:30.000. New video fragments become available at the video server every two seconds. Accordingly the video server updates its video content playlist every two seconds. A playback device located in Atlanta requests the video content playlist from the video server at device clock time 16:30:31.500. The video server receives the playlist request at server clock time 15:30:32.600. The video server determines it last updated the video content playlist at server clock time 15:30:31.400. The video server determines the age of its video content playlist is 1.2 s (i.e., 15:30:32.600−15:30:31.400=1.2 s). The video service includes the playlist age (e.g., 1.2 s) with the video content playlist in the response to the playback device. The playback device receives the response at device clock time 16:30:31.700. The playback device calculates the round-trip time for the playlist request to be 0.2 s (i.e., 16:30:31.700−16:30:31.500=0.2 s). The playback device estimates the current server time to be, in device clock time, 16:30:31.600 (i.e., 16:30:31.700−(0.2 s÷2)=16:30:31.700−0.1 s=16:30:31.600). The playback device thus estimates the live point time of the video server to be, in device clock time, 16:30:30:400 (i.e., 16:30:31.600−1.2 s=16:30:30:400).
The upstream and downstream propagation times for the round-trip time (RTT) need not be assumed to be the same. In example implementations, techniques may be employed to obtain a more precise estimate of the downstream propagation time used to estimate the current time of the video server once the playback device receives the response.
The playback time calculation instruction module 426, in this example, is configured to calculate a scheduled playback time (Playbacksched) for each of the video fragments during playback of the segmented video content. The playback time calculation instruction module 426 calculates a scheduled playback time for one or more of the video fragments 410 based on the estimated live-point time of the video server (LivePointTimeserv). The playback time calculation instruction module 426 may also calculate the scheduled playback time for one or more of the video fragments 410 based further on the duration of the video fragments (Durationfrag).
In example implementations, the playback time calculation instruction module 426 may schedule the video fragments received from the video server for immediate playback at the playback device 400. In other implementations, the playback time calculation instruction module 426 may calculate the scheduled playback times for the video fragments based on an offset 430 stored at the playback device 400 (Offset). The offset 430 may, for example, be part of the configuration information 418 for the playback device. The offset 430 may indicate an amount of time the playback device should delay playback of the video fragments at the playback device 400 (e.g., 2-3 seconds). To ensure synchronization across multiple co-located playback devices, the offset may be the same at each of those co-located playback devices. The duration of the offset may, in some example implementations, depend on the quality of the connection between the video server and the playback devices. When the quality of the connection is relatively good, the offset may be, for example, around 500 ms.
The playback device 400 may store the offset 430 in various ways. In example implementations, the playback device 400 may store the configuration information 418 including the offset 430 in a configuration file saved to memory of the playback device. In example implementations, the playback device 400 may store the configuration information 418 including the offset 430 at a dedicated memory location of the playback device. The configuration information 418 including the offset 430 may be updateable locally or remotely. For example, a user may modify the configuration information 418 including the offset 430 via a user interface generated by the playback device 400 and sent to a display device for presentation to the user. As another example, a user may connect a storage device to a local data port of the playback device 400 (e.g., a USB port) and overwrite the existing configuration file with a new configuration file stored on the storage device. As a further example, the configuration information 418 including the offset 430 may be update remotely via a network interface of the playback device 400 (e.g., by the content provider system). Additional examples will be appreciated with the benefit of this disclosure.
The playback time calculation instruction module 426 may calculate the scheduled playback time for a video fragment 410 based on the scheduled playback time for the preceding video fragment and the duration of the preceding video fragment. For example, the ith video fragment 410 may be scheduled for playback based on the scheduled playback time and duration of the (i−1)th video fragment, (i.e., Playbacksched_i=Playbacksched_i−1+Durationfrag). As noted above, the playback device 400 may immediately start playback of the first video fragment 410 in a sequence of video fragments received from the video server or begin playback of that video fragment after a designated offset. The playback time calculation instruction module 426 may thus schedule subsequent video fragments in the sequence of video fragments as described above.
A concrete example of scheduling video fragments for playback is as follows. The example below assumes a slight delay of, e.g., 100 ms between receiving a sequence of requested video fragments at the playback device and initiating playback of the first video fragment. This delay may be attributable to decrypting the video fragment and preparing the video codec for playback. Other implementations may observe longer or shorter durations. A playback device estimates the live-point time of a video server (LivePointTimeserv) to be, in device clock time, 13:35:30.500. The offset of the playback device, in this example, is 3.0 s. The playback device requests a sequence of video fragments from the video server and receives the requested video fragments at device clock time 13:35:34.500. The duration of the video fragments, in this example, is 2.0 s. The playback device schedules the first video fragment for playback at device clock time 13:35:33.500 which is the estimated live-point time plus the offset time (i.e., Playbacksched_1=LivePointTimeserv+Offset=13:35:30.500+3.0 s=13:35:33.500). The playback device schedules the second video fragment for playback at 13:35:35.500 which is based on the scheduled playback time of the first video fragment and the fragment duration (i.e., Playbacksched_2=Playbacksched_1+Durationfrag=13:35:33.500+2.0 s=13:35:35.500). The playback device continues to schedule subsequent video fragments based on the scheduled playback time of its preceding video fragment and the fragment duration (i.e., Playbacksched_i=Playbacksched_i−1+Durationfrag).
It will be recognized that some of the scheduled playback time in the example above are before the device clock time when the playback device received the video fragments. For example, the video fragments were received at device clock time 13:35:34.500 while first video fragment is scheduled for playback at device clock time 13:35:33.500. Accordingly, the actual playback time of the first video fragment, in the example above, may be later than its scheduled playback time. In other words, playback of this example video fragment will be late. It will also be recognized that, in some circumstances, the actual playback time of one or more video fragments may occur before their respective scheduled playback times, i.e., playback of one or more video fragments may be early. Furthermore, the playback device 400, in some implementations, may assess the actual playback time upon actual playback of a video fragment. Additionally or alternatively, the playback device 400 may be configured to determine when a video fragment will actually begin playback and use that time as the actual playback time for the video fragment. As described in further detail below, the playback device 400, in this example, is configured to modify the video fragments as needed until the actual playback times of the video fragments align with the respective scheduled playback times for those fragments.
The video fragment modification instruction module 428, in this example, are configured to determine whether the video fragments should be modified and, if so, how the video fragments should be modified. In example implementations, the video fragment modifications instruction module 428 may also perform the modification. Modifying a video fragment includes adding frames to or removing frames from the video fragment. As noted above the addition or removal of a few frames (e.g., 1-3 frames) per second of video may be outside the limits of human perception. Accordingly, the playback device 400 may add or remove a few frames per video fragment until the actual playback times of the video fragments align with the scheduled playback times.
Upon playback of a video fragment 410, the video fragment modification instruction module 428, in this example, compares the actual playback time of that video fragment to its scheduled playback time. If the video fragment modification instruction module 428 determines the actual playback time is after the scheduled playback time (i.e., the video fragment is late), then the video fragment modification instruction module 428 determines frames should be removed from the video fragment. On the other hand, if the video fragment modification instruction module 428 determines the actual playback time of the video fragment is before the scheduled playback time (i.e., the video fragment is early), then the video fragment modification instruction module 428 determines frames should be added to the video fragment.
The video fragment modification instruction module 428 may also determine how many frames should be added to or removed from a video fragment. In example implementations, the video fragment modification instruction module 428 may add or remove the same number of frames (e.g., 2 frames) for each video fragment. In other implementations, the video fragment modification instruction module 428 may select from a range of frames (e.g., 1-3 frames) to add or remove. Accordingly, the video fragment modification instruction module 428, in this example, may select for a first video frame a first number of frames to add or remove (e.g., 2 frames) and select for a second video fragment a second number of frames to add or remove (e.g., 3 frames).
In example implementations, the video fragment modification instruction module 428 may perform the modification of a video fragment and/or provide information that indicates how the video fragment should be modified. In some implementations, the video fragment modification instruction module 428 may modify a video fragment by specifying how many frames should be added to or removed from a video fragment and invoking functionality that adds or removes the specified number of frames. An example of a function prototype in this regard may be, e.g., modifyVideoFragment(VideoFragment fragment, int frames), where ‘fragment’ refers to the video fragment to modify and ‘frames’ refers to the number of frames to add (e.g., +3 frames) or remove (e.g., −3 frames).
Additionally or alternatively, the video fragment modification instruction module 428 may modify a video fragment by specifying a duration for a video fragment and invoking functionality that adds or removes frames as needed to achieve the specified duration based on the framerate of the video fragment. An example of a function prototype in this regard may be, e.g., setDuration(VideoFragment fragment, double duration), where ‘fragment’ refers to the video fragment to modify and ‘duration’ refers to the desired duration for the video fragment. For example, at 30 fps, humans may be unable to perceive, per second of video, the addition or removal of one-tenth to one-fifth of a second worth of frames. At 30 fps, one-tenth of a second worth of frames amounts to 3 frames (i.e., 30 frames/second×0.1 seconds=3 frames), and one-fifth of a second worth of frames amounts to 6 frames (i.e., 30 frames/second×0.2 seconds=6 frames). The 30 fps framerate is provided by way of example only. Additional and alternative framerates may be selectively employed depending on the particular implementation of the video server, the video content, and the playback device.
The video fragment modification instruction module 428 may also determine the manner in which frames are added or removed from a video fragment 410. For example, when removing a frame from a video fragment 410, the video fragment modification instruction module 428 may remove the first frame of the video fragment, the last frame of the video fragment, or a frame between the first and last frame of the video fragment. Similarly, when adding a frame to a video fragment 410, the video fragment modification instruction module 428 may add the frame before or after the first frame of the video fragment, before or after the last frame of the video fragment, or before or after a frame between the first and last frame of the video fragment. The video fragment modification instruction module 428 may add a frame to a video fragment 410 by repeating a selected frame in the video fragment.
The playback device 400 may thus be configured to modify a video fragment 410 prior to playback of the video fragment or on-the-fly during playback of the video fragment. In some implementations, the video fragment modification instruction module 428 may add frames to or remove frames from a video fragment 410 stored in the video content buffer 406 prior to playback of that video fragment. Accordingly, upon playback, a modified video fragment may already include the additional frames added to the video fragment or may already lack the original frames removed from the video fragment. In other implementations, the playback device 400 may be configured to modify a video fragment 410 once playback of that video fragment has begun. For example, video fragment modification instruction module 428 may flag or otherwise identify the frames that should be added to or removed from a video fragment 410. The video codec 429 may in turn be configured to identify those frames that have been flagged for addition or removal. During playback, the video codec 429, in this example, may skip playback of any frames flagged for removal and repeat playback of any frames flagged for addition. In further implementations, a playback device may be configured to employ a combination of the techniques for modifying a video fragment prior to or during playback. Whether the playback device 400 modifies a video fragment 410 before playback or on-the-fly during playback may be a configurable parameter at the playback device 400. For example, in some implementations, the configuration information 418 may include a value indicating whether the video fragments 410 should be modified prior to or during playback. This value may also be locally or remotely configurable at a playback device using, e.g., one or more of the techniques described herein.
The video fragment modification instruction module 428 may also employ various techniques when adding multiple frames to or removing multiple frames from a video fragment 410. The particular techniques employed may depend on whether modification of the video content should go unnoticed by the viewers. It will be recognized with the benefit of the present disclosure that (i) viewers may be less likely to notice when relatively fewer frames are added or removed from the video fragments but that synchronization across multiple playback devices may take relatively longer to achieve, and (ii) synchronization across multiple playback devices may be achieved more quickly when relatively more frames are added or removed from the video fragments but that viewers may be more likely to notice the disruption in playback. Accordingly, with respect to the number of frames added to or removed from the video fragments, various implementations may be configured according to whether it is more desirable to achieve relatively faster synchronization or avoid noticeable disruptions in playback.
When adding n frames (n>1) to a video fragment 410, the video fragment modification instruction module 428 may repeat each of a sequence of adjacent frames of the video fragments and/or may repeat non-adjacent frames of the video fragment. The sequence of adjacent frames may be the first n frames of the video fragment, the final n frames of the video fragment, or a sequence of n frames between the first and final frame of the video fragment. The non-adjacent frames may be selected randomly or according to an interval (e.g., repeat every nth frame). In addition, where whole numbers of frames would result, each frame of y total non-adjacent subsequences of x number of frames may be repeated where y=n÷x.
Similar techniques may be selectively employed to remove six frames from the video fragment. When removing n frames (n>1) from a video fragment 410, the video fragment modification instruction module 428 may remove each of a sequence of adjacent frames of the video fragments and/or may remove non-adjacent frames of the video fragment. The sequence of adjacent frames may be the first n frames of the video fragment, the final n frames of the video fragment, or a sequence of n frames between the first and final frame of the video fragment. The non-adjacent frames may be selected randomly or according to an interval (e.g., repeat every nth frame). In addition, where whole numbers of frames would result, each frame of y total non-adjacent subsequences of x number of frames may be removed from the video fragment where y=n÷x.
For example, a video fragment 2.0 s in duration having a 30 fps framerate includes 60 total frames as noted above. Adding or removing one-fifth of a second (0.2 s) worth of frames to this example video fragment would add or remove six total frames to the video fragment (i.e., 30 frames/second×0.2 s=6 frames).
To add six frames to the video fragment, for example, one of the following techniques may be selectively employed. Each of the first six frames of the video fragment may be repeated, e.g., frame #1-#6. Each of the last six frames may be repeated, e.g., frame #55-#60. Each of a subsequence of frames may be repeated, e.g., frame #n-#n+5 where 1<n<55. Six frames of the video fragment may be selected at random and repeated. Every fifth frame of the video fragment may be repeated starting with the fifth frame, e.g., frame #5, frame #10, frame #15, frame #20, frame #25, and frame #30. Every fifth frame of the video fragment may be repeated starting with the first frame, e.g., frame #1, frame #6, frame #11, frame #16, frame #21, and frame #26. Each frame of three two-frame sequences may be repeated, e.g., frame #1-#2, frame #30-31, and frame #59-60. Each frame of two three-frame sequences may be repeated, e.g., frame #1-#3 and frame #58-#60.
To remove six frames from the video fragment, for example, one of the following techniques may be selectively employed. Each of the first six frames of the video fragment may be removed, e.g., frame #1-#6. Each of the last six frames may be removed, e.g., frame #55-#60. Each of a subsequence of frames may be removed, e.g., frame #n-#n+5 where 1<n<55. Six frames of the video fragment may be selected at random and removed. Every fifth frame of the video fragment may be removed starting with the fifth frame, e.g., frame #5, frame #10, frame #15, frame #20, frame #25, and frame #30. Every fifth frame of the video fragment may be removed starting with the first frame, e.g., frame #1, frame #6, frame #11, frame #16, frame #21, and frame #26. Each frame of three two-frame sequences may be removed, e.g., frame #1-#2, frame #30-31, and frame #59-60. Each frame of two three-frame sequences may be removed, e.g., frame #1-#3 and frame #58-#60.
Additional examples will be appreciated with the benefit of this disclosure. In addition, the various techniques described above may be employed when adding multiple frames to or removing multiple frames from video fragments having alternative durations and/or alternative framerates. In addition, the manner in which multiple video frames are added to or removed from a video fragment may be configurable parameters at the playback device 400. For example, in some implementations, the configuration information 418 may include one or more values indicating how multiple frames should be added to or removed from a video fragment. These values may also be locally or remotely configurable at a playback device using, e.g., one or more of the techniques described herein.
The number of frames added to or removed from a video fragment may also be a configurable parameter at the playback device 400. For example, in some implementations, the configuration information 418 may also include a value indicating the number of frames to add or remove when modifying a video segment. In some implementations, the number of frames added and the number of frames removed may be independent parameters and separately configurable at the playback device 400. The number of frames added or removed may also be locally or remotely configurable at a playback device using, e.g., one or more of the techniques described herein.
Additionally or alternatively, the playback device 400 may be configured to modify a video fragment by adjusting the display duration of the frames of the video fragment. For example, the playback device 400 may display the video content at 30 fps. In other words, the playback device 400 may display each frame of a video fragment for 1/30 of a second, the display duration. More generally, the display duration (Displaydur) may be described as one divided by the framerate (fps), i.e., Displaydur=1÷fps—the reciprocal of the framerate. To extend or shorten playback of a video fragment, the playback device 400 may add to or subtract from the framerate in the calculation of the display duration. The value added to or subtracted from the framerate may equal or otherwise correspond to the number of frames to adjust a video fragment by (e.g., 2 frames). An extended display duration (Displaydur+) may thus be calculated by subtracting a value equaling or corresponding to a number of frames to the framerate resulting in a larger reciprocal of the framerate, e.g., Displaydur+=1÷(fps−frames). A shortened display duration (Displaydur+) may similarly be calculated by adding a value equaling or corresponding to a number of frames to the framerate resulting in a smaller reciprocal of the framerate, e.g., Displaydur−=1÷(fps+frames). With references to the example above where the framerate is 30 fps and the Displaydur= 1/30 seconds, an extended display duration may be 1/28 seconds where the number of frames to subtract is 2 (e.g., Displaydur+=1÷(30−2)= 1/28), and a shortened display duration may be 1/32 seconds where the number of frames to add is 2 (e.g., Displaydur−=1÷(30+2)= 1/32). Additional examples will be appreciated with the benefit of this disclosure. The video content playback instructions 412 may thus include instructions and/or an instruction module to calculate an extended display duration and a shortened display duration and utilize the extended or shorted display duration during playback of a video fragment 410.
In addition to modifying the video fragments, the playback device 400 may also be configured to modify the audio associated with the video fragments to synchronize the audio of video content across multiple playback devices. The playback device 400 may modify the audio associated with the video content using similar techniques, e.g., adding, removing, extending, or shortening the audio samples of the audio content. Digital audio content, for example, may be segmented into audio samples. In some instances, a two-second fragment of digital audio content may include up to 100,000 audio samples. As with the video frames of a video fragment, one or more of those audio samples may be added to, removed from, extended, or shortened until synchronization is achieved. An audio fragment may include relatively more audio samples than a video fragment includes video frames. As a result, the playback device 400 may need to add, remove, extend, or shorten relatively more audio samples of the audio fragments to achieve synchronization. Techniques similar to those described above may be selectively employed when adding, removing, extending, or shortening audio samples of audio fragments. For example, one or more audio samples may be removed from an audio fragment. The audio samples removed from an audio fragment may be a range of consecutive audio samples, e.g., sample #n-#m, where n is the first audio sample of the range and m is the last audio sample of the range. The audio samples removed from an audio fragment may also be individual audio samples. For example, every xth audio sample may be removed from an audio fragment, e.g., sample #100, sample #200, sample #300, etc., where x=100. The audio samples added to an audio fragment may likewise be a range of consecutive audio samples or individual audio samples. The individual audio samples added to an audio fragment may also be distributed throughout the audio fragment, e.g., by repeating every xth audio sample. The audio samples added to or removed from an audio fragment may also be selected at random. Additional and alternative examples for adding, removing, extending, or shortening the audio samples of an audio fragment will be appreciated with the benefit of this disclosure. The video content playback instructions 412 may thus include instructions and/or an instruction module to modify an audio fragment during playback of the audio content associated with the video content received at the playback device.
In
The video server may receive a request for the playlist (510), e.g., from a playback device. In response, the video server may calculate the age of the playlist based on the time the video server received the request and the live-point time (512). Having calculated the age of the playlist, the video server may prepare a response that includes as its payload the playlist for the video content as well as the age of the playlist (514) and send the response (516), e.g., to the playback device.
Although not shown in
Referring now to
Having received the age of the playlist, the playback device may estimate the live-point time of the video server based on the age of the playlist (606). As described above, the playback device estimates the live-point time of the video server in terms of the clock time of the playback device. The playback device may then obtain, from the video server, the video fragments currently available and buffer the video fragments obtained (608). As described above, the playback device may transmit, to the video server, a request identifying the video fragments listed in the playlist received from the video server. The playback device may then receive, from the video server, a response that includes as its payload the video fragments requested.
Having obtained video fragments from the video server, the playback device may calculate, for each video fragment obtained, a scheduled playback time that is based on the estimated live-point time (610). As described above, calculating the scheduled playback time for a video fragment may include applying an offset. The playback device then selects a video fragment for playback (612) and initiates playback of the selected video fragment (614). The playback device also determines whether the actual playback time of the selected video fragment matches the scheduled playback time (616). To be considered a match, the actual playback time need not exactly equal the scheduled playback time. In some implementations, for example, the playback device may be configured to determine that the actual playback time matches the scheduled playback time when the difference between the scheduled playback time and the actual playback time is less than a predetermined threshold (e.g., a difference less than or equal to 10 ms).
If the actual playback time does not match the scheduled playback time (616:N), then the playback device may modify the scheduled video fragment (618). As described above, the playback device may modify the video fragment by adding or removing one or more frames from the video fragment. Having executed playback of a selected video fragment, the playback device may determine whether additional video fragments are buffered (620). If so (620:Y), the playback device may select the next video fragment for playback (622) and repeats the steps of initiating playback, determining whether the actual playback time of the next video fragment matches its scheduled playback time, and, if necessary, modifying the next video fragment. If no buffered video fragments remain (620:N), then the playback device may obtain an updated playlist from the video server and repeat the steps of estimating the live-point time of the video server based on the age of the updated playlist, obtaining the newly available video fragments identified in the updated playlist, calculating scheduled playback times for the newly available video fragments, and initiating playback of the newly available video fragments with modifications to those video fragments if necessary to align the actual playback times with the respective scheduled playback times.
The steps depicted in
A playback device may connect to a video server and request the playlist of a segmented video stream provided by that video server (702). In response to the request, the video server provides to the playback device the requested playlist along with an age of the playlist (704). As described above, the video server may calculate the age of the playlist based on the time it received the playlist request and the time it last updated the playlist, e.g., when a new video fragment became available. Upon receipt of the playlist, the playback device may calculate the latency of the playlist request (706). As described above, the latency may be the duration between sending the playlist request from the playback device and receiving the playlist request at the playback device. As also noted above, the playback device may assume the upstream and downstream time are the same. Accordingly, the playback device may estimate the downstream time—the time between sending the response from the video server and receiving the response at the playback device—as half the round trip time.
The playback device may then calculate an estimated current time of the video server based on the latency (708), in particular, the portion of the latency attributable to the downstream response from the video server. As described above, the playback device, in this example, estimates the current time of the video server in terms of the clock time of the playback device. The playback device may then calculate an estimated live-point time of the video server based on the estimated current time of the video server and the age of the playlist (710). As noted above, the live-point time of the video server, in this example, refers to the last time the video server updated the playlist of the segmented video stream, e.g., when a new video fragment becomes available. As also noted above, the playback device, in this example, estimates the live-point time of the video server in terms of the clock of the playback device.
The playback device may then download and buffer the one or more of the currently available video fragments identified in the playlist (712). For each video fragment, the playback device calculates a scheduled playback time based on the estimated live-point time of the video server (714). As noted above the playback device may apply an offset when calculating the scheduled playback times. As also noted above, the playback device may, in some example implementations, calculate an actual playback time for each video fragment. Having calculated the scheduled playback times for the video fragments, the playback device selects and initiates playback of a video fragment (716).
The playback device may compare the actual playback time of the selected video fragment to its scheduled playback time (718) and determine whether the actual playback time matches the scheduled playback time (720). If not (720:N), then the playback device may determine whether the actual playback time of the selected video fragment is before or after its scheduled playback time (722). If before (722:BEFORE), then the playback device may add one or more video frames to the selected video fragment (724). If after (722:AFTER), then the playback device may remove one or more frames from the selected video fragment (726).
Having performed playback of the selected video fragment either on time (720:Y), early (722:BEFORE), or late (722:AFTER), the playback device may determine whether additional video fragments remain in the video buffer for playback (728). If so (728:Y), then the playback device selects and initiates playback of the next video fragment (730). The playback device may then repeat the steps of determining whether the actual playback time of the next video fragment matches its scheduled playback time and, if necessary, modifying the next video fragment by adding or removing one or more frames. If no video fragments remain in the video buffer for playback (728:N), then the playback device may request an updated playlist from the video server (732).
As noted above, the updated playlist may identify one or more video fragments newly available from the video server. In response to the request for the updated playlist, the playback device may receive the updated playlist from the video server along with an age of the updated playlist. The playback device may then, in some example implementations, repeat the steps of estimating the live-point time of the video server, calculating scheduled playback times for the new video fragments, and modifying the video fragments as needed to align their actual playback times with their scheduled playback times. As noted above, the playback device need not wait until the video buffer is depleted before requesting an updated playlist. In example implementations, the playback device may request and receive updated playlists as well as newly available video fragments while previously received video fragments are still buffered.
Referring now to
Three example video fragments 802, 804, and 806 are shown in
The markers 816-822 beneath the timelines 800a-c correspond to the actual playback times for each respective video fragment 802-806 in units of the clock time at the playback device. Marker 816 corresponds to the actual playback time for video fragment 802; marker 818 corresponds to the actual playback time for video fragment 804; marker 820 corresponds to the actual playback time for video fragment 806; and marker 822 corresponds to the actual playback time for video fragment that follows video fragment 806 which has been omitted from
As seen in
Referring to timeline 800a, the actual playback time of each video fragment 802-806 occurs after their respective scheduled playback times. In particular, the actual playback time 816 of video fragment 802 occurs after its scheduled playback time 808. As a result the actual playback times 818 and 820 for video fragments 804 and 806 also occur after their respective scheduled playback times 810 and 812. As seen in
In timeline 800b, one or more frames have been removed from video fragment 802′, e.g., either before or during playback. Although playback of a portion 824′ of the video fragment 802′ still extends past the scheduled playback time 810, the duration of the portion 824′ is shorter than the duration of the portion 824. In turn, the durations of the video fragment portion 826′ that extends past the scheduled playback time 812 and the video fragment portion 828′ that extends past the scheduled playback time 814 are also shorter in duration relative to video fragment portions 826 and 828 respectively. As a result, the actual playback times 818′, 820′, and 822′ are closer to the scheduled playback times 810,812, and 814 respectively.
In timeline 800c, one or more frames have been removed from video fragment 804′, e.g., either before or during playback. By removing frames from video fragment 804′, the actual playback time 820′ for video fragment 806 has aligned with the scheduled playback time 812, and the actual playback time 822″ for the next video fragment has aligned with the scheduled playback time 814. Because the actual playback times have aligned with the scheduled playback times when playback of the video fragment 806 is initiated, there is no need to remove any frames from the video fragment 806.
Turning now to
Three example video fragments 852, 854, and 856 are shown in
The markers 866-872 beneath the timelines 800a-c correspond to the actual playback times for each respective video fragment 802-806. Marker 816 corresponds to the actual playback time for video fragment 802; marker 818 corresponds to the actual playback time for video fragment 804; marker 820 corresponds to the actual playback time for video fragment 806; and marker 822 corresponds to the actual playback time for video fragment that follows video fragment 806 which has been omitted from
As again seen in
Referring to timeline 852a, the actual playback time of each video fragment 852-856 occurs before their respective scheduled playback times. In particular, the actual playback time 866 of video fragment 852 occurs before its scheduled playback time 858. As a result the actual playback times 868 and 870 for video fragments 854 and 856 also occur after their respective scheduled playback times 860 and 862. One or more frames may thus be added to video fragment 852 which moves down the actual playback times 868-872 of the subsequent video fragments. As described above, the number of frames added may be limited to a number of frames that would go unnoticed by the viewer during playback of video fragment 852. As also noted above, frames may be added to the video fragment 852 by repeating one or more frames of the video fragment.
In timeline 850b, one or more frames 874 have been added to video fragment 852′, e.g., either before or during playback. Although playback the video fragment 854 still occurs before the scheduled playback time 860, the actual playback time 868′ is moved closer to the scheduled playback time 860 by adding frames to the preceding video fragment 852′. In turn, the actual playback times 870′ and 872′ have also been moved closer to the scheduled playback times 862 and 864 respectively.
In timeline 800c, one or more frames 876 have been added to video fragment 854′, e.g., either before or during playback. By adding frames 876 to video fragment 854′, the actual playback time 870″ for video fragment 856 has aligned with the scheduled playback time 862, and the actual playback time 872″ for the next video fragment has aligned with the scheduled playback time 864. Because the actual playback times have aligned with the scheduled playback times when playback of the video fragment 856 is initiated, there is no need to add any frames to the video fragment 856.
As described above, when the techniques described herein are carried out by multiple playback devices, playback of a segmented video stream by those playback devices may be synchronized. It will also be appreciated with the benefit of the disclosure that multiple playback devices may synchronize playback of a segmented video stream when playback of the video fragments at one playback device is early but playback of the video fragments at another playback device is late. Each playback device, in this example, would add or remove frames as needed to align the actual playback times of the video fragments with the scheduled playback times respectively calculated independently at each playback device. Multiple playback devices may thus synchronize playback of a segmented video stream without coordinating amongst each other and without need of additional infrastructure (e.g., a master control device) that coordinates playback across the playback devices. Rather synchronization is achieved across playback devices through independent operations carried out at each playback device. As a result, synchronization may be achieved without any additional equipment or devices beyond the video server that provides the age of the playlist for the segmented video content and the playback devices themselves that estimate the live-point time of the video server, calculate scheduled playback times, and modify the video fragments as needed to align the actual playback times with the scheduled playback times.
In
The video server 900 may include a set 908 of segmented video content items 910. The video server, in this example, may be configured for on-demand playback or user-scheduled playback of the video content items 910. For example, a user may select one or more of the segmented video content items 910 and initiate a segmented video stream. Once initiated, the playback devices 904a-c may request the playlist 912 and the video fragments 914 for the segmented video stream as described above. Some example scenarios of on-demand or scheduled playback include selecting sports highlights for playback on multiple display screens at a sports bar, selecting music videos for playback on multiple display screens at a nightclub, selecting advertisements for playback on multiple digital billboards, and additional examples which will be appreciated with the benefit of this disclosure.
A user may access the set 908 of segmented video content items 910 via a user interface 916. The user interface 916 may be configured to provide output indicating which segmented video content items 910 are available at the video server along with information describing the segmented video content items available, e.g., name, title, description, duration, category, etc. The user interface 916 may be configured to receive input from the user selecting one or more of the segmented video content items for playback at the playback devices 904a-c. The user interface 916 may be configured to receive input from the user that controls the sequence of multiple segmented video content items 910 selected for playback, e.g., in user-selected order, at random, etc. The user interface 916 may be configured to receive input from the user that controls when the video server initiates the segmented video stream, e.g., immediately, at a user-selected time, etc.
Referring now to
The
One or more aspects of the disclosure may be embodied in a computer-usable data and/or computer-executable instructions, such as in one or more program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types when executed by a processor in a computer or other data processing device. The computer executable instructions may be stored on one or more non-transitory computer readable media such as a hard disk, optical disk, removable storage media, solid state memory, RAM, etc. As will be appreciated by one of skill in the art, the functionality of the program modules may be combined or distributed as desired in various examples. In addition, the functionality may be embodied in whole or in part in firmware or hardware equivalents such as integrated circuits, field programmable gate arrays (FPGA), and the like. Particular data structures may be used to more effectively implement one or more aspects of the disclosure, and such data structures are contemplated within the scope of computer executable instructions and computer-usable data described herein.
In addition, implementations may be selectively configured with respect to how the segmented video content is encoded and delivered to a playback device. Configurations may selectively employ different communication protocols, video formats (e.g., resolution and aspect ratio), framerates, video fragment durations, and video codecs. Some examples of adaptive media streaming communications protocols that may be employed to stream segmented video content from a video server to a playback device include, e.g., Dynamic Adaptive Streaming over HTTP (MPEG-DASH), HTTP Live Streaming (HLS). Some examples of network communication protocols that may be employed to deliver video fragments from a video server to a playback device include TCP/IP, HTTP/1.1, HTTP/2.0, and QUIC (Quick UDP Internet Connections). Example aspect ratios for the segmented video content include 16:9 and 4:3. Example resolutions at a 16:9 aspect ratio include, e.g., 416×234, 480×270, 640×360, 960×540, 1280×720, and 1920×1080. Example resolutions at a 4:3 aspect ratio include, e.g., 400×300, 480×360, 640×480, 960×720, 1280×960, and 1920×1440. Example framerates include, e.g., 12 fps, 15 fps, 24 fps (23.98 fps), 25 fps, 30 fps (29.97 fps), 50 fps, and 60 fps (59.94 fps). The segmented video content may be formatted according to other example video formats including: low-definition television (LDTV) video formats, e.g., 96p, 120p, 144p, 240p, 288p, and 360p; standard-definition television (SDTV) video formats, e.g., 576i 4:3, 576i 16:9, 480i 4:3, and 480i 16:9; enhanced-definition television (EDTV) video formats, e.g., 480p, 576p, 480i, and 576i; high-definition television (HDTV) video formats, e.g., 720p, 1080p, and 1080i; and ultra-high definition television (UHDTV) video formats, e.g., 2160p and 4320p. Some examples of video codecs that may be employed for the segmented video content include H.264/MPEG-4 AVC (Moving Picture Experts Group, Advanced Video Coding) and H.265/MPEG-H Part 2/HEVC (High Efficiency Video Coding). In some example implementations, the video content may be compressed using vector-based compression techniques in which a video frame is presented using contoured colors rather than an arrangement of pixels.
Furthermore, the techniques described herein are not limited to synchronizing playback segmented video content across multiple playback devices. Rather, the synchronization techniques described may be employed to synchronize playback of other types of events. Example include synchronization of (i) sports scores provided by a remote server configured to provide a stream of sports scores to multiple client devices, (ii) stock quotes provided by a remote server configured to provide a stream of stock quotes to multiple client devices, (iii) video game events provided by a remote server configured to execute a video game (e.g., a multiplayer video game) and provide a stream of video game events to multiple video game machines, (iv) segmented audio content such as telephone conferences, digital radio broadcasts, internet podcasts, and other types of segmented audio content, (v) physical simulations such as radioactive decay models, fluid dynamics models, and other types of physical simulations, (vi) discrete event simulations such as automobiles in a grid system, trains in a rail system, and other types of discrete event simulations.
Aspects of the disclosure have been described in terms of illustrative embodiments thereof. While illustrative systems and methods as described herein embodying various aspects of the present disclosure are shown, it will be understood by those skilled in the art, that the disclosure is not limited to these embodiments. Modifications may be made by those skilled in the art, particularly in light of the foregoing teachings.
For example, the steps illustrated in the illustrative figures may be performed in other than the recited order, and that one or more steps illustrated may be optional in accordance with aspects of the disclosure. It will also be appreciated and understood that modifications may be made without departing from the true spirit and scope of the present disclosure. The description is thus to be regarded as illustrative instead of restrictive on the present disclosure.
This application is a continuation of U.S. patent application Ser. No. 14/963,883 entitled “Synchronizing Playback of Segmented Video Content Across Multiple Video Playback Devices” and filed on Dec. 9, 2015, which is incorporated by reference in its entirety herein.
Number | Date | Country | |
---|---|---|---|
Parent | 14963883 | Dec 2015 | US |
Child | 16005953 | US |