System and Method for Decreasing an Initial Buffering Period of an Adaptive Streaming System
System and methods for selecting one of the alternative streams of encoded media from a group of alternative streams of encoded media for use during start-up of playback of the encoded media in accordance with embodiments of this invention are disclosed. The systems and methods begin by determining an estimated stability period for a current bandwidth of a communicative connection between the playback device and a remote system providing the alternative streams of encoded. A test process is then performed on the streams of encoded media to select one of streams of encoded media that provides portions of said encoded media such that an underflow condition does not occur during the estimated stability period. The streaming of encoded media is then commenced by requesting the portions of encoded media be transmitted from the remote server using the selected stream.
Latest DIVX, LLC Patents:
- Systems and Methods for Performing Adaptive Bitrate Streaming
- Systems and Methods for Quick Start-Up of Playback
- Systems and Methods for Providing Variable Speeds in a Trick-Play Mode
- Systems and Methods for Protecting Elementary Bitstreams Incorporating Independently Encoded Tiles
- Systems and Methods for Application Identification
The current application is a continuation of U.S. patent application Ser. No. 15/937,715, filed Mar. 27, 2018, entitled “System and Method for Decreasing an Initial Buffering Period of an Adaptive Streaming System” to Shivadas et al. and will issue as U.S. Pat. No. 10,979,782, which is a continuation of U.S. patent application Ser. No. 13/631,017, filed Sep. 28, 2012, entitled “System and Method for Decreasing an Initial Buffering Period of an Adaptive Streaming System” to Shivadas et al. and issued as U.S. Pat. No. 9,936,267, which claims priority to U.S. Provisional Patent Application No. 61/696,095, filed Aug. 31, 2012, titled “System and Method for Decreasing an Initial Buffering Period of an Adaptive Streaming System”, the disclosures of which are incorporated herein by reference.
FIELD OF THE INVENTIONThis invention generally relates to start-up of playback of an encoded media in an adaptive streaming system. More particularly, this invention relates to systems and methods that can reduce the amount of encoded media buffered by a playback device prior to starting playback of the media.
BACKGROUND OF THE INVENTIONThe term streaming media describes the playback of media on a playback device, where the media is stored on a server and continuously sent to the playback device over a network during playback. For purposes of this discussion, media and/or encoded media is defined as data of a work that includes video, audio, pictures, or another type of presentation that may be displayed, played or in some other way presented by a playback device. Typically, the playback device stores a sufficient quantity of media in a buffer at any given time during playback to prevent disruption of playback due to the playback device completing playback of all the buffered media prior to receipt of the next portion of media. Adaptive bit rate streaming or adaptive streaming involves detecting the present streaming conditions (e.g. the user's network bandwidth and CPU capacity) in real time and adjusting the quality of the streamed media accordingly. Typically, the source media is encoded at multiple bit rates and the playback device or client switches between streaming the different encodings depending on available resources.
Adaptive streaming solutions typically utilize either Hypertext Transfer Protocol (HTTP), published by the Internet Engineering Task Force and the World Wide Web Consortium as RFC 2616, or Real Time Streaming Protocol (RTSP), published by the Internet Engineering Task Force as RFC 2326, to stream media between a server and a playback device. HTTP is a stateless protocol that enables a playback device to request a byte range within a file. HTTP is described as stateless, because the server is not required to record information concerning the state of the playback device requesting information or the byte ranges requested by the playback device in order to respond to requests received from the playback device. RTSP is a network control protocol used to control streaming media servers. Playback devices issue control commands, such as “play” and “pause”, to the server streaming the media to control the playback of media files. When RTSP is utilized, the media server records the state of each client device and determines the media to stream based upon the instructions received from the client devices and the client's state.
In adaptive streaming systems, the source media is typically stored on a media server as a top level index file pointing to a number of alternate streams that contain the actual video and audio data. Each stream is typically stored in one or more container files. Different adaptive streaming solutions typically utilize different index and media containers. The Synchronized Multimedia Integration Language (SMIL) developed by the World Wide Web Consortium is utilized to create indexes in several adaptive streaming solutions including IIS Smooth Streaming developed by Microsoft Corporation of Redmond, Washington, and Flash Dynamic Streaming developed by Adobe Systems Incorporated of San Jose, Calif. HTTP Adaptive Bitrate Streaming developed by Apple Computer Incorporated of Cupertino, Calif. implements index files using an extended M3U playlist file (.M3U8), which is a text file containing a list of URIs that typically identify a media container file. The most commonly used media container formats are the MP4 container format specified in MPEG-4 Part 14 (i.e. ISO/IEC 14496-14) and the MPEG transport stream (TS) container specified in MPEG-2 Part 1 (i.e. ISO/IEC Standard 13818-1). The MP4 container format is utilized in IIS Smooth Streaming and Flash Dynamic Streaming. The TS container is used in HTTP Adaptive Bitrate Streaming.
When a playback device commences adaptive bitrate streaming, the playback device typically starts by requesting portions of media from the lowest bitrate streams (where alternative streams are available). As the playback device downloads the requested media, the playback device can measure the available bandwidth. In the event that there is additional bandwidth available, the playback device can switch to higher bitrate streams.
To start playback of the encoded media, the playback device often attempts to buffer an adequate amount of the requested encoded media be received and stored to provide a minimum amount of playback time prior to commencing the playback. Buffering encoded media can assure that there are no underflow conditions during playback. An underflow condition is when the playback device does not have the next portion of encoded media needed to continue the playback. However, the acquisition of an adequate amount of encoded media usually causes a delay in the start of playback of the encoded media by the device. This is typically not a problem when the playback is only periodically started and/or re-started.
However, recently devices such as tablets and other mobile playback devices have made it easier for users to search the encoded media and re-start the playback at various points in the playback. As such, the conventional start-up requiring an adequate amount of encoded media may cause unsatisfactory pauses or delays in presentation of the playback. As such, those skilled in the art are constantly striving to provide a playback start-up that requires less of the encoded media prior to commencement of the playback to minimize the time needed for a start and/or re-start of the playback.
SUMMARY OF THE INVENTIONSystems and methods for decreasing an initial buffering period in an adaptive bitrate system in accordance with embodiments of this invention are disclosed. In accordance with some embodiments, a playback device selects one of set of alternative streams for start-up of playback of encoded media from a playback position within the encoded media in the following manner. The playback device begins by determining an estimated stability period for a current bandwidth of a communicative connection between the playback device and a remote system providing the alternative streams in response to a playback request. The playback device then selects one of the alternative streams from which each of the portions of the encoded media starting from the playback position can be provided prior to a playback time for the portion of encoded media during the estimated stability period such that an underflow condition does not occur during playback of the encoded media. The playback device then commences streaming of the encoded media by requesting the portions of encoded media be transmitted using the selected one of the alternative stream from the remote server. In accordance with some of these embodiments, the selected alternative stream also can provide a sufficient number of the portions of the encoded media starting from the playback position prior to an end of the estimated stability period to provide a sufficient buffer during playback after the estimated stability period has ended.
The selection of the alternative stream to use is performed in the following manner in accordance with some embodiments of this invention. The selection process begins by selecting of the alternative streams of encoded media to test. An index of portions of the encoded media for the selected stream is read to determine the size of each of the portions of encoded media starting from the playback position in the selected stream. A download time for each of the portions in the selected stream starting from the playback position is then determined based on the size of each of portions. The download time of each of the portions starting from the playback position is then compared to the playback time of the data in each of the portions and to determine whether an underflow condition occurs during the estimated stability period. If no under flow condition will occur, the download time of each of the portions is compared to an end time of the estimated stability period to determine whether a predetermined number of the portions of the selected stream is received prior to the end of the estimated stability period to provide a sufficient buffer for playback after the estimated stability period has ended. The stream is then selected if the process determines no underflow conditions will occur during the estimated stability period and if a sufficient buffer for playback is provided after the estimated stability period ends. In accordance with some of these embodiments, the selection of the streams and comparisons are repeated until a stream is selected.
In accordance with some embodiments of this invention, an alternative selection process is performed in response to a determination that none of the streams can provide the portions without an underflow condition and/or without a sufficient buffer at the end of the estimated stability period. In accordance with some embodiment of this invention the alternative selection process is performed by discarding a first portion from each of portions from each stream starting from the playback position from consideration and then repeating the selecting of one of the alternative streams, comparing of the download time of each of the portions to the playback time of each of the portions, and comparing of the download time of each of the of portions for each off the streams with the end time of the estimated stability period for the alternative streams with the first portion of each of the first portions discarded. In accordance with other embodiments, the alternative selection process is performed by selecting one of the alternative streams from which to obtain the portions of the encoded media and requiring a predetermined number of the portions starting from the playback position be received prior to commencing playback of the encoded media.
In accordance with some embodiments of this invention, the selection of one the alternative streams to test is based on a maximum bitrate of each of the plurality of alternative streams. In accordance with some embodiments of this invention the selection process further includes determining whether the index of portions for the selected alternative stream is stored by the playback device. If the index is not stored by the playback device, the index of portions for the selected alternative stream is requested from the remote system. The index of portions of the selected alternative stream is then received by the playback device in response to the request.
In accordance with some embodiments of this invention, the estimated stability period is determined by receiving the estimated stability period from the remote system. In accordance with other embodiment of this invention, the estimated stability period is determined by reading a predefined value for the estimated stability period from a memory of the playback device. In accordance with still other embodiments, the estimated stability period is calculated by the playback device from information about the communicative connection stored in memory.
Turning now to the drawings, systems and methods for decreasing an initial buffering period in an adaptive bitrate system in accordance with embodiments of the invention are illustrated. Adaptive streaming systems generally require an initial buffering period in order to obtain enough data of the encoded media to avoid underflow conditions in the latter parts of the multimedia presentation. For purposes of this discussion, an underflow condition is when a playback device does not have enough data of the encoded media in a buffer to continue playback of the encoded media. Typically, this buffering period may apply to the initial start of the system, as well as after each trick-play or seek operation. In current playback devices, many stream switching algorithms enforce a rule involving buffering a predetermined duration of video. In many instances, adaptive bitrate streaming systems download portions of video that include closed groups of pictures and can perform stream switches between closed groups of pictures. Examples of rules involving buffering a predetermined duration of video include (but are not limited to) an 8 second rule used in an adaptive bitrate streaming system that downloads closed groups of pictures have 2 second durations. The 8 second rule involves the playback device receives enough data of the encoded media to provide 8 seconds of playback prior to commencing the playback of the encoded media. In accordance with embodiments of this invention, systems and methods are provided that allow only one portion of encoded media (i.e. one closed group of pictures), to be received prior to commencing the playback. This reduces the start-up time from the time needed to receive a specific number of portions of the media to the time needed to receive a single portion of the media to greatly enhance the user's enjoyment of the playback of the encoded media.
Streaming System ArchitectureTurning now to the
In the illustrated embodiment, playback devices include personal computers 18, CE players, and mobile phones 20. In other embodiments, playback devices can include consumer electronics devices such as DVD players, Blu-ray players, televisions, set top boxes, video game consoles, tablets, and other devices that are capable of connecting to a server via HTTP and playing back encoded media. Although a specific architecture is shown in
The processes for providing methods and systems in accordance with this invention are executed by a playback device. The relevant components in a playback device that perform the processes in accordance with an embodiment of the invention are shown in
In accordance with many embodiments of this invention, a process for providing start-up of a playback process with only a minimal amount of data of the encoded media is provided by the playback device. In adaptive streaming systems, such as the system described with reference to
An underflow condition is when the playback device does not have enough data of the encoded media stored in a buffer to continue playback.
A process performed by a playback device for selecting a stream of encoded media in an adaptive streaming system such that playback may begin after receiving one portion of the encoded data of the stream in accordance with embodiments of this invention is shown in
In 310, the playback device tests the streams of encoded media to determine whether an underflow condition will occur during playback in the estimated stability period if the stream is used. The streams are also tested to determine whether a predetermined number of portions of the encoded media will be received during the estimated stability period to provide a sufficient buffer during playback. The predetermined number is a number of portions that provide data for a specified number of playback time periods after the estimated stability period expires. For example, a system may require enough portions of data to provide for 4 time periods of playback after the end of the estimated stability period or 8 seconds of playback time in accordance with an embodiment of this invention. However, the precise amount of portions and the amount of playback time required needed may vary based upon the configuration of the system and/or playback device.
A stream is selected to use to receive the portions of the encoded media needed for playback at 315. The stream is selected because the test process determined that no underflow conditions will occur during the estimated stability period when portions of the encoded media are received using the stream. Furthermore, the stream may also satisfy a requirement that at least the predetermined number of portions of the encoded media will be received by the end of the estimated stability period to provide a sufficient buffer during playback after the estimated stability period in accordance with some embodiments of this invention. The buffer can allow the playback device to determine an adequate stream to use to receive portions of the encoded media based upon the bandwidth conditions after the estimated stability period to continue playback. After the stream is selected, the playback device transmits a request to the remote server to provide portions of the encoded media using the selected stream in 320. The playback device then begins playback of the encoded media after the first portion of the encoded media is received in 325 and process 300 ends.
A process performed by the playback device to test the streams of encoded media to select a stream that provides portions of the encoded media starting from the playback position that do not cause an underflow condition during playback in the estimated stability period and provides a predetermined number of portions prior to the end of the estimated stability period to provide a sufficient buffer during playback in accordance with an embodiment of this invention is shown in
In 415, the playback device performs a test process on the streams. An embodiment of the test process is described below with reference to
Alternatively, process 400 may discard the first portion of encoded data from each stream in 425 and repeat the test process from 415 using the stream with the discarded first portion. This allows the process to try to determine a stream that can be used to allow star-up of the playback of the encoded media after two portions of the encoded media are downloaded.
A process performed by playback device in 415 of process 400 to select a stream in accordance with embodiments of this invention is shown in
After the stream is selected, the portion index for the selected stream is read in 510. Process 400 then determines the portions of the stream starting from the playback position of the encoded media and the size of each portion that may be downloaded during the estimated stability period in 515. The information about the size of the portions is then used to determine the download time of each portion of the selected stream in 520. In 525, the download time of each of the portions starting from the playback position is compared to a playback time for the information to determine whether an underflow condition may occur. If process 500 determines that an underflow condition may occur for the selected stream, a new stream is selected, if available, in 540 and process 500 is repeated from 510 for the subsequent stream. If there are no more streams available, process 500 may return an indication that test process 500 was unsuccessful in selecting a stream.
If process 500 determines that no underflow condition may occur, process 500 determines whether a predetermined number of portions of the stream starting from the playback position of the encoded media may be downloaded prior to the end of the estimated stability period. If it is determined that at least the predetermined number of portions will be downloaded, the stream will provide a sufficient buffer for playback at the end of the estimated stability period and process 500 selects the stream for use in 535. Otherwise, a new stream is selected, if available, in 540 is repeated from 510 for the subsequent stream. If there are no more streams available, process 500 may return an indication that test process 500 was unsuccessful in selecting a stream.
Example of Test ProcessAn illustration of the selection of a stream for use in receiving portions of the encoded media in accordance with an embodiment is provided with respect to
The test process reads the portion index for stream 702 and determines the playback times for the portions of encoded media starting from the playback position as shown in line 702. The playback times of the portions of stream 702 are compared to the playback times. As can be seen in
The above is description of embodiments of systems and methods in accordance with the present invention. It is foreseen that other skilled in the art will design alternative systems that infringe on this invention as set forth in the following claims either literally or through the Doctrine of Equivalents.
Claims
1. (canceled)
2. A method of determining whether an underflow condition will occur in a particular stream of encoded media during a stability period, the method comprising:
- requesting playback of content from one or more servers;
- estimating the stability period of a communicative connection between a playback device and the one or more servers, where the estimated stability period is a period of time that the communicative connection is expected to remain stable based on bandwidth conditions;
- selecting one of a plurality of streams of encoded media to be assessed, where the selected stream comprises encoded media divided into a plurality of portions, each portion having the same playback duration;
- determining a download time for each of the plurality of portions based on the size of each of the plurality of portions; and
- determining whether an underflow condition will occur in the selected stream during the estimated stability period by comparing the determined download time of each of the plurality of positions to the playback duration of each of the plurality of portions and accumulating the difference.
3. The method of claim 2, wherein selecting one of the plurality of streams of encoded media to be assessed comprises selecting the stream of encoded media with the highest maximum bit rate.
4. The method of claim 3, wherein selecting one of the plurality of streams of encoded media to be assessed, determining a download time for each of the plurality of portions, and determining whether an underflow condition will occur in the selected stream is repeated until a stream is selected where an underflow condition will not occur.
5. The method of claim 4, wherein the next selected one of the plurality of streams of encoded media to be assessed is the stream of encoded media with the next highest maximum bit rate.
6. The method of claim 2, wherein determining the download time for each of the plurality of portions comprises reading an index of portions of the selected stream of encoded media to determine the size of each of the plurality of portions of the stream of encoded media.
7. The method of claim 2, further comprising:
- discarding a first portion from each of the plurality of portions of the selected stream from consideration in response to a determination that the plurality of portions of the stream of the encoded media cannot be provided using any of the plurality of streams prior to playback time during the estimated stability period; and
- repeating the steps of selecting one of the plurality of streams, determining a download time for each of the plurality of portions without the first portion, and determining whether an underflow condition will occur without the first portion.
8. The method of claim 2, further comprising performing an alternative selection process for selecting one of the plurality of alternative streams in response to a determination that an underflow condition will occur during the estimated stability period.
9. The method of claim 2, further comprising, in response to a determination that an underflow will occur in all of the plurality of streams during the estimated stability period, requiring a predetermined number of the plurality of portions be received prior to commencing playback of the encoded media.
10. The method of claim 2, wherein determining the estimated stability period comprises receiving the estimated stability period from the one or more servers.
11. The method of claim 2, wherein determining the estimated stability period comprises reading a predefined value for the estimated stability period from a memory of the playback device.
12. A playback device for playing back a stream of encoded media comprising:
- a memory;
- a processor configured via a client application stored in the memory to: request playback of content from one or more servers; estimate a stability period of a communicative connection between a playback device and the one or more servers, where the estimated stability period is a period of time that the communicative connection is expected to remain stable based on bandwidth conditions; select one of a plurality of streams of encoded media to be assessed, where the selected stream comprises encoded media divided into a plurality of portions, each portion having the same playback duration; determine a download time for each of the plurality of portions based on the size of each of the plurality of portions; and determine whether an underflow condition will occur in the selected stream during the estimated stability period by comparing the determined download time of each of the plurality of positions to the playback duration of each of the plurality of portions and accumulating the difference.
13. The playback device of claim 12, wherein selecting one of the plurality of streams of encoded media to be assessed comprises selecting the stream of encoded media with the highest maximum bit rate.
14. The playback device of claim 13, wherein selecting one of the plurality of streams of encoded media to be assessed, determining a download time for each of the plurality of portions, and determining whether an underflow condition will occur in the selected stream is repeated until a stream is selected where an underflow condition will not occur.
15. The playback device of claim 14, wherein the next selected one of the plurality of streams of encoded media to be assessed is the stream of encoded media with the next highest maximum bit rate.
16. The playback device of claim 12, wherein determining the download time for each of the plurality of portions comprises reading an index of portions of the selected stream of encoded media to determine the size of each of the plurality of portions of the stream of encoded media.
17. The playback device of claim 12, wherein the processor is further configured via the client application stored in the memory to:
- discard a first portion from each of the plurality of portions of the selected stream from consideration in response to a determination that the plurality of portions of the stream of the encoded media cannot be provided using any of the plurality of streams prior to playback time during the estimated stability period; and
- repeat the steps of selecting one of the plurality of streams, determining a download time for each of the plurality of portions without the first portion, and determining whether an underflow condition will occur without the first portion.
18. The playback device of claim 12, wherein the processor is further configured via the client application stored in the memory to perform an alternative selection process for selecting one of the plurality of alternative streams in response to a determination that an underflow condition will occur during the estimated stability period.
19. The playback device of claim 12, wherein the processor is further configured via the client application stored in the memory to, in response to a determination that an underflow will occur in all of the plurality of streams during the estimated stability period, require a predetermined number of the plurality of portions be received prior to commencing playback of the encoded media.
20. The playback device of claim 12, wherein determining the estimated stability period comprises receiving the estimated stability period from the one or more servers.
21. The playback device of claim 12, wherein determining the estimated stability period comprises reading a predefined value for the estimated stability period from a memory of the playback device.
Type: Application
Filed: Apr 9, 2021
Publication Date: Dec 30, 2021
Patent Grant number: 11528540
Applicant: DIVX, LLC (San Diego, CA)
Inventors: Abhishek SHIVADAS (San Diego, CA), Kourosh SOROUSHIAN (San Diego, CA)
Application Number: 17/227,026