blob: afd732d955bbf86d2be756bccc02cd937223d747 [file] [edit]
<html>
<meta name="fuzzy" content="maxDifference=0-154; totalPixels=0-76781" />
<head>
<title>webm file with vp8</title>
<script src="../resources/testharness.js"></script>
<script src="utilities.js"></script>
<script>
// content encoded with ffmpeg -i test.mp4 -c:v libvpx -vf "scale=in_range=tv:out_range=tv" test-vp8.webm
// image: ffmpeg -sseof -3 -i test-vp8.webm -pred mixed -pix_fmt rgb24 -sws_flags +accurate_rnd+full_chroma_int -update 1 -q:v 1 -vf "scale=in_range=tv:out_range=tv" test-vp8.webm.png
// tv color range required until https://bugs.webkit.org/show_bug.cgi?id=267400
async function init()
{
if (window.testRunner)
testRunner.waitUntilDone();
let v = document.getElementsByTagName('video')[0];
v.src = "content/test-vp8.webm";
await once(v, 'canplay');
v.play();
// duration of the last frame.
v.currentTime = v.duration - 0.02;
await Promise.all([ once(v, 'seeked'), once(v, 'ended') ]);
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</head>
<body onload="init();">
<video/>
</body>
</html>