---
title: "Why xHE-AAC is being embraced at Meta"
description: "Meta has deployed the xHE-AAC codec across Facebook and Instagram (including Reels and Stories) for two main capabilities: client-side loudness management and seamless adaptive bitrate audio."
url: "https://swe.quest/articles/why-xhe-aac-is-being-embraced-at-meta-68fad0ef6d9037bd"
canonical: "https://engineering.fb.com/2023/04/11/video-engineering/high-quality-audio-xhe-aac-codec-meta/"
source: "Meta Engineering"
published: "2023-04-11"
difficulty: "medium"
kind: "Case study"
reading_minutes: 4
tags: ["video-media","speech-audio","mobile"]
---

# Why xHE-AAC is being embraced at Meta

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-04-11, 4 min read, Case study. Original: [https://engineering.fb.com/2023/04/11/video-engineering/high-quality-audio-xhe-aac-codec-meta/](https://engineering.fb.com/2023/04/11/video-engineering/high-quality-audio-xhe-aac-codec-meta/)

## Summary

Meta has deployed the xHE-AAC codec across Facebook and Instagram (including Reels and Stories) for two main capabilities: client-side loudness management and seamless adaptive bitrate audio. Rather than burning a target loudness and DRC profile into the encode, Meta keeps the original audio and ships MPEG-D DRC loudness metadata so each client applies a target level and DRC effect suited to headphones, speakers or noisy environments. Audio ABR works by placing immediate playout frames (IPFs) at the start of each aligned DASH segment, keeping sample rate and channel configuration constant across lanes, and giving each lane a unique stream ID; this reduced playback stalls on Facebook for Android. Encoding uses Fraunhofer's SDK in two-pass mode, which measures loudness first and enables loudness range control DRC to avoid pumping artifacts, with shaka-packager producing the DASH output.

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)
- [Speech & audio](https://swe.quest/tags/speech-audio.md) (AI & ML)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)

## Prerequisites

- audio codecs basics
- DASH adaptive streaming ([easy posts on Stream processing](https://swe.quest/tags/stream-processing.md?difficulty=easy))

## Keywords

xHE-AAC, MPEG-D DRC, DASH, shaka-packager, Fraunhofer IIS, Instagram Reels

## 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.
- [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.
- [Better video for mobile RTC with AV1 and HD](https://swe.quest/articles/better-video-for-mobile-rtc-with-av1-and-hd-7dfda60dab6d29eb.md): Meta Engineering · 2024-03-20 · Medium · 14 min read · Video & media, Communications, Mobile, Performance engineering
  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).
- [Reducing Instagram’s basic video compute time by 94 percent](https://swe.quest/articles/reducing-instagram-s-basic-video-compute-time-by-94-percent-8efd07bfee25d57c.md): Meta Engineering · 2022-11-04 · Medium · 5 min read · Video & media, Cost optimization, Capacity planning, Performance engineering
  Instagram cut the compute cost of its basic adaptive bit rate (ABR) video encodings by 94 percent by reusing the frames from its progressive encodings and repackaging them into a DASH-capable file structure instead of transcoding from the original upload.

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)
