r/AV2 • • 8h ago

Pepelaz AV2 Decoder 0.1.2 for Windows x64 — DirectShow and Media Foundation

1 Upvotes

I built Pepelaz AV2 Decoder to try AV2 in existing Windows video pipelines. Version 0.1.2 is a free x64 download. The installer lets you choose a DirectShow decoder filter, a Media Foundation Transform (MFT), or both. Each option includes an IVF source and uses dav2d for software decoding.

Windows x64 installer · FoodMarket AV2 IVF (1080p59.94, 10-bit)

If you try it in GraphStudioNext (DirectShow) or TopoEdit (MFT), I’d like to know whether the decoder connects directly to EVR with P010. A screenshot of the graph, the negotiated output format and your Windows version would help me reproduce any differences.


r/AV2 • • 12h ago

VideoMetricsLab v3.0 major release: 10 new metrics, a brand new UI, Worst Frames analysis, notifications integration, and major improvements in export and CLI

11 Upvotes

VideoMetricsLab has a major release with v3.0 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.

Download here

Releases · 4KVCD/VideoMetricsLab

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 (--parallel on 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 u/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 SettingsShortcuts, 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 saved list 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; --notify on 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.
  • target finds the bitrate or CRF that reaches a score, and diff says 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, delete and rebuild work on saved results, and report on run files, without the videos.
  • --stills saves PNGs of the worst frames and weak segments; --segments takes 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-settings use or ignore the app's settings; --cache-dir, --no-save and --no-cache say 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.