# US 7,962,637 B2 · Dynamic adjustments of video streams

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 7,962,637 B2
- Document ID: US7962637B2
- Status: Granted
- Kind: B2
- Application number: 11/592,765
- Filed: 2006-11-03
- Published: 2008-05-08
- Granted: 2011-06-14
- Earliest claimed: 2006-11-03
- Assignees: Apple Computer, Inc.
- Inventors: George P. Su; John K. Murata
- Web page: https://patentgrep.com/patent/US7962637B2

## CPC

- H04N 21/234363: {by altering the spatial resolution, e.g. for clients with a lower screen resolution}
- H04L 47/10: Flow control; Congestion control
- H04N 21/2401: {Monitoring of the client buffer}
- H04N 21/2662: Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
- H04N 21/6373: for rate control {, e.g. request to the server to modify its transmission rate (flow control in packet networks H04L47/10)}
- H04N 21/64769: {for rate control (flow control in packet networks H04L47/10)}
- H04L 1/1874: {Buffer management}
- H04L 65/612: for unicast
- H04L 2012/5682: {Threshold; Watermark}
- H04L 2012/6489: {Buffer Management, Threshold setting, Scheduling, Shaping}
- H04N 19/152: by measuring the fullness of the transmission buffer
- H04N 19/60: using transform coding
- H04N 21/23406: {involving management of server-side video buffer}
- H04N 21/26233: {involving content or additional data duration or size, e.g. length of a movie, size of an executable file}
- H04N 21/47205: {for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method and apparatus for the dynamic adjustments of video streams sent from a server to a client is provided. Using both short term and long term thinning mechanisms, the server reduces its data transfer rate when bandwidth is reduced and increases its data transfer rate when bandwidth is available. In the short term mechanism, the server will dynamically adjust the transmission rate of the video or the quality of the video based on parameters returned by the client. These parameters include currently-buffered data-size, buffered-data duration, and packet loss rate. In the long term mechanism, the server will adjust the current maximum quality level allowed depending upon the round trip times of data packets transmitted. This invention decreases client rebuffering and packet loss and increases the efficiency of available bandwidth.

## Claims

### Claim 1

A method for delivering video from a server to a client, the method comprising the steps of:
during delivery of the video from the server to the client:
receiving, at the server from the client, buffer information specifying an amount of video data that is currently stored in a buffer at the client;
based at least partially upon the buffer information, determining, by the server, an adjustment to be made to one or more parameters of a set of parameters that govern delivery of the video from the server to the client to cause the amount of data that is currently stored in the buffer at the client to be maintained within a desired range, wherein the one or more parameters include a video quality parameter and a packet rate transmission parameter; and
adjusting the one or more parameters by the determined adjustment to cause the amount of video data that is currently stored in the buffer at the client to be maintained within the desired range.

### Claim 2 (depends on 1)

The method of claim 1 wherein the buffer information specifies a currently-buffered data size indicating a size of the video data currently stored in the buffer of the client, and/or a buffered-data duration indicating an amount of time the client will take to play the video data currently stored in the buffer of the client.

### Claim 3 (depends on 1)

The method of claim 1 wherein:
the method further includes the step of receiving, at the server from the client, an indication of an amount of data packets lost in transmission; and
wherein said adjustment is determined based at least in part on the indication of the amount of data packets lost.

### Claim 4 (depends on 2)

The method of claim 2 wherein:
the method further includes the step of receiving, at the server from the client, a target buffer size within the client;
determining, by the server, a buffer usage ratio by evaluating the currently-buffered data-size relative to the target buffer size; and
wherein said adjustment is determined based at least in part on the buffer usage ratio.

### Claim 5 (depends on 2)

The method of claim 2 wherein:
the method further includes the step of receiving, at the server from the client, a target buffered-data duration within the client;
determining, by the server, a buffered-data duration ratio by evaluating the buffered-data duration relative to the target buffered-data duration; and
wherein said adjustment is determined based at least in part on the buffered-data duration ratio.

### Claim 6 (depends on 3)

The method of claim 3 wherein:
the method further includes the step of determining a packet loss ratio by evaluating the amount of data packets lost in transmission to the client relative to an amount of data packet sent to the client; and
wherein said adjustment is determined based at least in part on the packet loss ratio.

### Claim 7 (depends on 2)

The method of claim 2 wherein:
the method further includes the step of delaying the adjusting said one or more parameters at the beginning of a data session with the client until one or more of a plurality of conditions are met, one of which is the value for buffered-data duration attaining a predetermined threshold.

### Claim 8 (depends on 2)

The method of claim 2 wherein:
the method further includes the step of delaying the adjusting said one or more parameters at the beginning of a data session with the client until one or more of a plurality of conditions are met, one of which is the value for currently-buffered data-size attaining a predetermined threshold.

### Claim 9 (depends on 1)

The method of claim 1 wherein:
the method further includes the step of delaying the adjusting said one or more parameters at the beginning of a data session with the client until one or more of a plurality of conditions are met, one of which is the video is played for a predetermined amount of time.

### Claim 10 (depends on 1)

The method of claim 1 wherein:
the method further includes the step of delaying the adjusting said one or more parameters during a data session with the client until one or more of a plurality of conditions are met, one of which is a previous adjustment has not been changed for a predetermined amount of time.

### Claim 11

A method for delivering video from a server to a client, the method comprising the steps of:
during delivery of the video from the server to the client:
measuring, by the server, a round trip time of data between the client and the server;
based on a plurality of factors including the round trip time of data between the server and the client, determining by the server an adjustment to be made to one or more parameters of a set of parameters that govern delivery of the video from the server to the client;
wherein the set of parameters comprises a current maximum quality level parameter; and
adjusting, by the server, one or more of the parameters by the determined adjustment.

### Claim 12 (depends on 11)

The method of claim 11 wherein:
the method further includes the step of receiving, at the server from the client, an indication of a currently-buffered data-size, within the client, for buffering the video from the server; and
said plurality of factors include the currently-buffered data-size within said client.

### Claim 13 (depends on 11)

The method of claim 11 wherein:
the method further includes the step of receiving, at the server from the client, an indication of a buffered-data duration within the client; and
said plurality of factors include the buffered-data duration within said client.

### Claim 14 (depends on 11)

The method of claim 11 wherein:
the method further includes the step of receiving, at the server from the client, an indication of an amount of data packets lost in transmission; and
said plurality of factors include the amount of data packets lost.

### Claim 15 (depends on 11)

The method of claim 11 wherein:
the method further includes the step of storing at the server, a set of the round trip times of data between the server and the client;
determining from the set of round trip times, a minimum value for the set of round trip times; and
said plurality of factors include the minimum value of the round trip times.

### Claim 16 (depends on 12)

The method of claim 12 wherein:
the method further includes the step of receiving, at the server from the client, a specified target buffer size within the client;
determining a percentage of the currently-buffered data-size used within the client relative to the specified target buffer size; and
said plurality of factors include the percentage of currently-buffered data-size used relative to the specified target buffer size.

### Claim 17 (depends on 13)

The method of claim 13 wherein:
the method further includes the step of receiving, at the server from the client, a specified target buffered-data duration within the client;
determining a percentage of the buffered-data duration within the client relative to the specified target buffered-data duration; and
said plurality of factors include the percentage of buffered-data duration relative to the specified target buffered-data duration.

### Claim 18 (depends on 11)

The method of claim 11 wherein:
the method further includes the step of delaying the adjusting of said one or more parameters during a data session with the client until one or more of a plurality of conditions are met, one of which is a previous adjustment has not been changed for a predetermined amount of time.

### Claim 19

A method for delivering video from a server to a client, the method comprising the steps of:
during delivery of the video from the server to the client:
receiving, at the server from the client, indications of:
a first time associated with a next-to-play frame of video stored in a buffer at the client; and
a second time associated with a last-acknowledged frame of video stored in the buffer at the client;
determining, at the server, a buffered-data duration based on the first time and the second time, wherein the buffered-data duration indicates an amount of time the client will take to play all of the frames of video currently stored in the buffer at the client;
based on a plurality of factors including the buffered-data duration, determining, at the server, an adjustment to one or more parameters of a set of parameters that govern delivery of the video from the server to the client;
wherein the set of parameters comprises a video quality parameter and a packet rate transmission parameter; and
adjusting, by the server, the one or more parameters based on the determined adjustment.

### Claim 20 (depends on 19)

The method of claim 19 wherein:
the method further includes the step of receiving, at the server from the client, a third time associated with the next-to-play frame and a current time from the client; and
determining, at the server, the buffered-data duration by adding the third time to the difference of the first time and the second time.

### Claim 21 (depends on 1)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 1.

### Claim 22 (depends on 2)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 2.

### Claim 23 (depends on 3)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 3.

### Claim 24 (depends on 4)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 4.

### Claim 25 (depends on 5)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 5.

### Claim 26 (depends on 6)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 6.

### Claim 27 (depends on 7)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 7.

### Claim 28 (depends on 8)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 8.

### Claim 29 (depends on 9)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 9.

### Claim 30 (depends on 10)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 10.

### Claim 31 (depends on 11)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 11.

### Claim 32 (depends on 12)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 12.

### Claim 33 (depends on 13)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 13.

### Claim 34 (depends on 14)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 14.

### Claim 35 (depends on 15)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 15.

### Claim 36 (depends on 16)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 16.

### Claim 37 (depends on 17)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 17.

### Claim 38 (depends on 18)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 18.

### Claim 39 (depends on 19)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 19.

### Claim 40 (depends on 20)

A non-transitory computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cases the one or more processors to perform the method recited in claim 20.

### Claim 41

A server, comprising:
one or more processors; and
a computer-readable medium carrying one or more sequences of instructions which, when executed by the one or more processors, cause the one or more processors to perform the steps of:
during delivery of video from the server to a client:
receiving, at the server from the client, buffer information specifying an amount of video data that is currently stored in a buffer at the client;
based at least partially upon the buffer information, determining, by the server, an adjustment to be made to one or more parameters of a set of parameters that govern delivery of the video from the server to the client to cause the amount of data that is currently stored in the buffer at the client to be maintained within a desired range, wherein the one or more parameters include a video quality parameter and a packet rate transmission parameter; and
adjusting the one or more parameters by the determined adjustment to cause the amount of video data that is currently stored in the buffer at the client to be maintained within the desired range.

### Claim 42 (depends on 41)

The server of claim 41, wherein the buffer information specifies a currently-buffered data size indicating a size of the video data currently stored in the buffer of the client, and/or a buffered-data duration indicating an amount of time the client will take to play the video data currently stored in the buffer of the client.

### Claim 43 (depends on 42)

The server of claim 42, wherein the instructions cause the one or more processors to further perform the steps of:
receiving, at the server from the client, a target buffer size within the client; and determining, by the server, a buffer usage ratio by evaluating the currently-buffered data-size relative to the target buffer size;
wherein said adjustment is determined based at least in part on the buffer usage ratio.

### Claim 44 (depends on 42)

The server of claim 42, wherein the instructions cause the one or more processors to further perform the steps of:
receiving, at the server from the client, a target buffered-data duration within the client;
and determining, by the server, a buffered-data duration ratio by evaluating the buffered-data duration relative to the target buffered-data duration;
wherein said adjustment is determined based at least in part on the buffered-data duration ratio.

### Claim 45

A server, comprising:
one or more processors; and
a computer-readable medium carrying one or more sequences of instructions which, when executed by the one or more processors, cause the one or more processors to perform the steps of:
during delivery of video from the server to a client:
measuring, by the server, a round trip time of data between the client and the server;
based on a plurality of factors including the round trip time of data between the server and the client, determining by the server an adjustment to be made to one or more parameters of a set of parameters that govern delivery of the video from the server to the client;
wherein the set of parameters comprises a current maximum quality level parameter; and adjusting, by the server, one or more of the parameters by the determined adjustment.

### Claim 46

A server, comprising:
one or more processors; and
a computer-readable medium carrying one or more sequences of instructions which, when executed by the one or more processors, cause the one or more processors to perform the steps of:
during delivery of video from the server to a client:
receiving, at the server from the client, indications of:
a first time associated with a next-to-play frame of video stored in a buffer at the client; and
a second time associated with a last-acknowledged frame of video stored in the buffer at the client;
determining, at the server, a buffered-data duration based on the first time and the second time, wherein the buffered-data duration indicates an amount of time the client will take to play all of the frames of video currently stored in the buffer at the client;
based on a plurality of factors including the buffered-data duration, determining, at the server, an adjustment to one or more parameters of a set of parameters that govern delivery of the video from the server to the client;
wherein the set of parameters comprises a video quality parameter and a packet rate transmission parameter; and
adjusting, by the server, the one or more parameters based on the determined adjustment.
