Manuscript Offprint
arXiv:2609.03745A Quantization Problem Posed by Adaptive Streaming
Abstract
In adaptive bitrate (ABR) streaming, the delivery technology behind most Internet video, each title is encoded at several bitrates, forming an encoding ladder of renditions. Each client plays the highest rendition that its network bandwidth can sustain. We show that choosing the ladder is a problem of scalar quantization of the bandwidth distribution. However, this quantization problem is of an unusual kind: the client's logic pins each quantization cell's reproduction value to the cell's left edge, and the distortion measure is a one-sided quality loss rather than a squared error. The constraint reshapes the classical theory. The quality gap of a ladder is the distance between its average delivered quality and the quality limit that infinitely many renditions would attain. For optimal -rendition ladders the gap decays as , not the textbook . Moreover, with large , , with the limit attained when the ladder's rates follow the density , which replaces Panter-Dite's ; here is the bandwidth density and the quality-rate curve of the content. The law yields closed-form design rules: quantile rung placement, the rendition count needed to reach tolerance , and the economic ladder size when a rendition costs to operate and the quality gap is priced at . The same analysis extends to the design of ladders employing different video resolutions, codecs, perceptual quality metrics, and the two-dimensional adaptation logic of modern web players.
1 Introduction
Most videos on the Internet—movies, sports, news, user-generated clips—are delivered using adaptive bitrate (ABR) streaming protocols, such as HLS and DASH [1,2]. The idea is simple. The capacity of the network path between a service and a viewer is unknown in advance and may be varying, so the service prepares several encodings of the same content at different bitrates and lets each receiving device choose, moment by moment, the one its connection can sustain. The set of prepared encodings is the encoding ladder; its entries are renditions, informally rungs.
The ladder is thus a finite set of operating points standing in for a continuum of network conditions, and someone must decide what this set should be. How many renditions? At which bitrates? In current practice, the question “what is the best ladder?” has never lacked answers—standing recommendations such as Apple’s HLS authoring guidelines [3], per-title and context-aware optimizers built into commercial encoders [4–6], and a growing body of work casting the search as a learning problem [7,8]. What none of this gives is an understanding of the problem itself: what mathematical structure it has, what an optimal ladder looks like, and how far from optimal any given design sits.
The objective of this paper is to develop such understanding. What we find is that the mathematics behind the ladder design problem is, recognizably, quantization [14]. A ladder assigns to every possible network bandwidth a single delivered encoding; that is, it quantizes the continuous random variable into representative operating points. Once this identification is made precise, the tools of quantization theory become available: Lloyd-Max-type optimality conditions [15, 16], dynamic-programming design with global optimality guarantees, and, most usefully, high-resolution asymptotics that describe optimal ladders in closed form.
The identification comes with a twist, and the twist is what makes the problem interesting. A streaming client is conservative: it plays the highest-bitrate rendition whose bitrate fits below its available bandwidth. In quantization language, the reproduction value of each cell is not free to sit at the cell's centroid, as in the textbook problem; it is pinned to the cell's left edge. This small change has large consequences. Quantization errors within a cell now all have one sign and never cancel, the within-cell loss is first-order in the cell width rather than second-order, and the whole high-resolution picture changes: the optimal quality gap decays as instead of the classical , and the optimal density of the ladder's rates becomes , replacing the Panter-Dite density [17, 18].
The first body of work is classical quantization theory. The high-resolution analysis of nonuniform quantizers begins with Bennett in 1948 [17] and Panter and Dite in 1951 [18]. Its rigorous form is Zador's limit theorem from 1963 [19,20], extended to general source distributions by Graf and Luschgy in 2000 [21]. The optimality conditions and the descent algorithm they suggest are due to Lloyd in 1957 [15] and Max in 1960 [16]. Dynamic programming for globally optimal scalar quantizers goes back to Bruce in 1965 [22], with a matrix-search speedup by Wu in 1991 [23]. A comprehensive account of the field is Gray and Neuhoff's survey [14]. This literature assumes free reproduction points, which settle in the interior of their cells with error mass on both sides, and so does not cover the edge-constrained class, where all error mass lies on one side.
The second is a set of earlier one-sided problem formulations. The assortment (“standard sizes”) problem of operations research is exactly edge-constrained quantization under one-sided linear loss. From it comes exact design by dynamic programming, used by Sadowski already in 1959 [25], with later finite-n methods surveyed in [26]. Approximation theory holds the deterministic core of the problem: best one-sided approximation of an increasing function by an n-step staircase with free knots. Its “balanced error” asymptotics—the error decays as , with knots placed to equalize the error of every step—were established by Burchard and McClure in the mid-1970s [27,28] and are surveyed in [29]. Discrete-rate link adaptation performs the same edge-constrained selection over a fading channel, with average throughput as the objective and thresholds optimized numerically for small fixed rate sets, from the late 1990s on [30,31]. None of these efforts, however, developed the asymptotics of the problem in the probabilistic form that ladder design needs.
1.2 Contributions
The problem class is thus old, appearing in several fields. What this paper adds is a connection between this class and adaptive streaming. We make four contributions. (i) The identification
(Section 3): ladder design is scalar quantization of the bandwidth distribution, with each cell's reproduction value pinned to the cell's left edge. The design therefore has degrees of freedom—the cell boundaries—not the of the classical quantizer, where reproduction points are chosen separately. Over any -point discretization of the rate axis—and rates are discrete in practice—the globally optimal ladder is computable by dynamic programming in operations. This places ABR ladder design inside the old class—and, in return, gives the class a fresh, measurement-rich application. (ii) The high-resolution solution of the problem (Proposition 1, Section 4): writing for the quality gap of an -rendition ladder, , achieved by rates with empirical density . This is a translation of a classical approximation-theory result to the present setting: we state it in Zador's probabilistic form, with the explicit constant, and give a short self-contained proof. Its hypotheses ask only for a density and a nondecreasing quality curve, so it applies verbatim to the relatives above. (iii) Closed-form design rules (Section 5): quantile rung placement that lands within a few percent of optimal at practical sizes, the count of renditions needed to come within of the quality limit, and the economically optimal count when a rendition costs to operate and the quality gap is priced at . All are verified against exact optima on models fitted to mass-scale streaming data. (iv) Extensions (Section 6): the analysis transfers, with structure intact and constants recomputed, to ladders that also choose encoding resolutions, to perceptual quality models, and to the two-dimensional adaptation of modern web players, where an exact reduction collapses the enlarged design problem into a chain of one-dimensional ones.
2 System and Models
2.1 The mechanics of ABR streaming
A video asset is transcoded into independent encodings (renditions), each characterized by a bitrate (kbps) and, in general, an encoding resolution. Until Section 6 we will assume that all renditions are encoded at a single resolution (e.g., 1080 lines), so a ladder is a list of bitrates . Each rendition is cut into short, aligned, independently decodable segments, so a client may fetch consecutive segments from different renditions. The client estimates its end-to-end throughput by timing its own segment downloads and requests, every few seconds, the next segment from the rendition its current estimate allows. This throughput fluctuates, so the client protects playback: it keeps a buffer of downloaded segments and selects the next ones conservatively.
The operator controls the ladder; it does not control the clients, the network, or the audience, but it observes all three through playback analytics. The design problem thus has a classic shape: choose a finite codebook (the ladder) to maximize an objective (average delivered quality) over a source distribution (bandwidth), under a fixed usage rule (the client logic).
2.2 The three models
Analysis requires three ingredients: a model of the encodings achievable on the asset, a model of client selection, and a model of the network bandwidth distribution. We define them generically, as functions with only the key properties required for the analysis. For numerical examples, we use more specific models proposed in [10,11]; Fig. 1 and Table 1 summarize their forms, parameters, and origin.


(c) client rule: n = 5 ladder

(d) delivered staircase and the gap

Figure 1: The three system models, in the fitted forms of Table 1. (a) Quality-rate model for the three test sequences at 1080p. (b) The two bandwidth densities. (c) The client rule (2) for a five-point ladder (rates 257, 659, 1257, 2187, 4097 kbps); below the client buffers. (d) The delivered-quality staircase pressed against the curve ; the shaded area, weighted by the bandwidth density (right axis), is the quality gap (6).
Table 1: The models used in Fig. 1 and all numerical examples.
| Model | Form used in the examples | Origin and fitting |
|---|---|---|
| Quality-rate | , with quality measured against the source by the structural-similarity index SSIM [24]. Three 1080p test sequences: “Easy” (animated cartoon; , ), “Medium” (natural scene; , ), “Complex” (crowd run; , ); in kbps. | Fitted through a few dozen probe encodes per sequence; this model was shown to predict SSIM of H.264-encoded video reasonably well [11]. |
| Bandwidth density | Mixture of two Rayleigh densities, with and . “Network 1”: , ; “Network 2”: Network 1 scaled , i.e., , ; in kbps. | Fitted in [11] to observed CDFs of TCP traffic bandwidth in wireless networks under different loads. |
2.2.1 Codec and content
We assume that the encoding quality , produced by an encoder operating on a given video sequence at a target bitrate R, can be modeled as a function
(1)
Specific examples of such functions, obtained by fitting experimentally measured data, are shown in Fig. 1(a) and explained in Table 1.
2.2.2 The client
We model the client's time-averaged behavior by a deterministic threshold rule: at bandwidth , a client selects rendition
for , with the conventions and : the highest-rate rendition whose bitrate does not exceed . The index denotes buffering: below no rendition is sustainable, and the delivered quality is . An example showing the application of this rule with a five-point ladder is given in Fig. 1(c).
2.2.3 The network
We model the bandwidth by a single continuous distribution on , with a density
and a distribution function . In practice, operators can measure such a distribution by aggregating players' reported download rates. Two examples of such distributions, used in the numerical experiments, are shown in Fig. 1(b), with their origin explained in Table 1.
2.3 Average quality, the quality limit, and the gap
Under (2), rendition is delivered when , so its load is ; the remaining mass is the probability of buffering. The vector is the rendition load distribution. The central performance measure is the average delivered quality, i.e., the average quality delivered by a system using an -point ladder :
As the ladder grows dense, delivered quality approaches pointwise and approaches the quality limit
This limit depends on content and network, but not on the ladder. What design can influence is the quality gap
the p-weighted area between the curve and the staircase of delivered quality inscribed under it.
As an example of all these terms at work, consider the models and the five-point adaptation ladder presented in Fig. 1. The computation of the quality gap is illustrated in Fig. 1(d). For this ladder, the average delivered quality is SSIM, the quality limit is , and the quality gap is .
Table 2: The quantization-streaming dictionary.
| Quantization | ABR streaming |
|---|---|
| source variable | network bandwidth |
| codebook of size | encoding ladder |
| encoder / partition | client rule ; cell is |
| reproduction value | delivered quality |
| nearest-neighbor rule | conservative rule: reproduce at left edge |
| distortion measure | quality loss , one-sided |
| average distortion | quality gap |
| Lloyd conditions | fused condition (10) |
3 Ladder Design is Edge-Constrained Quantization
The ladder design problem is to find a set of rates such that the average quality delivered by the streaming system is maximal:
The objective is the average delivered quality (4). The first condition under the arg max orders the rates; the second confines them to a range of practically usable rates. By (6), maximizing is the same as minimizing the quality gap —in quantization terms, minimizing the average distortion. As posed, the problem is nonconvex and nonsmooth (each appears both inside and inside integration limits), which is why it was previously attacked by generic numerical search [9–11]. Its actual structure is far better than generic.
3.1 The identification, and two amendments
Table 2 sets out the mapping onto a scalar quantizer: bandwidth is the source, the client rule the partition, delivered quality the reproduction, the quality gap the average distortion, and the ladder the codebook. This is a quantization problem, but not the textbook one: it differs in two respects, and both differences drive all that follows.
Amendment 1: edge-constrained reproduction. Classically, cell boundaries and reproduction points are separate objects, coupled at the optimum by the centroid and midpoint conditions of Lloyd and Max [15,16]—2n degrees of freedom in all. Here the client's conservatism fuses them: cell is , so the reproduction value is the cell's left edge:
This holds for every cell, the buffering cell included. The design has degrees of freedom—the rates—not , and within-cell errors all have one sign, so the loss grows linearly with cell width instead of quadratically. Figure 2 contrasts the two situations.
Amendment 2: quality loss, not squared error. The distortion measure is not a squared distance between and its reproduction but the one-sided quality loss of Table 2: errors are measured after mapping bandwidths through the quality curve. The local cost of such errors is easy to quantify. Serving sessions near a bandwidth at a rate below it loses quality per session, where is the first derivative of , and such sessions occur with probability density . Their product, , is therefore the loss density: the placement densities and designs (Complex content, Network 1)

Figure 2: Binning in classical quantizers versus ABR ladders. Left: classically, cell boundaries and reproduction points are separate objects; in the ABR ladder each reproduction value is pinned to its cell's left edge. Right: on the fitted models (Complex content, Network 1), the classical density (dash-dotted) follows the bandwidth distribution alone, while the edge-constrained (solid) discounts saturated bandwidths, skewing the design (tick marks) toward low-to-middle rates.
rate at which average quality is lost, per unit of under-delivery, around . Quantization is costly where is large and nearly free where it vanishes.
3.2 Optimality conditions and exact design
Written through the loads, the objective of (7) is
with the conventions of (2), and . Every design variable appears twice: sets the quality of its own cell and the boundary shared with the cell below. Setting :
This is the Lloyd pair fused into one condition by the edge constraint, and it holds for every . Its reading: raising gains quality at rate for cell , and pushes traffic of mass down one rung, losing the step ; at an optimum the two balance. For the step is the whole , so the lowest rate is an interior optimum, needing no external cap.
Condition (10), taken over , is a system of equations in unknowns, and it can be solved numerically. It is not sufficient, however: since is nonconvex, the system generally has multiple solutions—local optima and saddle points among them—and satisfying it does not certify a global optimum. We therefore compute exact solutions of (7) differently. Restricting the rates to an -point lattice makes the search space finite, and because the objective (9) couples only consecutive pairs , the optimum over the lattice can be found by dynamic programming, a technique known in quantizer design since Bruce [22]. Its complexity is operations, against the placements (for ) that a brute-force search over the same lattice would have to examine. We use this method to compute all optimal ladders in the numerical examples that follow.
4 The High-Resolution Solution
We now turn to the high-resolution regime. The assumption is that the number of renditions is large, so that every cell is narrow and and are nearly constant across it; the box constraints of (7) are dropped, so the rates may lie anywhere in . From this assumption we derive the rate at which the optimal gap decays with , the constant that governs the decay, and the placement density that the optimal rates follow.
4.1 The mechanism
Everything rests on an exact identity for the loss of one cell. Writing and exchanging integrals,
the integral of over the triangle of side . If and are roughly constant across a small cell,
where . The classical centroid quantizer's per-cell distortion, by contrast, is : one power of is lost because within-cell errors share a sign.
The Bennett-style heuristic is now immediate. Fix with negligible and restrict the gap (6) to , at the price of at most error. Describe a large- ladder by a point density , , so that cells near a point have width . Summing (12),
and minimizing subject to is a Cauchy-Schwarz exercise: the optimum is , with value . Every claim of this section is already visible: the decay, the placement rule, and the constant.
4.2 The law
The core of the following result is not new: in deterministic form, it is known in approximation theory [27–29]. We state and prove it in the probabilistic form that the design problem needs.
Proposition 1 ( law and companding; after [27,28]). Let be a probability density and nondecreasing, both on , and let . Then
where the infimum is over sequences with free points, and the limit is achieved by sequences whose points have empirical density proportional to .
Proof. Write , so .
Upper bound. Assume first on . Define the companding map , continuous and strictly increasing onto , and place
Each of the cells then carries equal -mass: (with ). Since , all widths obey , shrinking uniformly. The expansion (12) holds uniformly over cells (its is controlled by uniform continuity of on ), and equal mass gives uniformly, whence and, summing the cells, . If vanishes somewhere, apply the construction on with points and spend points keeping widths bounded on the complement, where by (12) the loss is per unit length; let , then .
Lower bound. Fix a sequence and let . From the exact identity (11), with . Fix . If some cell is wider than , then for all (a wide cell contains a fixed sub-triangle of (11) meeting ), so such sequences cannot approach the infimum. Otherwise, all ; by uniform continuity there is a modulus with , and by Cauchy–Schwarz,
as , since is a Riemann sum, over the cells, of mesh at most . Hence, with , .
Remark 1 (Relation to Zador's theorem). The Panter-Dite formula is itself a heuristic of exactly the kind sketched above. Its rigorous form is Zador's theorem [19,20], established for general absolutely continuous sources by Graf and Luschgy [21]. Proposition 1 is the Zador-form statement for the edge-constrained class, under assumptions on a compact interval. Extending it to Graf-Luschgy generality—notably to bandwidth distributions with atoms, as produced by rate-capped service tiers—remains open.
Example 1 (Uniform source, linear quality). Let and on , with pinned. Then under , minimized by giving the cells equal widths: , against for classical quantization of the same source (Fig. 3). Here , so , and equals exactly at every finite : the law holds with —the number of cells—in place of , an off-by-one that washes out in the limit.
Table 3 compares the two theories side by side, and Fig. 2 (right) shows the practical difference: discounts regions where quality has saturated and pushes rungs toward low-to-middle bandwidths, where , blind to saturation, would keep placing them high.
5 Design Rules and Numerical Verification
The law gives the designer three closed-form rules. To verify them, we compare against exact optima: solutions of (7) computed by the dynamic program of Section 3.2 on a fine rate lattice, under the models of Section 2 with SSIM quality—six content-network configurations in all, with Complex content on Network 1 as the running example. The box constraints are dropped throughout, matching the setting in which the law was derived.

Figure 3: Example 1: uniform source, linear quality. The edge constraint alone costs an order of magnitude in the decay exponent.
Table 3: Classical high-resolution quantization vs. the edge-constrained case.
| Classical (centroid, sq. err.) | ABR ladder (edge-constrained) | |
|---|---|---|
| per-cell loss | , | |
| point density | (Panter-Dite) | |
| optimal decay | ||
| deg. of freedom | (bound. + points) | (boundaries only) |
Rule 1: rung placement without optimization
The construction inside the proof of Proposition 1 is the recipe: compute , where , and set —the quantile rule (14): the rates split into cells of equal -mass. Every ingredient is a one-dimensional integral of known model functions, so the ladder comes out in closed form.
Table 4 tests the rule against the exact optima on both networks, listing the ladders with their delivered qualities and gaps. The rule's rates sit above the optimal ones, and the penalty shrinks as grows: in quality terms the rule gives up under 0.005 SSIM from on, and its excess gap keeps falling (3% of the optimum at , 1.3% at , on Network 1). The other four configurations behave the same way. From on the quantile ladder is, for engineering purposes, the optimal ladder.
Rule 2: how many renditions
Inverting : reaching a tolerance of the limit requires . This turns the perennial “how many rungs?” question into a calculation.
Table 5 shows the constants and the resulting ladder sizes for all six configurations. For Complex content on Network 1 (), coming within 0.01 SSIM of the limit requires renditions; for Easy content (), two suffice. The exact gaps (Fig. 4) confirm both predictions within one rendition.
Rule 3: the economic ladder size
Adding renditions costs money, and so does the quality lost to a coarse ladder. Let be the operational cost of one rendition (encoding, storage, cache footprint), and let the impact of
Table 4: The quantile rule (14) against exact optimal ladders and the law's estimate (Complex content, SSIM).
| n | Ladder | Rates [kbps] | |||
|---|---|---|---|---|---|
| Network 1 () | |||||
| 2 | optimal | 535, 1864 | 0.8819 | 0.0640 | 0.0538 |
| rule (14) | 935, 2723 | 0.8629 | 0.0830 | ||
| 3 | optimal | 386, 1139, 2680 | 0.9047 | 0.0413 | 0.0359 |
| rule (14) | 658, 1646, 3566 | 0.8963 | 0.0496 | ||
| 4 | optimal | 307, 832, 1699, 3427 | 0.9158 | 0.0302 | 0.0269 |
| rule (14) | 511, 1191, 2226, 4281 | 0.9113 | 0.0346 | ||
| 5 | optimal | 257, 659, 1257, 2187, 4097 | 0.9223 | 0.0237 | 0.0215 |
| rule (14) | 420, 935, 1646, 2723, 4899 | 0.9196 | 0.0264 | ||
| 6 | optimal | 223, 548, 1001, 1638, 2614, 4633 | 0.9265 | 0.0194 | 0.0179 |
| rule (14) | 358, 772, 1311, 2043, 3164, 5436 | 0.9247 | 0.0212 | ||
| 8 | optimal | 178, 414, 718, 1106, 1613, 2299, 3363, 5472 | 0.9317 | 0.0143 | 0.0134 |
| rule (14) | 279, 575, 935, 1381, 1948, 2723, 3936, 6310 | 0.9307 | 0.0152 | ||
| Network 2 () | |||||
| 2 | optimal | 911, 3852 | 0.9410 | 0.0363 | 0.0260 |
| rule (14) | 1915, 6173 | 0.9213 | 0.0560 | ||
| 3 | optimal | 634, 2211, 5736 | 0.9549 | 0.0223 | 0.0173 |
| rule (14) | 1289, 3588, 8193 | 0.9468 | 0.0305 | ||
| 4 | optimal | 492, 1549, 3497, 7479 | 0.9613 | 0.0160 | 0.0130 |
| rule (14) | 968, 2509, 4979, 9906 | 0.9572 | 0.0201 | ||
| 5 | optimal | 408, 1195, 2510, 4672, 9072 | 0.9650 | 0.0123 | 0.0104 |
| rule (14) | 775, 1915, 3588, 6173, 11405 | 0.9626 | 0.0147 | ||
| 6 | optimal | 351, 979, 1960, 3435, 5736, 10549 | 0.9673 | 0.0100 | 0.0087 |
| rule (14) | 647, 1542, 2792, 4541, 7232, 12723 | 0.9657 | 0.0115 | ||
| 8 | optimal | 277, 717, 1353, 2228, 3404, 5034, 7580, 12756 | 0.9700 | 0.0072 | 0.0065 |
| rule (14) | 490, 1106, 1915, 2957, 4313, 6173, 9080, 14906 | 0.9693 | 0.0080 | ||
delivering suboptimal quality be linear in the quality gap, , with both priced in the same currency. Since , the total cost is , minimized at . The square root brings insensitivity: misestimating either price by moves by only .
The law against ground truth
Figure 4 compares the prediction with exact optimal gaps for up to 64: the optimal-gap curves descend with slope and converge onto their asymptotes from above. Quantitatively (Complex, Network 1), the ratio of true optimal gap to is 1.06 at , 1.03 at , and 1.008 at . By the law is an engineering-grade estimate, and the estimate is one integral. The decay explains the slow returns practitioners observe: doubling the rung count halves the gap rather than quartering it. The Network-2 constants are smaller—on a faster network more traffic sits where quality has saturated—yet the optimal rungs roughly double at every , tracking the bandwidth quantiles. Table 4 shows the exact optima for both networks alongside the law's prediction.
Table 5: The law's constants (SSIM) and the ladder sizes needed to keep the quality gap within a tolerance .
| Configuration | |||
|---|---|---|---|
| Easy / Network 1 | 0.020 | 2 | 4 |
| Medium / Network 1 | 0.080 | 8 | 16 |
| Complex / Network 1 | 0.108 | 11 | 22 |
| Easy / Network 2 | 0.010 | 1 | 2 |
| Medium / Network 2 | 0.039 | 4 | 8 |
| Complex / Network 2 | 0.052 | 5 | 10 |

Figure 4: The law against exact optima (Network 1, all contents). Dots: gaps of optimal ladders (dynamic programming); dashed: from Table 5.
6 Extensions
The analysis so far fixed one encoding resolution and took an objective metric at face value. We now remove both simplifications, and a third—that clients adapt to bandwidth alone—using the models of [10,11,13]; Fig. 5 and Table 6 summarize their forms, parameters, and origin. How the solution survives these changes is itself a result: the mathematics is invariant; only the constants move.
6.1 Resolutions and perceptual quality
Real ladders vary the encoding resolution because at any bitrate there is a best resolution to spend it on: at low rates a smaller, softer picture wins; at high rates it hits its detail ceiling. The quality-rate model becomes a family —one curve per encoding resolution , each satisfying the assumptions (1).
More broadly, we can also introduce a perceptual quality model : the quality of a video encoded at resolution and rate , as seen in a window of height and with some other known parameters (display density, display brightness, distance between the viewer and the screen, etc.). Two properties of such a model carry all subsequent mathematics. The first is separability:
a product of a scaling and reproduction quality factor and the codec-level model . The second is saturation due to the window limit: for (Fig. 5(b)).
Table 6: The models used in Fig. 5 and the numerical examples of the extensions.
| Model | Form used in the examples | Origin and fitting |
|---|---|---|
| Resolution-dependent quality | The quality-rate functions of Table 1 with resolution-dependent parameter . “Easy”: , ; “Medium”: , ; “Complex”: , . | Fitted through a few dozen probe encodes per sequence; this model was shown to predict SSIM of H.264-encoded video reasonably well [11]. |
| Separable perceptual quality model | Model (15): the factor is derived from the Westerink–Roufs model [32], evaluated at the window’s viewing angle and the video’s effective spatial frequency; the codec factor is a monotone remapping of the quality-rate model above onto the 1–5 MOS scale. | Proposed in [11]; fitted to subjective scores and shown to perform well across several datasets [11,13]. |
| Client resolution thresholds | Rule (16) with fitted . | Fitted to observed web-player behavior [10]. |
| Web-audience window heights | Eleven observed heights with probabilities : (228, .103), (240, .018), (380, .063), (430, .027), (480, .481), (630, .038), (678, .084), (710, .018), (774, .033), (810, .052), (990, .084); mean 538 lines. | Measured session statistics [10]. |
The achievable quality-rate frontier for a window is the upper envelope of the family, , dashed in Fig. 5(a,b). In all our computations we use the model proposed in [11], with characteristics summarized in Table 6. This model reports results using the 1–5 mean-opinion-score (MOS) scale, which we adopt in the presentation of all perceptual quality results.
6.2 The envelope reduction
Under a bandwidth-only client and a single viewing condition—a fixed window height —the enlarged design problem collapses back onto the one just solved. The loads depend on the rates alone, so the average quality is maximized over resolutions term by term, by , and the design problem reduces to (7) with the envelope in place of . (Resolutions must be nondecreasing along the ladder; the maximizer is nondecreasing in for all fitted models used here, so this holds automatically.) Everything of the preceding sections then applies to : the identification, the dynamic program—run once on the envelope, with resolutions read off the argmax—and Proposition 1. The envelope is nondecreasing but only piecewise —it has kinks where the curves cross—so the proposition applies after splitting at the finitely many kinks.
6.3 Two-dimensional adaptation: player size
On the web, video plays in a window of layout-determined height , distributed broadly across sessions (Table 6). Fetching more lines than the window can display wastes bits, so web players cap their selection by the window. The fitted client model [10] adds a second staircase, mirroring the bandwidth rule (2) over the ladder's resolutions :
for , with the conventions and : each switching threshold is a weighted average of two consecutive ladder resolutions, with a fitted weight . The two staircases
(a) perceptual model, 1080-line window

(b) same curves, 480-line window

(c) 2-D selection
Figure 5: The extensions in one view (Complex content). (a) Perceptual quality at four encoding resolutions in a 1080-line window: the curves cross, and the achievable frontier is their upper envelope (dashed). (b) The same encodings in a 480-line window: the window caps attainable quality—saturation. (c) The two-dimensional client rule for the five-rendition web-audience ladder of Table 7: L-shaped cells bounded by two independent threshold chains (white lines); the dark band below is buffering.
compose by taking the more restrictive one,
so bandwidth proposes and the window caps. The audience splits by window height into audience segments, each seeing the ladder truncated at its own cap—and the segments disagree about where rungs should go. Under the min-composition, rendition is delivered on an -shaped region bounded by two independent families of lines: vertical at the rates , horizontal at the thresholds (Fig. 5(c)).
The average delivered quality now runs over both variables. With the window height taking its observed values with probabilities , and with the selection rule (17),
where buffering contributes zero quality, as before. This looks like a genuinely two-dimensional design problem. It is not: the L-shaped cell geometry and the separability of the quality model collapse it.
Theorem 1 (Exact reduction; [11]). For any separable quality model (15), the two-dimensional average quality (18) equals
where for , , and the audience weights
collect the segments whose cap exceeds i and the segments capped at i; both depend on the resolutions alone.
Table 7: Optimal five-rendition two-dimensional ladders for two audiences (Complex content, Network 1, perceptual quality).
| Audience | Optimal renditions () [lines, kbps] |
|---|---|
| Web audience (heights of Table 6) | (288, 398), (480, 805), (480, 1463), (480, 2496), (900, 2550) |
| Full screen, 1080-line windows | (480, 283), (900, 739), (1080, 1402), (1080, 2391), (1080, 4443) |
Proof. Write for the cap of the segment with window height —by (16) a function of the resolutions alone. Under the rule (17), a client of this segment receives rendition exactly when , and rendition whenever : below the cap the cells are the ordinary bandwidth cells, and everything above collapses into one capped tail. By separability (15), the quality delivered to this segment by rendition is . Substituting into (18) and splitting the inner integral at the rates,
Exchanging the sums over and and collecting the terms at each rendition gives (19) with the weights (20). Separability is what closes the audience sum into these finite weights: without the factorization (15), the sum over would remain inside the bandwidth integral. Both weights depend on the resolutions alone—through in , and through the thresholds (16) in .
No two-dimensional integral survives: bandwidth enters only through at the rates, player size only through the finite sums , and the objective is chain-structured in the rates. Design becomes an outer enumeration over monotone resolution chains around the inner dynamic program of Section 3.2.
The designs are visibly audience-specific (Table 7): the web audience’s optimum uses resolutions 288–900 only, with no 1080-line rung, and tops out at 2550 kbps where the full-screen optimum reaches 4443. Rungs follow the audience’s joint mass in (window, bandwidth), not the display technology’s maximum.
The asymptotics transfer conditionally. A single-segment audience sees the one-dimensional problem of the envelope reduction, so Proposition 1 applies with the envelope constant ( MOS for Complex content on Network 1), and descends toward it from above, as in Fig. 4. For mixed audiences no single constant applies, but the range can be bracketed: if all rungs were shared by all segments, the audience-averaged loss density would give MOS; if every segment required private rungs, a Cauchy–Schwarz allocation over the segments’ own law constants gives MOS. Measured exact optima run between these brackets, with still growing through and an effective log-log slope of the gap around : for realistic web audiences, adding rungs pays even less than the law suggests, and which segment the next rung serves matters more than adding it. The joint limit—segments, caps, and interacting—is the principal open problem.
6.4 What else transfers
The same argument covers more: richer client policies replace hard cells by kernel-weighted soft ones; mixtures of audiences or networks enter linearly through ; multi-codec ladders (H.264, HEVC, AV1) [12] segment the audience by decoder capability exactly as window size does, and Theorem 1 extends term by term. In each case the identification, the dynamic program, and the law with recomputed constants are expected to carry over.
7 Conclusion
Ladder design turned out to be scalar quantization of the bandwidth distribution, of an edge-constrained, one-sided kind, and the classical high-resolution answers reshape accordingly: the optimal gap decays as with explicit constant , rates should follow , quantile designs land a few percent from optimal, and “how many rungs?” has a closed-form answer. The structure is not streaming’s alone—it recurs in the assortment, approximation, and link-adaptation problems of the introduction, where its core asymptotics were, in deterministic form, first discovered. What this paper contributes is the connection: the identification, the probabilistic Zador form with its explicit constant, and the design calculus. The open problems we find most inviting are the Zador-general version of the law, including the atoms that rate-capped service tiers produce; converses under richer client models; and the joint multi-segment limit.
References
[1] R. Pantos and W. May, “HTTP live streaming,” RFC 8216, IETF, Aug. 2017.
[2] ISO/IEC 23009-1:2012, “Dynamic adaptive streaming over HTTP (DASH)—Part 1,” 2012.
[3] Apple Inc., “Best practices for creating and deploying HTTP live streaming media for Apple devices,” Tech. Note TN2224, 2016.
[4] A. Aaron, Z. Li, M. Manohara, J. De Cock, and D. Ronca, “Per-title encode optimization,” Netflix Technology Blog, Dec. 2015.
[5] C. Chen, Y.-C. Lin, S. Benting, and A. Kokaram, “Optimized transcoding for large scale adaptive streaming using playback statistics,” in Proc. IEEE ICIP, 2018, pp. 3269–3273.
[6] Y. A. Reznik, X. Li, K. O. Lillevold, R. Peck, T. Shutt, and P. Howard, “Optimizing mass-scale multi-screen video delivery,” SMPTE Motion Imaging J., vol. 129, no. 3, pp. 26–38, 2020.
[7] A. V. Katsenou, J. Solé, and D. R. Bull, “Efficient bitrate ladder construction for content-optimized adaptive video streaming,” IEEE Open J. Signal Process., vol. 2, pp. 496–511, 2021.
[8] A. Telili, W. Hamidouche, S. A. Fezza, and L. Morin, “Convex hull prediction methods for bitrate ladder construction: design, evaluation, and comparison,” ACM Trans. Multimedia Comput. Commun. Appl., 2025.
[9] Y. A. Reznik, K. O. Lillevold, A. Jagannath, J. Greer, and J. Corley, “Optimal design of encoding profiles for ABR streaming,” in Proc. Packet Video Workshop, 2018, pp. 43–47.
[10] Y. A. Reznik, K. O. Lillevold, A. Jagannath, and X. Li, “Towards understanding of the behavior of web streaming,” in Proc. Picture Coding Symp. (PCS), 2021.
[11] Y. A. Reznik, “Average performance of adaptive streaming,” in Proc. IEEE Data Compression Conf. (DCC), 2021, pp. 263–272.
[12] Y. A. Reznik, X. Li, K. O. Lillevold, A. Jagannath, and J. Greer, “Optimal multi-codec adaptive bitrate streaming,” in Proc. IEEE Int. Conf. Multimedia & Expo Workshops (ICMEW), 2019.
[13] N. Barman, R. Vanam, and Y. A. Reznik, “Parametric quality models for multiscreen video systems,” in Proc. European Workshop on Visual Information Processing (EUVIP), 2022.
[14] R. M. Gray and D. L. Neuhoff, “Quantization,” IEEE Trans. Inf. Theory, vol. 44, no. 6, pp. 2325–2383, 1998.
[15] S. P. Lloyd, “Least squares quantization in PCM,” IEEE Trans. Inf. Theory, vol. 28, no. 2, pp. 129–137, 1982 (Bell Laboratories memorandum, 1957).
[16] J. Max, “Quantizing for minimum distortion,” IRE Trans. Inf. Theory, vol. 6, no. 1, pp. 7–12, 1960.
[17] W. R. Bennett, “Spectra of quantized signals,” Bell Syst. Tech. J., vol. 27, pp. 446–472, 1948.
[18] P. F. Panter and W. Dite, “Quantization distortion in pulse-count modulation with nonuniform spacing of levels,” Proc. IRE, vol. 39, pp. 44–48, 1951.
[19] P. L. Zador, “Asymptotic quantization error of continuous signals and the quantization dimension,” IEEE Trans. Inf. Theory, vol. 28, no. 2, pp. 139–149, 1982 (Ph.D. dissertation, Stanford University, 1963).
[20] J. A. Bucklew and G. L. Wise, “Multidimensional asymptotic quantization theory with rth power distortion measures,” IEEE Trans. Inf. Theory, vol. 28, no. 2, pp. 239–247, 1982.
[21] S. Graf and H. Luschgy, Foundations of Quantization for Probability Distributions. Berlin: Springer, 2000.
[22] J. D. Bruce, Optimum Quantization, Sc.D. thesis, MIT, 1965.
[23] X. Wu, “Optimal quantization by matrix searching,” J. Algorithms, vol. 12, no. 4, pp. 663–673, 1991.
[24] Z. Wang, L. Lu, and A. C. Bovik, “Video quality assessment based on structural distortion measurement,” Signal Process.: Image Commun., vol. 19, no. 2, pp. 121–132, 2004.
[25] W. Sadowski, “A few remarks on the assortment problem,” Management Science, vol. 6, no. 1, pp. 13–24, 1959.
[26] D. W. Pentico, “The assortment problem: A survey,” Eur. J. Oper. Res., vol. 190, no. 2, pp. 295–309, 2008.
[27] H. G. Burchard, “Splines (with optimal knots) are better,” Applicable Anal., vol. 3, pp. 309–319, 1974.
[28] D. E. McClure, “Nonlinear segmented function approximation and analysis of line patterns,” Quart. Appl. Math., vol. 33, pp. 1–37, 1975.
[29] R. A. DeVore, “Nonlinear approximation,” Acta Numerica, vol. 7, pp. 51–150, 1998.
[30] A. J. Goldsmith and S.-G. Chua, “Variable-rate variable-power MQAM for fading channels,” IEEE Trans. Commun., vol. 45, no. 10, pp. 1218–1230, 1997.
[31] S. T. Chung and A. J. Goldsmith, “Degrees of freedom in adaptive modulation: A unified view,” IEEE Trans. Commun., vol. 49, no. 9, pp. 1561–1571, 2001.
[32] J. H. D. M. Westerink and J. A. J. Roufs, “Subjective image quality as a function of viewing distance, resolution and picture size,” SMPTE J., vol. 98, pp. 113–119, 1989.