Repository navigation
v3.0
v3.0 is a major update that adds 10 new metrics (HDR VMAF, MS-SSIM, CAMBI, CIEDE2000, and various YUV metrics), a
brand new UI with lots of functionality improvements, significantly faster SIMD implementations for all CPU metrics,
a Worst Frames tab, a Saved Results tab for every score you have saved, one-click saves and exports, notifications
when a run ends, keyboard shortcuts and full keyboard use (with Windows' contrast themes and Text size followed, and
every control named for screen readers), a command line built for scripts and pipelines (exit codes, quality gates,
target and diff, JSON progress, and a JSON Schema for every file), and fixes many bugs.
New metrics and performance
Metrics
Ten new metrics. "CPU and GPU": it runs on the GPU where it can, or on the CPU if you choose. Every metric on the CPU,
new and old, is SIMD optimized: AVX2 on x86 CPUs, NEON on ARM CPUs. The GPU versions are custom-written and
optimized in Vulkan, so they run on NVIDIA, AMD, Intel and Apple GPUs alike.
- HDR VMAF, Netflix's models for HDR10 video: CPU and GPU (its features on the GPU).
- MS-SSIM: CPU and GPU.
- MS-SSIM YUV (planes weighted 6:1:1): CPU and GPU.
- CAMBI, Netflix's banding measure: CPU and GPU.
- CIEDE2000, the color difference ΔE: CPU and GPU.
- VMAF YUV (6:1:1): CPU and GPU.
- PSNR YUV (6:1:1): CPU.
- PSNR YUV avg. dB (6:1:1): CPU.
- SSIM YUV (6:1:1): CPU.
- PSNR-HVS-M (8:1:1): CPU.
The YUV metrics can show their separate Y, U and V scores in columns of their own.
Also new:
- VVC film grain is made from each picture's own grain data (VVdeC #486).
Performance
- On the CPU, SSIM is 5.2-6.6x faster, XPSNR 5.7-7.5x and PSNR 1.2-8.3x (the most on 8-bit video), same scores, and
PSNR and SSIM use 18 % less CPU on letterboxed films. - AV2 is decoded with splot instead of dav2d: 10-bit AV2 decodes 3-4x faster.
- VMAF, VMAF NEG and VMAF v1 on the CPU are 2.9x faster, same scores: they are calculated by the app's bundled
libvmaf-fast instead of FFmpeg's filter. - SSIMULACRA2 and Butteraugli on the CPU are calculated by the app's own engines instead of libjxl's tools: 1.8-2.7x
faster, with far less memory at 4K (Butteraugli up to 3.2 GB less). - VVC decoded on the GPU is handed to VMAF and VMAF v1 on the GPU, without a trip through system memory: 15-48 % less
CPU. - Removed the "Calculate CPU metrics for 2 videos in parallel" option (
--parallelon the command line): the CPU
metrics are now so much faster from SIMD and multithreading that scoring two videos at once no longer makes a run
faster.
A new UI and new features, by @jakejackson
The window
- VML Modern, a redesigned window in nine looks, four light (Light, Dim, Paper, Desert) and five dark (Dark, Mocha,
Joker, Nitrate, Phosphor), with an accent color of your own (Settings > Appearance). It can follow Windows between
light and dark, in the look you picked for each, and follows Windows' contrast themes and Text size. VML Classic is
retired. - The title bar matches the window and shows the run's progress from any tab (Ready, how far the run is, then Done,
Finished · 1 failed or Canceled), with the theme and the update check. - Fewer windows to click away: what a click did, an export's result and a run's end show in a line at the top right,
visible from any tab. - Keyboard shortcuts for the main actions, such as F5 for Calculate metrics, listed with F1 and changeable in Settings
Shortcuts, as is what the mouse does on Video Compare's video. The whole window works from the keyboard: a ring
shows where you are, the graphs can be stepped through, zoomed and panned with the keys, and screen readers can name
every control. - Settings is in sections instead of one long page; save buttons say what they save, with a Save as... choice beside
them. - The window asks before it closes during a run.
Worst Frames and weak segments
- Worst Frames becomes its own tab (it was inside Metric Graphs), showing where each encode is weakest: its worst
frames and weak stretches on a graph and in lists you can sort, with your own number of dips, and a double-click to see any of them in Video Compare. - Weak segment profiles keep your own rules for what counts as weak, with presets for animation, CGI, grain-free
digital, grainy film, HDR and low-bitrate previews; each segment says which rule made it weak.
Saved Results
- A Saved Results tab lists every comparison whose scores are saved, with its scores and details, to open in Metric
Graphs, export or delete without adding the videos again. - Saved scores are kept track of in an SQLite index beside their folders: the Saved Results tab, Settings and
vml-cli savedlist them from it instead of reading every folder, about 9x faster with 20,000 saved comparisons
(100,000 saved results list in about 12 seconds, 34.6 minutes before), and the lookups for renamed, moved and
remuxed videos read it too. Settings > Saved Results > Rebuild index
(vml-cli saved rebuild) makes it again from the folders, and damage to it is repaired. - Saved scores are found again after a video is renamed, moved or copied, so it isn't scored twice, and (a setting)
after a test video is remuxed into another container. - A video's bitrate is read once and remembered: added again, it shows over 200x sooner (a film on a network share).
- Saved results can be deleted all at once, by age, or between two dates, and the question says how many could not be
scored again because their reference is gone.
Saving and exporting
- Every graph, table and list has a save button that saves what it shows in one click.
- One Export button saves everything for the selected videos, or all of them: results, per-frame scores, graphs,
worst frames and weak segments, as JSON, CSV or both, in a .zip file or a folder; Settings can make the same export
for each video as its run ends (Settings > Storage > After each run). - Per-frame scores, Metric Graphs' statistics, the worst frames and the Bitrate Viewer's data can be saved as JSON.
- Comparison files: save the list of videos being compared, and open it again later or run it with the command line
(--save-list,--list).
Runs and notifications
- A notification when a run ends, by Pushover, Discord, Gotify, ntfy, Pushbullet, Slack, Telegram or a webhook, with a
message you build yourself (Settings > Notifications;--notifyon the command line). The keys are stored
encrypted. - A warning marks a test video whose frames don't line up with its reference's (a frame dropped or added), a common
cause of scores that collapse partway through, and says what the check costs. - The warning for a test video of another length names the video and says how much shorter or longer it is, and Media
info shows each test video's length.
Videos, graphs and Video Compare
- Add/remove metrics lists the metrics in two sections, General purpose and Specialized, saying what each measures;
drag the metric columns into the order you want, and every table, graph and export follows it. - A ✕ at the start of each row removes that video, and Start over clears the reference and every test video.
- Long test-video names are shortened to the part that tells them apart ("…CRF 20", "…CRF 22").
- The Videos tab has no dividers to drag: the list of videos takes the room to spare.
- Metric Graphs shows only the metrics that were calculated, and its table's heading says when its statistics are of a
highlighted range of frames rather than the whole video. - Metric Graphs and the Bitrate Viewer go to a time and highlight a range of times, and Options > Range takes times,
all to the millisecond (hh:mm:ss.sss). - Right-click Metric Graphs' graph to show that frame in Video Compare.
- Video Compare's loop is set to the millisecond or in frames, says which frames it loops, and is remembered.
- Video Compare says why there is no sound, and Advanced info is a panel that can be selected and copied for a bug
report. - Video Compare's Zoom is a list from 25% to 800%, and the video sits on pure black.
- BD-rate reads encodes from JSON files as well as CSV.
Command line
- Exit codes and error codes a script can act on, and quality gates (
--require "vmaf>=95",--fail-on-segments)
that fail a run whose scores fall short. targetfinds the bitrate or CRF that reaches a score, anddiffsays how a run differs from an earlier one.- Scores both ways in one run (
--scale-to both,--film-grain both) and tests a resolution with the scaler of your
choice (--resolution-test WIDTH[:SCALER]). saved list,show,deleteandrebuildwork on saved results, andreporton run files, without the videos.--stillssaves PNGs of the worst frames and weak segments;--segmentstakes weak segment profiles and presets.- Progress as JSON lines (
--progress jsonl), time limits (--timeout,--video-timeout) and a clean cancel when
the input ends. --settings/--no-settingsuse or ignore the app's settings;--cache-dir,--no-saveand--no-cachesay
where scores are saved, or that they aren't.- Every JSON file the command line and the window write has a JSON Schema.
For contributors
- Developer keys for testing the window, off unless it starts with
VML_DEV=1: they write the window's state as JSON,
save a picture of it, draw its Tab order, and step through the looks, the languages and a run's states.
Code improvements
- The window and the command line now share one engine: they read videos, choose the metrics, plan and run each
comparison, save scores and write results, exports and notifications through the same code, so the same videos give
the same scores and files in both.target,diff, stills and quality gates are part of it too. - Every result and export file is written by one writer that never leaves half a file after a full disk or a crash,
and makes missing folders. - The window's code is split into smaller parts (the run, the exports, the saved-score lookups, the Videos list), and
its background work runs on one shared pool.
Bug fixes (10 by @jakejackson)
- Fixed very small videos getting scores that looked real but were not (a perfect SSIMULACRA2 and Butteraugli under 8x8
pixels) or failing badly: a metric now refuses a picture too small for it, with a message naming it. - Fixed the Approx. bitrate column showing about the whole file's rate rather than the video's for some mkvmerge remuxes
with cover art or compressed subtitles; BD-rate took that rate too. - Fixed the app crashing with Video Compare's Loop ticked at a video's last frame, when FFmpeg plays the pair.
- Fixed scores not being saved ("Access is denied") when the window or another vml-cli was reading the same saved
comparison at that moment. - Fixed films from 1080i Blu-rays and NTSC DVDs, stored at 23.976 fps with soft 3:2 pulldown, being refused as a
variable frame rate, or as "Frame rates do not match" against their source (#305). - Fixed a variable-frame-rate Matroska video (a web rip, or an encode that dropped frames) being refused as cut short,
though it plays to its end. - Fixed a Matroska cut or remux whose first frame is not at 0 being refused as longer than its own re-encode ("Durations
do not match"). - Fixed MKV files from older mkvmerge versions (statistics tags with a language) being taken as long as their audio, so
a Blu-ray remux was counted as longer than its encode, and their bitrate being estimated (#66). - Fixed black-bar detection failing on every RGB video (such as libx264rgb encodes), which stopped the run unless
cropping was turned off. - Fixed every weak segments export suggesting the same file name, so a second one replaced the first.
- Fixed the GPU chosen in Settings or with
--gpunot being kept to: VMAF and VMAF v1 moved to another GPU when the
chosen one could not run them, and AMD's and NVIDIA's decoders used the first GPU of their maker. - Fixed the second of two GPUs of the same name not being choosable, a part of a name (
--gpu radeon) picking different
GPUs for decoding and for scoring, and a chosen GPU that is no longer there being passed over silently. - Fixed Video Compare showing an untagged encode of an HDR source as washed-out SDR, in playback, PNG export and the
command line's stills, while the metrics score it as HDR. - Fixed Video Compare's sound going silent for good after a seek far into a long film whose audio mkvmerge indexed by
the video only (#204). - Fixed Play doing nothing in Video Compare after a seek near a video's end, or after a pause made while playback was
behind (#220). - Fixed the window pausing during a run on videos on a network share as each metric's scores arrived (#317), and
freezing for up to half a second when switching to or from Video Compare (#311). - Fixed a test video that was missing when the app started being dropped from the reopened videos without a word: the
window now names it (#323). - Fixed Video Compare's HDR to SDR view not working on a video without color tags when FFmpeg plays it (since v2.1).
Minor bug fixes (16 by @jakejackson)
- Fixed Calculate metrics, clicked while saved scores were looked up, starting by itself on a list changed meanwhile.
- Fixed the mouse wheel changing a Settings box's value instead of scrolling the tab when the pointer passed over it.
- Fixed
vml-cli compare -qsaying nothing when the scores could not be saved. - Fixed every start being slower on a PC whose GPU driver crashes in Vship's GPU check: the crashing check ran again
each time before the saved answer was found. - Fixed the Options panel staying disabled after a test video was added, until its row was clicked, and going blank on a
click below the rows. - Fixed Options > Range being reset when switched between Time and Frames.
- Fixed Tab never leaving a table once it had rows, so the controls after it could not be reached with the keyboard.
- Fixed Video Compare still saying a video's file is missing after the file is put back, until another tab was opened
(#326). - Fixed Video Compare trying again, at every seek, a way of decoding that had already failed for the file, when FFmpeg
plays the pair. - Fixed Video Compare's Loop being unticked at every start, though its seconds were kept.
- Fixed the Scaling column, before a run, saying a video would be scaled when the run only cuts its black bars, showing
nothing for an anamorphic video the run does scale, and showing "Pending" for a letterboxed reference and an encode
whose sizes differ in one dimension only. - Fixed a canceled run's summary counting the videos it canceled, and those it never started, as still queued (#324).
- Fixed the BD-rate graph's rate axis having no numbers when the encodes' bitrates were close together or lay between
two of its steps (#319), and the BD-rate tab warning twice for every metric neither side has scores of. - Fixed Video Compare's status line showing a decoder's error text while the video played (on a PC without a usable GPU,
its whole technical status) and saying "Paused" at the video's end (#316). - Fixed Video Compare starting playback twice as it opened.
- Fixed Video Compare playing, sound included, after you left the tab, when Loop was ticked and the video stood at its
last frame without having been played. - Fixed Video Compare's Timestamp box staying red with its error after a wrong time, once the frame had moved on.
- Fixed Metric Graphs' table and graph moving up and down when switching between metrics, and its readout under the
pointer being cut off after a line was ticked off or on, or a long one widening the tab past the window. - Fixed a quick second click on a column heading not reversing the sort of the Videos table.
- Fixed a click on a tab putting the cursor in the first box on its page, and the keyboard focus jumping to another part
of the window when a button grayed itself, such as BD-rate's Clear. - Fixed graphs drawing a score at the axis's end (VMAF 100) a pixel off, with an empty band past the best score for
metrics without a fixed top. - Fixed long tooltips running across the screen in one line.
Requirements
- Windows 10 or 11 (x64), or macOS 14.4 or later on Apple silicon.
- FFmpeg 9 or newer with
ffmpegandffprobe(on Windows the app offers to download it when it finds none). - For the GPU metrics and GPU decoding: an NVIDIA, AMD or Intel GPU on Windows, or the Mac's own GPU.
Tested on
- Windows 11, Core Ultra 9 285K with an RTX 5090 (driver 617.24), FFmpeg 9.0.1.
- Windows 11, Core i7-10700 with an RTX 3070 (driver 616.92).
- Windows 11, Ryzen AI Max+ 395 with its Radeon 8060S (driver 32.0.32029.2010), FFmpeg 9.0.2.
- macOS on Apple silicon: the package is built and unit-tested by CI from the same commit.
Downloads
VideoMetricsLab-windows.zipandVideoMetricsLab-macos-arm64.zip, each with its SHA-256 in a.sha256file.- The macOS app is not notarized: the first time, open it from System Settings > Privacy & Security > Open Anyway.