-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
102 lines (100 loc) · 4.28 KB
/
Copy pathindex.html
File metadata and controls
102 lines (100 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebCodecs Demos</title>
<link rel="icon" href="data:,">
<style>
body {
font-family: sans-serif;
margin: 20px;
background-color: #f4f4f4;
color: #333;
line-height: 1.6;
}
h1 {
text-align: center;
color: #0056b3;
margin-bottom: 30px;
}
.container {
max-width: 900px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h2 {
color: #0056b3;
border-bottom: 2px solid #eee;
padding-bottom: 10px;
margin-top: 30px;
}
p {
margin-bottom: 15px;
}
ul {
list-style: none;
padding: 0;
}
li {
margin-bottom: 20px;
padding: 15px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: #f9f9f9;
}
a {
color: #007bff;
text-decoration: none;
font-weight: bold;
}
a:hover {
text-decoration: underline;
}
code {
background-color: #e9e9e9;
padding: 2px 4px;
border-radius: 3px;
}
</style>
</head>
<body>
<div class="container">
<h1>WebCodecs API Demonstrations</h1>
<p>This page provides links to demonstrations of various features of the <a href="https://www.w3.org/TR/webcodecs/" target="_blank">WebCodecs API</a>, which allows web applications low-level access to video and audio encoders and decoders.</p>
<h2>Demos:</h2>
<ul>
<li>
<h3><a href="ltr_demo.html">Long-Term Reference (LTR) Frames Demo</a></h3>
<p>
Demonstrates the use of manual Long-Term Reference frames in video encoding with WebCodecs. This technique can improve video stream resilience to packet loss. The demo compares a standard encoding setup with one that utilizes LTR frames, simulating network loss and delay.
</p>
<p>
<strong>WebCodecs Features:</strong> <code>VideoEncoder</code> with <code>scalabilityMode: 'manual'</code>, <code>encode()</code> options like <code>referenceBuffers</code> and <code>updateBuffer</code>, <code>EncodedVideoChunk</code>, <code>VideoDecoder</code>.
</p>
</li>
<li>
<h3><a href="rate_control_demo.html">Rate Control Demo</a></h3>
<p>
Compares browser internal rate control with an external JavaScript-based rate control algorithm (<code>SimpleRateController</code>) using WebCodecs. Users can adjust target bitrate and other parameters to observe the impact on video quality and stream size.
</p>
<p>
<strong>WebCodecs Features:</strong> <code>VideoEncoder</code> configuration for <code>bitrateMode: 'constant'</code> (internal RC) vs. <code>bitrateMode: 'quantizer'</code> (external RC), dynamic reconfiguration, <code>EncodedVideoChunk</code> metadata.
</p>
</li>
<li>
<h3><a href="webcodecs_manual_scalability.html">Manual Temporal Scalability Demo</a></h3>
<p>
Illustrates manual temporal scalability using the <code>scalabilityMode: 'manual'</code> feature of WebCodecs with the AV1 codec. The demo encodes a single stream into multiple temporal layers, then decodes and displays different subsets of these layers to show the effect on frame rate and quality.
</p>
<p>
<strong>WebCodecs Features:</strong> <code>VideoEncoder</code> with <code>scalabilityMode: 'manual'</code>, <code>av1</code> encode options, <code>encode()</code> options for buffer management (<code>referenceBuffers</code>, <code>updateBuffer</code>), multiple <code>VideoDecoder</code> instances.
</p>
</li>
</ul>
</div>
</body>
</html>