Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 14 min read Deep dive hardMaster

MSVP is Meta’s first video processing ASIC

Meta Scalable Video Processor (MSVP) is an in-house ASIC for VOD and live-stream transcoding. It connects to the host over PCIe Gen4 with 8 GB of LPDDR5 and runs decode, resampling, H.264/VP9 encode and quality metrics (SSIM, VIF, PSNR) as memory-to-memory stages. At about 10W it reaches 4K15 at highest quality (1-in, 5-out) or 4K60 at standard quality, with roughly 9x the throughput of libx264 and 50x that of libVPX speed 2. The encoder makes software-grade quality feasible in silicon through parallel motion search, hardware-friendly rate estimation for RDO, spatial/temporal adaptive QP, smart rounding (1–2% BD-Rate) and two-pass look-ahead. Encodes are tiered by predicted watch time across basic, full and advanced ABR.

Related posts

  • FFmpeg at Meta: Media Processing at Scale

    Meta Engineering easyNovice

    Meta retired its long-diverged internal FFmpeg fork by working with FFmpeg developers, FFlabs and VideoLAN to upstream the two capabilities it depended on. Threaded multi-lane transcoding, which decodes once and runs all output encoders in parallel, arrived over FFmpeg 6.0 through 8.0. In-loop decoding in FFmpeg 7.0 enables real-time PSNR/SSIM/VMAF quality metrics for livestreams. Infrastructure-specific patches, such as support for Meta's MSVP transcoding ASIC via FFmpeg's standard hardware acceleration APIs, stay internal and are rebased with extensive validation.

  • Better video for mobile RTC with AV1 and HD

    Meta Engineering mediumAdept

    Meta improved 1:1 mobile RTC video in Messenger, Instagram and WhatsApp by moving from H.264 to software AV1 for low-bandwidth calls (under 300 Kbps). AV1's palette mode, intra-block copy and reference picture resampling help with screen content and avoid key frames on resolution changes, and custom scalers plus face-based region-of-interest encoding add further gains. The costs are roughly 3x encoder CPU, a 5-6% battery increase and more out-of-memory crashes. Meta handles these with a hybrid encoder that switches to H.264 mid-call based on CPU, battery or encode time, and by disabling AV1 on low-memory devices. A lightweight in-product PSNR estimate showed about 2 dB gain over H.264, and an HD mode (720p, 30 fps, 3.5 Mbps) for high-end networks required better congestion detection, including ISP throttling detection.

  • Introducing the next-gen Meta Training and Inference Accelerator

    Meta Engineering hardMaster

    Meta's second-generation MTIA inference accelerator, built on TSMC 5nm at 1.35GHz and 90W, more than doubles compute and memory bandwidth over v1. It keeps utilization high at small batch sizes for ranking and recommendation models by pairing an 8x8 processing-element grid with outsized SRAM (256 MB on-chip at 2.7 TB/s, 384 KB local per PE), a faster network-on-chip and 128 GB LPDDR5. The chips ship in 72-accelerator racks over PCIe Gen5 and run a PyTorch 2.0 stack with a user-space driver and a Triton-MTIA compiler backend, which got production traffic running within days and reached 16 regions in under nine months. Early results show 3x chip performance over v1 and 6x serving throughput with 1.5x performance per watt at the platform level.

  • How Meta brought AV1 to Reels

    Meta Engineering mediumAdept

    Meta deployed AV1 encoding and delivery for Facebook and Instagram Reels, using SVT-AV1 for encoding and the dav1d software decoder on iOS and Android because most phones lack AV1 hardware decoders. Encoding uses a two-stage hybrid ABR pipeline: a fast hardware AVC pass at upload builds a convex hull of resolution/CRF points, and videos whose projected watch time crosses a threshold get a second software encode with AVC, VP9 or AV1 at the selected points. On Android, Meta ran a small on-device benchmark to score phone capability for A/B gating, mixed hardware VP9 and software AV1 decoding for ABR lane switches, and prefetched videos to hide decoder startup latency. On iPhone, AV1 cut average Reels bit rate by 12% and raised playback FB-MOS by about 0.6 points.

  • Meta introduces its first-generation AI inference accelerator

    Meta Engineering hardMaster

    MTIA v1 is Meta's first custom inference ASIC for deep learning recommendation models: a TSMC 7nm, 800 MHz, 25 W chip delivering 102.4 INT8 TOPS, built from an 8x8 mesh of processing elements with customized RISC-V cores, fixed-function units, 128 KB local SRAM each, 128 MB shared on-chip SRAM and up to 128 GB LPDDR5. Twelve accelerators on dual M.2 boards sit in Yosemite V3 servers connected by PCIe switches. A PyTorch-integrated software stack lowers models through FX IR and LLVM, with hand-tuned kernels and a KNYFE DSL for generating kernels. On perf/W, MTIA beats an NNPI accelerator and a GPU on low- and medium-complexity DLRMs but trails the GPU on high-complexity models, and memory and interconnect bandwidth are the bottlenecks for future designs.

The quest for software engineering knowledge.

Look:
Layout: