microsoft/mlvc

MLVC: Multi-platform Learned Video Codec for Real-World Deployment

What it solves

Video compression is normally done by hardware codecs like HEVC (H.265) built into devices. MLVC is a neural (machine-learning) video codec that compresses video more efficiently than hardware HEVC — over 70% better in a quality measure called MOS-based BD-rate — while still running in real time (about 100 frames per second for both encoding and decoding) on the neural processing units (NPUs) found in ordinary consumer devices from Apple, Intel, and Qualcomm at 540p resolution.

How it works

MLVC uses neural networks to compress video. The repository provides pre-trained models in two sizes — MLVC (18.3M parameters) and a smaller MLVC-S (5.4M parameters) — each with a PSNR-optimized and a perceptual-quality variant. It includes full training code (built on top of the DCVC-RT project), tools to convert trained models into formats that run on specific hardware (CoreML for Apple, ONNX for Intel's OpenVINO and Qualcomm's QNN), a production-ready C++ entropy coder for real-time deployment, and benchmarking tools that compute BD-rate, rate-distortion curves, and quality metrics against reference codecs (anchors such as hardware HEVC and DCVC-RT).

Who it's for

Researchers and engineers working on neural video compression who want to train, evaluate, and deploy a learned video codec on real consumer hardware. It's also for developers who want to ship a codec that runs on NPUs from Apple, Intel, or Qualcomm — device deployment is handled by the companion libmlvc C++ library.

Highlights

  • Over 70% MOS-based BD-rate improvement over hardware HEVC
  • ~100 FPS encode and decode on commodity NPUs (Apple, Intel, Qualcomm) at 540p
  • Pre-trained checkpoints for two model sizes (MLVC, MLVC-S) and two objectives (PSNR, perceptual)
  • Full training pipeline, including perceptual fine-tuning and a smaller "S" variant
  • Conversion tools to CoreML, ONNX (OpenVINO), and QNN formats
  • Production-ready C++ entropy coder for real-time deployment
  • Benchmarking tools: BD-rate, RD curves, quality metrics (PSNR, MS-SSIM, LPIPS, VIF, DeQA), and provided anchors

Related

  • Project
  • Project
  • Project
  • Project
  • Project