Tool

Why Is My VMAF Score So Low? Diagnose It From Two ffprobe Outputs

The video looks fine, but VMAF came out low? Sometimes the low score is not caused by the encode but by mismatched comparison conditions. Paste the ffprobe output of the reference and of the encode, and the tool shows which differences look suspicious, ranked by priority, and builds a measurement command with those differences corrected. Your input is analyzed only inside this browser.

Run ffprobe -hide_banner file.mp4 on each file and paste the whole output (ffprobe prints it to stderr, so in PowerShell add 2>&1). The first box is the reference and the second box is the encode.

Why mismatched conditions lower the score

VMAF pairs one frame of the reference with one frame of the encode and compares them. If the pairs do not line up, you are comparing two different pictures, so the score drops even when the quality is good. This tool checks only the common ways pairs go out of step, and only as far as the ffprobe summary can show them.

  • Input order: the libvmaf filter reads the first input as the encode (distorted) and the second as the reference. Resolution correction is usually applied to the encode side as well, so swapping the order can change the result.
  • Resolution, pixel aspect ratio, rotation: if the sizes differ, one side has to be scaled up or down, and the score depends on the method (bicubic and so on). If a phone video's rotation tag remains on only one side, width and height can end up mismatched.
  • fps: frames are known to be paired by timestamp, so when the fps differs, frames overlap or get skipped.
  • Color range (tv/pc), pixel format, color tags: comparing limited range with full range shifts every brightness value. A format with a j in its name, such as yuvj420p, is full range.
  • Start time and duration (frame offset): if the beginning is missing a frame or two, or the start value differs, every later frame is compared one slot off. This is the classic case where the picture looks identical but the score is cut sharply.
  • Audio and subtitle tracks: they should not affect the score, but there are reports on the ffmpeg user mailing list and the bug tracker that the wrong pairs were created when the streams were not restricted to video only. This site has not reproduced that.

How to get the ffprobe output

  1. Run ffprobe -hide_banner file.mp4 on the reference and on the encode.
  2. In PowerShell, ffprobe prints its info to the error stream, so append 2>&1, as in ffprobe -hide_banner file.mp4 2>&1. Copy everything that appears on screen and paste it into the matching box.
  3. The Duration: …, start: … line is needed for the start-time and duration comparison. If it is missing, only the other items are checked.

How to read the result and how to use it

  • Fix the high-impact candidates one at a time and measure again. If several causes overlap and you fix them all at once, you cannot tell which one affected the score and by how much.
  • The re-measurement command resets the start time to 0 (setpts=PTS-STARTPTS) and corrects any resolution, fps and format differences on the encode side. Because this correction affects the score, use the same correction whenever you compare scores between different videos.
  • Baseline first: if check command ① (the reference compared with itself) is not near the maximum, the measurement setup itself has a problem. If ① is normal, ② (compared with a copy that has its first frame dropped) lets you see directly how much a one-frame offset cuts the score on your own video.
  • To build a measurement command from scratch, use the VMAF ffmpeg command builder. To interpret a score, use the VMAF score interpreter. For the per-frame score distribution, use the VMAF JSON log viewer.
  • If the score is still low after you have matched everything correctly, the quality may really be low. The measurement of how the score falls as you cut the bitrate sharply is in Where Does Video Quality Collapse at Extreme Compression?, and a case where the mean is high but some frames are low is in Is Average VMAF 95 Good Enough?.

About the size of the score drop: why no numbers are shown

A per-mistake drop such as “one frame off costs this many points” is likely to vary a lot with the motion in the scene and the differences between frames. This site has not measured those values yet, and to avoid publishing numbers without evidence, this tool does not calculate the drop either. Instead, check commands ① and ② above let you measure it on your own video. If this site measures it, the result will be published as a separate lab article.

Limitations worth knowing

  • It reads only the ffprobe summary lines. It cannot see frame content, keyframes, or the actual frame intervals of variable frame rate (VFR) video. If you suspect VFR, use the VFR detector as well.
  • It reads only the default text output. JSON, -show_streams and MediaInfo formats cannot be read, and only the first Video stream is compared.
  • It is only a list of candidate causes. No mismatch does not mean the score is fine, and a mismatch does not necessarily lower the score. The criteria are this site's summary of the ffmpeg documentation and widely known usage experience.
  • Frame counts are converted values. They are the duration or start difference multiplied by fps, so they can differ from the actual frame count that ffprobe would count.
  • This site has not run the generated commands. They can fail if your build lacks libvmaf or has a different version, and no model is specified, so your build's default model is used.