---
title: "Better video for mobile RTC with AV1 and HD"
description: "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)."
url: "https://swe.quest/articles/better-video-for-mobile-rtc-with-av1-and-hd-7dfda60dab6d29eb"
canonical: "https://engineering.fb.com/2024/03/20/video-engineering/mobile-rtc-video-av1-hd/"
source: "Meta Engineering"
published: "2024-03-20"
difficulty: "medium"
kind: "Case study"
reading_minutes: 14
tags: ["video-media","communications","mobile","performance"]
---

# Better video for mobile RTC with AV1 and HD

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2024-03-20, 14 min read, Case study. Original: [https://engineering.fb.com/2024/03/20/video-engineering/mobile-rtc-video-av1-hd/](https://engineering.fb.com/2024/03/20/video-engineering/mobile-rtc-video-av1-hd/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Video & media](https://swe.quest/tags/video-media.md) (Domains)
- [Communications](https://swe.quest/tags/communications.md) (Domains)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- video codec basics ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))
- WebRTC fundamentals ([easy posts on Communications](https://swe.quest/tags/communications.md?difficulty=easy))
- bandwidth estimation

## Keywords

AV1, H.264, WebRTC, PSNR, reference picture resampling, libyuv, SDP

## Related posts

- [Adopting AV1 for Real-Time Communication (RTC) at Scale](https://swe.quest/articles/adopting-av1-for-real-time-communication-rtc-at-scale-c700b86b1446a111.md): Meta Engineering · 2026-06-22 · Medium · 18 min read · Video & media, Communications, Mobile, Performance engineering
  Meta now runs AV1 for real-time video calls on most mobile devices in Messenger and WhatsApp.
- [How Meta brought AV1 to Reels](https://swe.quest/articles/how-meta-brought-av1-to-reels-f3c22ae15f525134.md): Meta Engineering · 2023-02-21 · Medium · 12 min read · Video & media, Mobile, Performance engineering
  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.
- [MLow: Meta’s low bitrate audio codec](https://swe.quest/articles/mlow-meta-s-low-bitrate-audio-codec-c51bb9c2ff6f3402.md): Meta Engineering · 2024-06-13 · Easy · 6 min read · Speech & audio, Communications, Real-time systems
  MLow is a CELP-based low-bitrate speech codec Meta built for calls on poor networks and low-end devices, where ML codecs like Encodec are too compute-heavy.
- [FFmpeg at Meta: Media Processing at Scale](https://swe.quest/articles/ffmpeg-at-meta-media-processing-at-scale-08e799a47d13d432.md): Meta Engineering · 2026-03-02 · Easy · 6 min read · Video & media, Open source, Performance engineering, Hardware
  Meta retired its long-diverged internal FFmpeg fork by working with FFmpeg developers, FFlabs and VideoLAN to upstream the two capabilities it depended on.
- [Enhancing HDR on Instagram for iOS With Dolby Vision](https://swe.quest/articles/enhancing-hdr-on-instagram-for-ios-with-dolby-vision-4075611ec7eeb01d.md): Meta Engineering · 2025-11-17 · Medium · 9 min read · Video & media, Mobile, Open source
  Instagram for iOS now preserves iPhone HDR metadata (ambient viewing environment and Dolby Vision) end to end, after FFmpeg-based server transcoding had been discarding it and degrading the image at low screen brightness.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
