Sign inSign up

wikimedia/visualmetrics

By wikimedia

Updated over 9 years ago

Command line port for calculating visual performance metrics from a video (from WebPageTest.org)

Image
1

1.5K

wikimedia/visualmetrics repository overview

visual metrics

This is the Docker version of the visual metrics created by Pat Meenan and the people working with WebPageTest. The visual metrics is the command line port for calculating visual performance metrics from a video (as made famous by WebPageTest).

Use the container to get metrics like First Visual Change, Last Visual Change, Speed Index, Perceptual Speed Index and the Visual Progress.

Build the container

If you make changes and want to test them locally, you can build the container like this:

docker build -t wikimedia/visualmetrics .

Download the container

docker pull wikimedia/visualmetrics

Help

You an check what you can do with visualmetrics by using help:

docker run wikimedia/visualmetrics python visualmetrics.py --help

Run

Fetch metrics, converting a video located in the current directory, storing images to an images folder:

docker run -v "$(pwd)":/tmp wikimedia/visualmetrics python visualmetrics.py --video /tmp/facebook-bad-network.mov --orange -k --dir /tmp/images --force

Record a video

To record a video you can follow the same procedure as WebPageTest. First go to a blank page by adding the URL data:text/html;charset=utf-8, then set the background color to orange. That will help the visual metrics to know when we start doing the test.

document.body.style.background = "#DE640D"

When you have started the video recording of the browser, change the background and the URL.

document.body.style.background = "#FFFFFF"; document.location.href="https://en.wikipedia.org/wiki/Facebook";

For more information checkout https://github.com/WPO-Foundation/visualmetrics

Tag summary

Content type

Image

Digest

sha256:e08530bb6

Size

349.2 MB

Last updated

over 9 years ago

docker pull wikimedia/visualmetrics