# US 2015/0146778 A1 · Controlling Player Buffer and Video Encoder for Adaptive Video Streaming

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

- Number: US 2015/0146778 A1
- Document ID: US20150146778A1
- Status: Published application
- Kind: A1
- Application number: 14/548,315
- Filed: 2014-11-20
- Published: 2015-05-28
- Earliest claimed: 2013-11-25
- Assignees: Saverio Mascolo; Luca De Cicco
- Inventors: Luca De Cicco; Saverio Mascolo
- Web page: https://patentgrep.com/patent/US20150146778A1

## CPC

- H04N 19/164: Feedback from the receiver or from the transmission channel
- H04L 47/18: {End to end}
- H04L 47/30: in combination with information about buffer occupancy at either end or at transit nodes
- H04N 19/115: Selection of the code volume for a coding unit prior to coding
- H04N 19/149: by estimating the code amount by means of a model, e.g. mathematical model or statistical model
- H04N 19/152: by measuring the fullness of the transmission buffer
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/30: using hierarchical techniques, e.g. scalability (H04N19/63 takes precedence)
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 21/23805: {Controlling the feeding rate to the network, e.g. by controlling the video pump}
- H04N 21/26258: {for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list (retrieval of multimedia data based on playlists G06F16/40)}
- H04N 21/44004: {involving video buffer management, e.g. video decoder buffer or video display buffer}
- H04N 21/44209: {Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network (arrangements for maintenance or administration in data switching networks involving bandwidth and capacity management H04L41/0896)}
- 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/8456: {by decomposing the content in the time domain, e.g. in time segments}
- 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 mechanism is disclosed to adapt in real-time the encoding bitrate of a video source in an adaptive video streaming system with the aim of avoiding playback interruptions and to guarantee the best possible video quality. The mechanism is made of a feedback loop in which a controller computes the encoding bitrate that the sender (the video server) transmits to a receiver (client) employing a packet switching network such as the Internet. The mechanism can be used in video streaming systems employing scalable encoding (f.i. H.264 SVC, VP8, VP9) or multi bit-rate encoding (stream-switching). The automatic control that computes the video encoding bitrate can be executed either at the server or at the client.

## Claims

### Claim 1

A mechanism to automatically compute in real-time the encoding bitrate of a video source to be sent from a sender (server) to a receiver (client) over a packet-switched communication network comprising:
a first device, the playout buffer, placed on said client that stores the video received from said server;
a second processing unit, the player, placed on said client that drains the video from said playout buffer and reproduces the decoded video on the screen of said client;
a third device, the encoder, placed on said video server that encodes the video source at a bitrate b(t) that assumes continuous values in the range [Bmin, Bmax] in the scalable encoder mode or a bitrate b(t) that assumes discrete values or levels in the set L={l1, l2, . . . , lN} in the multi-bitrate (or stream-switching) mode;
a fourth input interface placed on said client that reads the length q(t), measured in seconds, of said playout buffer;
a fifth device that estimates the network bandwidth r(t) used to send the video during the transmission;
a sixth processing unit, the controller, that computes the encoding bitrate b(t) based on the length q(t) of said playout buffer and the estimate of the network bandwidth r(t) computed by said fifth device; in the case said encoder is scalable b(t)ε[Bmin,Bmax,]⊂, whereas in the case said encoder is multi-bitrate b(t)εL;
a seventh processing unit, the segment scheduler, that requests the server to send video segments;
wherein:
the sixth processing unit computes the video encoding bitrate b(t) of said video source so that the playout buffer length q(t) reaches the positive target qT by using the following control law executed at sampling intervals of duration ΔT:
b

(
t
k
)
=
Q

(
r

(
t
k
)
1
+
F

(
q
k
,
q
k
-
1
,
…

,
q
T
)
)
where:
tk=tk−1+ΔT is the k-th sampling time;
q(tk) is the playout buffer length read by the fourth input interface at the k-th sampling time;
F(q(tk), q(tk−1), . . . , q(tk−m+1), qT) is a function of the length of said playout buffer at the following sampling steps k, k−1, k−2, . . . , k−m+1 (last m sampling steps) and of the queue target qT;
r(tk) is the estimate of the used bandwidth computed by the fifth device at the k-th sampling interval;
Q(•) is an increasing function from the set of real numbers R to a value belonging to the set [Bmin,Bmax]⊂ in the case the encoder is scalable or to the discrete set L={l1, . . . , LN} in the case the encoder is multi-bitrate.

### Claim 2 (depends on 1)

A mechanism to automatically compute in real-time the encoding bitrate of a video source to be sent from a sender (server) to a receiver (client) over a packet-switched communication network according to claim 1 wherein:
the sixth processing unit computes the video encoding bitrate b(t) of said video source so that said playout buffer length q(t) reaches a positive target qT by using the following control law executed at sampling intervals of duration ΔT:
b

(
t
k
)
=
Q

(
r

(
t
k
)
1
-
K
1

q

(
t
k
)
-
K
2

q
I

(
t
k
)
)
where:
tk=tk−1+ΔT is the k-th sampling time;
q(tk) is the playout buffer length read by the fourth input interface at the k-th sampling time;
r(tk) is the estimate of the used bandwidth computed by the fifth device at k-th sampling interval;
K1eK2 are two nonnegative constants;
q1(tk)=q1(tk−1)+ΔT(q(tk)−qT) is the integral of the error q(tk)−qT;
Q(•) is an increasing function from the set of real numbers to a value belonging to the set [Bmin,Bmax]⊂ in the case the encoder is scalable or to the discrete set L={l1, . . . , LN} in the case the encoder is multi-bitrate.

### Claim 3 (depends on 1)

A mechanism to automatically compute in real-time the encoding bitrate of a video source to be sent from a sender (server) to a receiver (client) over a packet-switched communication network according to claim 1 wherein:
the fifth device computes the estimate of the used bandwidth at sampling intervals of duration ΔT as follows:
r

(
t
k
)
=
(
q

(
t
k
)
-
q

(
t
k
-
1
)
Δ


T
-
d

(
t
k
-
1
)
)
·
b

(
t
k
-
1
)
where:
tk=tk−1+ΔT is the k-th sampling time;
q(tk) is the playout buffer length read by the fourth input interface at the k-th sampling time;
b(tk−1) is the bitrate of the video encoding rate computed by the sixth processing unit at the (k−1)-the sampling interval;
d(tk−1) is a boolean variable that is equal to 1 when the video is playing, or 0 otherwise.

### Claim 4 (depends on 1)

A mechanism according to claim 1 wherein the seventh processing unit, the segment scheduler, at the completion of the download of the k-th segment at time tkd, requests the video server to send the next (k+1)-th segment at time tk+1=tkd+pk according to the following:
said sixth processing unit, the controller, computes the encoding bitrate b(tkd);
said playout buffer length q(tkd) is read by the fourth input interface;
if b(tkd) is greater or equal to the maximum encoding bitrate Bmax (Bmax is equal to lN in the case said encoder is multi-bitrate) and the playout buffer length q(tkd) is greater than or equal to a maximum threshold Qmax the scheduler requests the video server to send the (k+1)-th segment at the maximum encoding bitrate Bmax after pk=max(Tk−ΔTkd, 0) seconds, where Tk is the duration of the k-th segment and ΔTkd=tkd−tk is the time spent to download the k-th segment;
if b(tkd)<Bmax or q(tkd)<Qmax the segment scheduler immediately, at time tkd, requests the (k+1)-th segment encoded at the rate b(tkd).
