| <!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> |