Tool

VMAF Log (JSON) Viewer

Open a JSON log made with FFmpeg’s libvmaf to draw the per-frame scores as a graph and find the bottom 1%, the minimum and the worst windows that the average hides. Nothing to install or upload; the file is read only inside this browser.

1. Open a VMAF JSON log

The file is not sent to a server; it is read only inside this browser. The sample uses made-up values to show the format and is not a real measurement.

How do I make the log?

If your FFmpeg build includes libvmaf, you can save a JSON log while comparing an encode against its source. The first input is the video being compared (the encode) and the second is the original.

ffmpeg -i encoded.mp4 -i original.mp4 \
  -lavfi "[0:v][1:v]libvmaf=log_fmt=json:log_path=vmaf.json" \
  -f null -

If the two videos differ in resolution or frame rate, you need to match them first; this tool does not change that setup and only reads the log. Upload the resulting vmaf.json in the box above. The tool reads the vmaf value insidemetrics for each entry of the frames array. If you specified several models and more than one entry starts with vmaf, a dropdown appears so you can pick one.

What do the numbers on screen mean?

  • Mean is the arithmetic mean of the per-frame scores. This is the value usually reported as ‘the VMAF score’.
  • Harmonic mean is an average that is pulled down harder by low scores. The larger the gap from the mean, the more low-scoring frames are mixed in.
  • Bottom 1% and 5% points are the frame values at those positions when scores are sorted from lowest, and the bottom 1% mean is the average of the worst 1% of frames. With few frames, 1% is only a handful of frames and ends up close to the minimum.
  • Worst windows are the places where the average of consecutive frames over the length you enter (1 second by default) is lowest. The tool picks 3 that do not overlap, and calculates times by dividing the frame number by the fps.
  • Runs below the threshold group consecutive frames whose score stays under the threshold. Use them to tell a one-frame dip from a dip that lasts several seconds.

How do I use the results?

  • If the mean looks fine but the minimum or bottom 5% is low, look at the graph to see whether the dip is a single point or a stretch. A single point may be a momentary problem such as the first frame or a scene change; a stretch may mean that scene was short on bitrate (these are possibilities, and you need to play that time range to confirm the cause).
  • What each score range means, and how bad the worst moments are relative to the mean, can be read in the VMAF Score Interpreter. The comparison box at the bottom of this viewer uses the same measured data.
  • How far the minimum can spread even when the mean VMAF is similar is covered in Is Average VMAF 95 Good Enough?
  • Once you have found a bad window, raise your target with the CRF Recommender, re-encode, and generate a new log to compare. You can build the command in the FFmpeg Command Builder.
  • If the times look off, the video may be variable frame rate. Check it with the VFR Detector.

Limitations worth knowing

  • This tool does not calculate VMAF. It only reads and displays a libvmaf JSON log that already exists, and it has no feature for uploading a video file. Which version and model were used depends on the settings of whoever made the log.
  • JSON is the only supported format. It reads the frames[].metrics.vmaf structure. XML or CSV logs, or output from tools with a different structure, may not be readable. For a log measured by skipping frames (subsampling), times are calculated from the frame numbers, but the length of a worst window is based on the number of measured frames.
  • Times are calculated from the fps you enter. Because the time is frame number ÷ fps, it will not match the real playback time for variable frame rate video or a wrong fps.
  • The comparison baseline is a small dataset. Our measurements are values from four 10-second 1080p25 8-bit clips measured on a single PC. Comparisons with video of a different length, resolution or content are only a rough reference, and we have not verified from how many points of difference the gap becomes visible.
  • A low score does not necessarily mean it looks bad. This tool does not show the picture. For important video, play the time ranges it points to yourself.
  • Very large logs use a lot of browser memory, so files over 300 MB are not opened.