Rate control is essential for media streaming over packet networks. The challenge in delivering bandwidth-intensive content like multimedia over capacity-limited, shared links is to quickly respond to changes in network conditions by adjusting the bitrate and the media encoding scheme to optimize the viewing and listening experience of the user. In particular, when transferring a media stream over a connection that cannot provide the necessary throughput, several undesirable effects arise. For example, a network buffer may overflow, resulting in packet loss causing garbled video or audio playback, or a media player buffer may underflow resulting in playback stall.
There are several different mechanisms to implement multimedia transport over packet networks. The first category of media network transports is streaming protocols, such as the Real Time Protocol (RTP). Streaming protocols are specifically designed to transport multimedia information with explicit timing information, and packets are generally expected to be sent at the time the media frame(s) in the payload are due.
Another category is pseudo-streaming. The most commonly used transport protocol for pseudo-streaming is Transmission Control Protocol (TCP), designed originally for bulk data transfers. As such, TCP does not explicitly indicate the timing information of the media in the payload. TCP is used to merely transfer a media clip (such as, e.g., .flv or .mp4 files). The media time information is implicitly sent within the media clip format, and the player simply plays back the clip as portions of it are downloaded. HTTP is commonly used as the download protocol over TCP
In the case of streaming protocol transports, standard bodies have recommended protocols, or extensions to protocols, to address the issue of transmission flow control and the implementation of bitrate management algorithms. Internet Engineering Task Force (IETF), in RFC 3550, specifies Real-time Transport Control Protocol (RTCP) as a companion to RTP and the fundamental building block to implement bit rate/packet rate control in RTP streaming media. Several extensions to RTCP, suited for high capacity networks, follow this original recommendation. Other proprietary protocols such as Real Time Messaging Protocol (RTMP) feature similar mechanisms.
Pseudo-streaming transport, on the other hand, usually do not require additional protocols for flow control. TCP itself uses its native endpoint feedback to perform flow control over its connections. TCP packets are identified by packet sequence numbers, which are acknowledged in the opposite direction via acknowledgement (ACK) packets. ACKs are unaware of the type and properties of the payload, thus making it difficult to implement a bitrate management algorithm for pseudo-streaming.
There are several challenges encountered while delivering a multimedia session over packet wireless networks. These challenges can include:
For wireless mobile phones with RTP or similar streaming protocols, the implementation of this adaptive bitrate management is challenging due to:
In the case of pseudo-streaming sessions, TCP handles lost packets by requesting retransmissions. Issues, such as quality degradation due to dropped media packets, are therefore non-existent even though the actual occurrence of packet loss in the system layer leads to increased latency in the data stream, increasing the probability of media players stalling due to empty buffers. The following notable problems occur:
Reference will now be made in detail to the exemplary embodiments consistent with the invention, the examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers will be used throughout the drawings to refer to the same or like parts.
Adjusting the bitrate of streaming media sessions according to instantaneous network capacity can be a critical function required to deliver streaming media over wireless packet networks. Adaptive bitrate management is a comprehensive framework and method that enables the delivery of self-adjusting streaming or pseudo-streaming sessions to media players, for example, such as standard 3GPP-compliant media players, or Flash plugin used for web-embedded video. Adaptive bitrate management includes, among other things, an adaptive bitrate controller and a variable bitrate encoder, both of which allow the adaptive bitrate management the ability to implement joint session bitrate management for audio, video, and/or other streams simultaneously. In the case of a pseudo-streaming session, the adaptive bitrate controller can also include a media muxer to assemble a media clip by multiplexing audio and video frames generated by a variable bitrate encoder along with the necessary timestamps to indicate an instant of playback.
Adaptive bitrate management can be applied to all media transports (or protocol suites) that can be used for media transfer and provide transmission progress report mechanisms. The transmission progress report can apply to a multimedia session as a whole, or individual multimedia streams (audio, video, text, etc). The adaptive bitrate manager can include the ability to provide, to the sender, a way to map media time information to the bytes received by the receiver, either explicitly as in the case of RTCP, or implicitly, as in the TCP case through ACK packets.
Terminal 102 is a hardware component including software applications that allow terminal 102 to communicate and receive packets corresponding to streaming media. Terminal 102 provides a display and one or more software applications, such as a media player, for displaying streaming media to a user of terminal 102. Further, terminal 102 has the capability of requesting and receiving data packets, such as data packets of streaming media, from the Internet. For example, terminal 102 can send request data to content servers 112-114 for a particular file or object data of a web page by its URL, and the content server of the web page can query the object data in a database and send the corresponding response data to terminal 102. In some embodiments, response data may be routed through adaptive bitrate manager 108.
While terminal 102 can be a wired terminal, some embodiments of the invention may prefer using a mobile terminal because mobile terminals are more likely to be in networks that would benefit more from an adaptive bitrate manager. The network connection tends to be less stable as compared to wired network connection due to, for example, the changing position of the mobile terminal where data rate transmissions between the mobile terminal and the network can fluctuate, in some cases quite dramatically.
Gateway 104 is a device that converts formatted data provided in one type of network to a particular format required for another type of network. Gateway 106, for example, may be a server, a router, a firewall server, a host, or a proxy server. Gateway 104 has the ability to transform the signals received from terminal 102 into a signal that network 106 can understand and vice versa. Gateway 104 may be capable of processing audio, video, and T.120 transmissions alone or in any combination, and is capable of full duplex media translations.
Networks 106 and 110 can include any combination of wide area networks (WANs), local area networks (LANs), or wireless networks suitable for packet-type communications, such as Internet communications. Further, networks 106 and 110 can include buffers for storing packets prior to transmitting them to their intended destination.
Adaptive bitrate manager 108 is a server that provides communications between gateway 104 and content servers 112-114. Adaptive bitrate manager 108 can optimize performance by adjusting a streaming media bitrate according to the connection, i.e., media network, between adaptive bitrate manager 108 and terminal 102. Adaptive bitrate manager 108 can include optimization techniques, further described below.
Content servers 112-114 are servers that receive the request data from terminal 102, process the request data accordingly, and return the response data back to terminal 102 through, in some embodiments, adaptive bitrate manager 108. For example, content servers 112-114 can be a web server, an enterprise server, or any other type of server. Content servers 112-114 can be a computer or a computer program responsible for accepting requests (e.g., HTTP, RTSP, or other protocols that can initiate a media session) from terminal 102 and serving terminal 102 with streaming media.
Media player 202 is computer software for playing multimedia files (such as streaming media) including video and/or audio media files. Such popular examples of media player 202 can include Microsoft Windows Media Player, Apple Quicktime Player, RealOne Player, and Adobe Flash Plugin for web-embedded video. In some embodiments, media player 202 decompresses the streaming video or audio using a codec and plays it back on a display of terminal 102. Media player 202 can be used as a stand alone application or embedded in a web page to create a video application interacting with HTML content. Further, media player 202 can provide feedback on media reception to the adaptive bitrate manager 108 in the form of media receiver reports. Media receiver reports can include RTCP packets for an RTP streaming session, or TCP ACKs for a pseudo-streaming session.
Buffer 204 (also known as terminal buffer 204) is a software program and/or a hardware device that temporarily stores multimedia packets before providing the multimedia packets to media player 202. In some embodiments, buffer 204 receives the multimedia packets from adaptive bitrate manager 108 via network 106. In some embodiments, buffer 204 receives the multimedia packets from a device other than adaptive bitrate manager 108. Once buffer 204 receives multimedia packets (or portions of a media clip if pseudo-streaming), it can provide the stored multimedia packets to media player 202. While
Adaptive bitrate controller 210 of adaptive bitrate manager 108 is a software program and/or hardware device that periodically receives media receiver reports, e.g., such as RTCP receiver reports or TCP ACKs, from terminal 102 and provides an optimal session bitrate (or encoding parameters) to be used during the next period for encoding multimedia data to be sent to terminal 102. In some embodiments, adaptive bitrate controller 210 includes a buffer for storing the current and previous media receiver reports. To compute the optimal session bitrate or encoding parameters, adaptive bitrate controller 210 uses one or more network state estimators for estimating the state of the streaming media network and computing the optimal session bitrate to be used in the next reporting interval. For example, these network state estimators can estimate a media time in transit (MTT), a bitrate received at terminal 102, a round trip time estimate (RTTE), and a packet loss count. Adaptive bitrate controller 210 can use the history and statistics of the estimator to implement different control algorithms to compute the optimal session bitrate. Further, adaptive bitrate controller 210 may update the optimal session bitrate by determining the stability of the streaming media network. This can be done by checking the newly computed estimators for compliance to one or more stability criterion. Using the estimations and the stability criterion, adaptive bitrate controller 210 can determine whether to adjust the outgoing bitrate or keep the current outgoing bitrate unchanged for the next period. After this determination, adaptive bitrate controller 210 provides the optimal session bitrate value to variable bitrate encoder 214.
Buffer 212 of adaptive bitrate manager 108 is a software program and/or a hardware device that temporarily stores media data before providing the media data to variable bitrate encoder 214. In some embodiments, buffer 212 receives the media data from one or more content servers 112-114 via network 110. In some embodiments, buffer 212 receives the media data from a device other than content servers 112-114. In some pseudo-streaming embodiments, buffer 212 can include a de-muxer (such as de-muxer 350 illustrated in
Variable bitrate encoder 214 of adaptive bitrate manager 108 is a software program and/or hardware device that receives optimal session bitrate data or encoding parameters from adaptive bitrate controller 210 and provides, to media packetization 216, audio and/or video data that are encoded at a bitrate matching the optimal session bitrate provided by adaptive bitrate controller 210. For a pseudo-streaming session, variable bitrate encoder 214 can provide the audio and video frames to media muxer 218 instead. Variable bitrate encoder can include, among other things, a bitrate splitter 220, an audio encoder 222, a video encoder 224, and, for some embodiments, a frame dropper 226.
Bitrate splitter 220 is a software program and/or a hardware device that receives the optimal session bitrate data from adaptive bitrate controller 210 and allocates optimal bitrates to be used when encoding the audio and video media data during the next interval. The allocation is such that the summation of bitrates for all tracks, when combined, can be substantially equal to the optimal session bitrate specified by adaptive bitrate controller 210. For example, this allocation could be based on a predetermined allocation, user preference, optimal performance data, privileging one type of data over the other, the amount of audio and video data to be provided, and/or any combination of the above. For example, bitrate splitter 220 may privilege audio quality in a way that if a reduced bitrate is specified, bitrate splitter 220 will reduce the video bitrate first and postpone reducing the audio bitrate as much as possible.
Audio encoder 222 and video encoder 224 are software programs and/or hardware devices that can receive their respective bitrate allocation from bitrate splitter 220 (or from the adaptive bitrate controller 210 directly) and provide outgoing media data encoded to match the bitrate of their respective bitrate allocation for the next reporting interval. Both audio encoder 222 and video encoder 224 can receive their respective media data from buffer 212 and output this media data according to its respective bitrate allocation from bitrate splitter 220. After the bitrate has been determined for both audio and video, it is the responsibility of each encoder to deliver maximum quality in the corresponding media track. For example, audio encoder 222 can generate variable bitrates by adjusting spectral quantization and cutoff frequency. Further, video encoder 224 can generate variable bitrates, for example, by adjusting Discrete Cosine Transform (DCT) coefficient quantization or by introducing frame dropping. This frame dropping can be executed, when needed, by frame dropper 226.
Frame dropper 226 is a software program and/or a hardware device that can be triggered when the desired bitrate is less than a quality threshold. This threshold can be codec dependent, and represents the bitrate value below which the use of coarser quantization leads to intolerable artifacts in the image. Frame dropper 226 can dynamically determine a frame dropping rate based on the desired video bitrate and the bitrate being generated by video encoder 224. To compensate inherent bitrate fluctuations in the video bitrate at the output of the encoder, frame dropper 226 can dynamically update the dropping rate by using a sliding window covering the byte size history of recently encoded frames.
Media packetization 216 is a software program and/or a hardware device that receives the audio and video media data from audio encoder 222 and video encoder 224 and translates this data into a packet format to deliver a streaming session. Media packetization 216 can either create separate packets for video and audio data, to be transferred over separate network channels, or combine audio and video in a single media stream. Besides carrying the audio and media data, media packets can include, among other things, a payload-type identifier for identifying the type of content, a packet sequence number, time stamping for allowing synchronization and jitter calculations, and delivery monitoring data. This type of data can later assist adaptive bitrate controller 210 in determining the quality of service provided by the network when adaptive bitrate controller 210 receives a corresponding media receiver report from terminal 102. Upon translating this data into a packet format, media packetization 216 transmits the data through network buffer 230 of network 106 to terminal buffer 204 of terminal 102. In addition adaptive bitrate manager 108 saves the history of sent media packets in the audio and video tracks. This history data can include, among other things, the time that each packet is sent, the sequence number, and the size of each media packet.
In some embodiments, such as where pseudo-streaming is involved, media muxer 218 can replace media packetization 216. Media muxer 218 is a software program and/or a hardware device that receives the individual audio and video media data from, either directly or indirectly, audio encoder 222 and video encoder 224 and combines this data into a media clip file format to deliver a pseudo-streaming session. Media muxer 218 sends subsequent fragments of the media file assembled on the fly to media player 202, using TCP as a transport protocol and in some embodiments, HTTP as the download protocol over TCP. Media muxer 218 can correspond to the muxer disclosed in U.S. application Ser. No. 12/368,260, titled “Method for Controlling Download Rate of Real-Time Streaming as Needed by Media Player,” which is incorporated herein by reference, to add session timing functionality to increase the effectiveness of adaptive bitrate management in pseudo-streaming sessions. For pseudo-streaming sessions, adaptive bitrate manager 108 (e.g., as described below in
The media receiver report can be, for example, an RTCP receiver report or a TCP ACK in the case of pseudo-streaming. RTCP is a protocol for providing quality control information for an RTP flow, such as the transmission provided by media packetization 216 of adaptive bitrate manager 108. More specifically, RTCP can partner with media packetization 216 of adaptive bitrate manager 108 in the delivery and packaging of multimedia data. In some embodiments, media player 202 periodically transmits the RTCP receiver report. RTCP receiver report can provide feedback on the quality of service being provided by media packetization 216.
The most widely used method for streaming media on the Internet is HTTP based pseudo-streaming, carried by the Transmission Control Protocol (TCP). TCP implements its own generic (not media specific) packetization protocol. TCP internally uses ACKs to provide feedback on received TCP packets and therefore provides transport flow control. In the pseudo-streaming case, TCP ACK packets are used to update the key network estimators described previously. The most notable addition is to map TCP sequence numbers, as described in U.S. application Ser. No. 12/368,260 referred to above, to a stored index of media times and bytes to estimate Media Time In Transit.
While TCP and RTP/RTCP are used as exemplary embodiments to explain the adaptive bitrate control method, one of ordinary skill could appreciate that this adaptive bitrate control method is applicable to any protocol that fulfills the functions of media transport with sequencing and timing information and media transport feedback with information about received packets (covering sequencing, timing, loss rate, etc.).
Further, in some streaming embodiments, the media receiver report can be a single report having both audio and video report data (when audio and video are multiplexed into a single stream) or it can be separated into multiple reports (e.g., such as in the RTCP case where RTP carries audio and video in separate streams), for example, such as a receiver report for audio report data and a another receiver report for video report data. The media receiver report data can include, among other things, data regarding the sequence number of the most recently received media packet at terminal 102, the timestamp of the last packet received by terminal 102 reported in the media receiver report, the number of bits sent from this report, a round trip time, and a number of packets lost.
After receiving the receiver report, adaptive bitrate controller 210 can estimate the state of the network for determining whether to update the session bitrate for the next period. Adaptive bitrate controller 210 can save the newly received receiver report in a cumulative history and record the time at which the packet was received. To estimate the state of the network, adaptive bitrate controller 210 can combine data from the received media receiver report, the previously received receiver reports stored by the adaptive bitrate manager 108, and the history of sent media packets stored by adaptive bitrate manager 108. Adaptive bitrate controller can estimate, for both streaming and pseudo-streaming sessions, the following exemplary data by using network state estimators:
Adaptive bitrate controller 210 uses the stability criterion to determine the stability of the streaming media network. While any number of algorithms can be used to determine the stability, one exemplary embodiment compares the estimated MTT with the RTTE. If the MTT and the RTTE remain close, adaptive bitrate controller 210 can determine that the streaming media network can properly support the current bitrate. Further, by comparing the bitrate received with the current bitrate session, adaptive bitrate controller 210 can determine that the network can cope with the load imposed by adaptive bitrate manager 108.
Adaptive bitrate controller 210 uses the estimations and the stability criterion to implement control algorithms for discovering the network capacity and adjusting the session bitrate accordingly. Adaptive bitrate controller 210 can define the variations of the control algorithms to operate in two different modes: (1) acquisition mode and (2) normal mode. While two modes have been illustrated in this exemplary embodiment, one of ordinary skill in the art will appreciate that multiple modes of operation can be defined.
In the normal mode, adaptive bitrate controller 210 operates in the steady state condition, indicating that the network is either maintaining or incrementally increasing the effective capacity seen by the system. In some embodiments, while operating in normal mode, the control algorithms can increase the session bitrate while the MTT is not increasing and the bitrate received remains close to the current session bitrate.
Adaptive bitrate controller 210 generally triggers the acquisition mode when it detects high packet loss, a sudden increase in the MTT, and/or a value of the MTT higher than a threshold (MTT threshold), which can be a fixed value or can be obtained dynamically for an adaptive control mechanism. Once triggered, acquisition mode sets the optimal session bitrate to a value, such as the bitrate received or a fraction of the received bitrate. Because the bitrate received can be the best estimation of the actual bitrate that the network can support at that particular point in time, adaptive bitrate manager 108 should quickly return back to a stable condition. In some embodiments, the new session bitrate is simply set to be a fraction of the current session bitrate.
In this embodiment, while only terminal 102 is illustrated for communicating with adaptive bitrate manager 108, one of ordinary skill in the art will appreciate that multiple terminals can communicate with adaptive bitrate manager 108, where each of the terminals can be located in substantially different network environments. Such environments can vary significantly, as different underlying wireless technologies and fixed network topologies can be used. Therefore, for some embodiments, it may be desirable to discover characteristics of the network environment beforehand so that key parameters in the framework are adjusted automatically. For example, adaptive bitrate controller 210 could set the MTT threshold at the beginning of the multimedia session to a value correlated to the RTTE. In this way, the system can attempt to follow the general stability criterion provided by adaptive bitrate controller 210. As indicated above, this stability criterion could be based on, independent of the network environment (a prior unknown), the comparison between the MTT and the RTTE, which is largely advantageous given that the actual network infrastructure type can rarely be determined a priori. In some embodiments, the optimal session bitrate can be updated by determining the difference between the MTT and the RTTE and adjusting the session bitrate according to the difference. For example, the larger the difference, the greater adjustment from the current session bitrate to an optimal session bitrate. In some embodiments, the MTT used for this determination can be based on the one or more historical values of MTT.
Using the control algorithms to compute a session bitrate update as described above, adaptive bitrate controller 210 determines an optimal session bitrate for transmitting media data to terminal 102. Adaptive bitrate controller 210 provides (304) the optimal session bitrate data to bitrate splitter 220 of variable bitrate encoder 214. Upon receiving the optimal session bitrate data, bitrate splitter 220 allocates the optimal session bitrate between the audio and video streams. For example, this allocation could be based on a predetermined allocation, a user preference optimal performance data, privileging one type of data over the other, the amount of audio and video data to be provided, and/or any combination of the above. For example, bitrate splitter 220 may privilege audio quality in a way that if a reduced bitrate is specified, bitrate splitter 220 reduces the video bitrate first and postpones reducing the audio bitrate as much as possible.
After splitting the optimal session bitrate into an optimal audio bitrate and an optimal video bitrate, bitrate splitter provides (306) the optimal audio bitrate to audio encoder 222 and provides (308) the optimal video bitrate to video encoder 224. Upon receiving their respective bitrate, both audio encoder 222 and video encoder 224 receive their respective media data from buffer 212 and output their respective audio media data and video media data according to the respective bitrate allocation from bitrate splitter 220. After the bitrate has been determined for both audio and video, it is the responsibility of each encoder to deliver maximum quality in the corresponding media track by maintaining the requested bitrate until the next interval. For example, audio encoder 222 can generate variable bitrates by adjusting quantization and cutoff frequency. Further, video encoder 224 can generate variable bitrates, for example, by adjusting Discrete Cosine Transform (DCT) coefficient quantization or by introducing frame dropping. This frame dropping can be executed, when needed, by frame dropper 226. In some embodiments, the encoding parameters of the encoders are not modified until they receive optimal bitrate data from bitrate splitter 220, which would be provided in a subsequent interval, because the encoders 222, 224 are slave devices to bitrate splitter 220.
In some embodiments, where frame dropping is preferred, video encoder 224 can provide (310) the video media data to frame dropper 226 when the optimal session bitrate is less than a quality threshold. This threshold can be codec dependent, and represents the bitrate value below which the use of coarser quantization leads to intolerable artifacts in the image. When frame dropping is triggered, frame dropper 226 can dynamically determine a frame dropping rate based on the desired video bitrate and the bitrate being generated by video encoder 224. To compensate inherent bitrate fluctuations in the video bitrate at the output of video encoder 224, frame dropper 226 can dynamically update the dropping rate by using a sliding window covering the byte size history of recently encoded frames. Frame dropper 226 can drop the frames accordingly to deliver the optimal session bitrate. In addition, in some embodiments, video encoder 224 can utilize the network state estimator of adaptive bitrate controller 210 to encode video in a more resilient manner. In some embodiments, packet loss information can be used in conjunction with the MTT by video encoder 224 to determine if a Group of Picture (GOP) value should be reduced, increasing the number of frames per second sent in the video stream. In some embodiment, if frame dropping is not needed, video encoder 224 can simply provide the video media data to media packetization 216 or media muxer 218 (illustrated in
Upon receiving the audio media data and the video media data, media packetization 216 translates this data into a packet format. RTP defines a standardized packet format for delivering audio and video over the Internet, while TCP performs the same function for generic data. Upon translating this data into a packet format, media packetization 216 transmits (316) the audio and video media packets to network buffer 230 of network 106. Similarly, in the pseudo-streaming case, upon receiving audio and video data from the variable bitrate encoder 214, media muxer 218 creates a new portion of the media clip file and sends it to the player using TCP and possibly HTTP, which will be further described below in
Upon receiving the packets, network buffer 230 of network 106 can store the packets until it is the packets turn to be provided to terminal 102. While only buffer 230 is illustrated, one of ordinary skill in the art will appreciate that one or more separate buffers can exist for each of the audio media packets and the video media packets. When it is the packets turn, network buffer 230 transmits (318) the packets to terminal buffer 204.
Upon receiving the packets, terminal buffer 204 of terminal 102 can store the packets until it is the packets turn to be provided to media player 202. While only buffer 230 is illustrated, one of ordinary skill in the art will appreciate that one or more separate buffers can exist for each of the audio media packets and the video media packets. When it is the packets turn, buffer 204 provides (320) the packets to media player 202. In turn, media player 202 can extract the relevant data out of packets and provide this data to adaptive bitrate manager 108 in a subsequent receiver report.
De-muxer 350 can be a software program and/or a hardware device that intercepts and parses the incoming media download and retrieves information of the media, such as clip timing information as explained below.
Flow control module 352 can be a software program and/or a hardware device that applies download rate patterns, and may frame the media data, and program the frame scheduler 354 accordingly.
Frame scheduler 354 can be a software program and/or a hardware device that triggers frame transmission according to timing specified by flow control module 352, variable bitrate encoder 214, and/or adaptive bitrate controller 210.
Media database 356 can be a structured collection of records or data of framed streaming media. The structure can be organized as a structured file, a relational database, an object-oriented database or other appropriate database. Computer software, such as a database management system, is utilized to manage and provide access to media database 356. Media database 356 can store and provide framed streaming media. It can be combined with other components of network element 110, such as frame scheduler 354, or media muxer 218. It can also be external to adaptive bitrate manager 108. Media database 356 provides buffering to store media data.
After receiving (380) streaming media data from content server 114, de-muxer 350 parses the streaming media and obtains information of the streaming media. For example, among other things, de-muxer 350 can retrieve timing information of the streaming media, which can be real-time playback rate on a media player at terminal 102. De-muxer 350 then transfers (382), to flow control module 352, the parsed streaming media and the information used for controlling download rate.
Based on the information of the streaming media, including the timing information, flow control module 352 applies download rate patterns and frames parsed streaming media. The framed streaming media can correspond to the real-time playback rate on the media player at terminal 102. Flow control module 352 then stores (384) the framed streaming media at media database 356 for transmission, and schedules (388) the frame scheduler 354 to trigger transmission of the frame steaming media according to the timing information and the download pattern.
Frame scheduler 354 triggers (390) media muxer 218 to transmit framed streaming media according to the timing schedule specified by flow control module 352. Upon the trigger (390), and after retrieving the stored media due to be sent (392), media muxer 218 provides (394) the framed streaming media, to terminal 102 according to the timing schedule. Providing step 394 may include providing the framed streaming media to one or more network buffers, as described above in
After receiving portions of the streaming media, terminal 102 can provide (302) a media receiver report, as described above, to adaptive bitrate controller 210. Adaptive bitrate controller 210 can keep a table of sequence numbers and timestamps in the media clip sent to the player, which could be stored in media database 356. When TCP ACKs are received, adaptive bitrate controller 210 can retrieve the timestamp corresponding to the byte sequence number in the ACK, and then computes MTT, RTTE, and other network estimators that can be used to implement the bitrate control algorithm and the stability criterion as described previously in
While RTP and RTCP are user level protocols, directly accessible to the multimedia applications, TCP is typically implemented in the kernel space, in a way that applications may not have visibility of its internal state. To overcome this, a simple kernel-level agent can be implemented to generate application-level receiver reports and send them to the adaptive bitrate manager upon the reception of ACK packets in the kernel space.
After receiving receiver report data, the adaptive bitrate manager estimates (404) network conditions of a streaming media network. To estimate the state of the network, the adaptive bitrate manager can combine data from the received receiver report data from step 402 and previously received receiver report data stored by the adaptive bitrate manager. The adaptive bitrate manager can estimate an MTT, a bitrate received, an RTTE, and a packet loss. In pseudo-streaming sessions, an extra step is required to calculate MTT. Adaptive bitrate manager can maintain a table of sequence numbers and timestamps in the media clip sent to a media player. When TCP ACKs are received, adaptive bitrate manager can retrieve the timestamp corresponding to the sequence number in the ACK, and then compute the MTT. The adaptive bitrate manager can use these estimates to implement several different control algorithms.
After estimating the network conditions, the adaptive bitrate manager applies (406) stability criterion to determine the stability of the streaming media network. If needed, the stability criterion can assist in adjusting the bitrate for attempting to stabilize the streaming media network, e.g., such as avoiding buffer overflows in the network and underflows at the terminal. While any number of algorithms can be used to determine the stability criterion, one exemplary embodiment compares the estimated MTT with the estimated RTTE, both of which are estimated in step 404. If the MTT and the RTTE remain close, the adaptive bitrate manager can use this comparison to determine that the streaming media network can properly support the current bitrate. Further, by comparing the bitrate received with the current bitrate session, the adaptive bitrate manager can determine that the streaming media network can cope with the load.
After establishing the stability criterion, the adaptive bitrate manager determines (408) whether the network is stable with respect to the current bitstream based on estimation step 404 and/or stability criterion establishment step 406. If the network is stable, the adaptive bitrate manager operates (410) in a steady state condition by either maintaining or incrementally increasing the current bitrate. In some embodiments, the optimal session bitrate can be computed by determining the difference between the MTT and the RTTE and adjusting the session bitrate according to the difference. For example, if the current session bitrate is less than a set target session bitrate, the adaptive bitrate manager can incrementally increase the optimal session bitrate if the values of the MTT and the RTTE are comparable. Then, the adaptive bitrate manager provides (416) an optimal session bitrate for transmitting media data to a terminal. After providing step 416, the method can proceed to end 418.
If determining that the network is not stable, the adaptive bitrate manager adjusts (412) the bitrate so that adaptive bitrate manager can reach a stable condition. For example, in some embodiments, the adaptive bitrate manager can use the estimated bitrate received from step 404 because, in some embodiments, the bitrate received can be the best estimation of the actual bitrate that the network can support at that particular point in time. Then, the adaptive bitrate manager provides (416) the optimal session bitrate for transmitting media data to the terminal. After providing step 416, the method can proceed to end 418.
Upon receiving the optimal session bitrate data, the adaptive bitrate manager allocates (504) the optimal session bitrate between audio and video streams to produce an optimal audio bitrate and an optimal video bitrate. For example, this allocation could be based on a predetermined allocation, user preference, optimal performance data, privileging one type of data over the other, the amount of audio and video data to be provided, and/or any combination of the above. For example, the adaptive bitrate manager may privilege audio quality in a way that if a reduced bitrate is specified, the adaptive bitrate manager can reduce the video bitrate first and postpone reducing the audio bitrate as much as possible.
Adaptive bitrate manager obtains (506) audio and video media data. In some embodiments, obtaining step 506 can occur prior to allocating step 504 or obtaining step 502. After allocating step 504 and obtaining step 506, the adaptive bitrate manager encodes (508) the audio and video media data according to their respective allocated bitrate specified at step 504.
After encoding the audio and video streams according to the allocated bitrate, the adaptive bitrate manager provides (510) the encoded audio and video media data for transmitting to the terminal. In some embodiments, a media packetization receives the encoded audio and video media data and translates this data into a packet format. In other embodiments, this data is received by a media muxer to create a media clip file to be sent over TCP to the player. RTP defines a standardized packet format for delivering audio and video over the Internet, while TCP provides its own packetization protocol for generic data, that can also be used for media streams. Upon translating this data into a packet format, the media packetization can then transmit the audio and video media packets to the terminal. After providing the encoded audio and video media data, the method can proceed to end 512.
The methods disclosed herein may be implemented as a computer program product, i.e., a computer program tangibly embodied in an information carrier, e.g., in a machine readable storage device or in a propagated signal, for execution by, or to control the operation of, data processing apparatus, e.g., a programmable processor, a computer, or multiple computers. A computer program can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program can be deployed to be executed on one computer or on multiple computers at one site or distributed across multiple sites and interconnected by a communication network.
In the preceding specification, the invention has been described with reference to specific exemplary embodiments. It will however, be evident that various modifications and changes may be made without departing from the broader spirit and scope of the invention as set forth in the claims that follow. The specification and drawings are accordingly to be regarded as illustrative rather than restrictive. Other embodiments of the invention may be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein.
This application is a continuation-in-part of U.S. application Ser. No. 12/170,347, “Adaptive Bitrate Management for Streaming Media over Packet Networks, filed Jul. 9, 2008, which claims the benefit of U.S. Provisional Application No. 60/948,917, “Adaptive Bitrate Management for Streaming Media over Packet Networks,” filed Jul. 10, 2007, all of which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
7653539 | Yamanashi et al. | Jan 2010 | B2 |
20020010938 | Zhang et al. | Jan 2002 | A1 |
20020154694 | Birch | Oct 2002 | A1 |
20040107284 | Koperda et al. | Jun 2004 | A1 |
20040170179 | Johansson et al. | Sep 2004 | A1 |
20040267445 | De Luca et al. | Dec 2004 | A1 |
20050005020 | Rey et al. | Jan 2005 | A1 |
20050105471 | Ido et al. | May 2005 | A1 |
20050175093 | Haskell et al. | Aug 2005 | A1 |
20050180502 | Puri | Aug 2005 | A1 |
20060083260 | Wang et al. | Apr 2006 | A1 |
20060092867 | Muller et al. | May 2006 | A1 |
20060165166 | Chou et al. | Jul 2006 | A1 |
20060184688 | Ganguly et al. | Aug 2006 | A1 |
20070091920 | Harris et al. | Apr 2007 | A1 |
20070208557 | Li et al. | Sep 2007 | A1 |
20080120424 | Deshpande | May 2008 | A1 |
20080195743 | Brueck et al. | Aug 2008 | A1 |
20080198929 | Fujihara | Aug 2008 | A1 |
20090013366 | You et al. | Jan 2009 | A1 |
20090019178 | Melnyk et al. | Jan 2009 | A1 |
20090327698 | Baker et al. | Dec 2009 | A1 |
20100205318 | Melnyk et al. | Aug 2010 | A1 |
Number | Date | Country |
---|---|---|
1 202 487 | May 2002 | EP |
1 294 193 | Mar 2003 | EP |
WO 2005022845 | Mar 2005 | WO |
WO 2007018841 | Feb 2007 | WO |
WO 2007018841 | Feb 2007 | WO |
Number | Date | Country | |
---|---|---|---|
20090254657 A1 | Oct 2009 | US |
Number | Date | Country | |
---|---|---|---|
60948917 | Jul 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12170347 | Jul 2008 | US |
Child | 12416085 | US |