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

content / test / data / gpu / webcodecs / encoding-rate-control.html [blame]

<!DOCTYPE html>
<!--
Encodes several seconds of video and checks that the encoder adheres to the
specified bitrate.

Each frame has a number of new gradient filled ellipses appearing on it.
We can control complexity of the video by changing the number of ellipses.
It's easier on encoders than pure white noise, but not as easy as some static or
a ffmpeg test input.
-->
<html>

<head>
  <title>Encoding bitrate test</title>
  <script src="webcodecs_common.js"></script>
  <script src="encoding-rate-control.js"></script>
  <script type="text/javascript">
    addManualTestButton([{
      'codec': 'avc1.420034',
      'acceleration':'prefer-hardware',
      'bitrate_mode': 'constant',
      'bitrate': 2000000
    }]);
  </script>

</head>

<body>
  <canvas id="src"></canvas>
</body>

</html>