---
title: "Bringing HDR video to Reels"
description: "Facebook and Instagram Reels now accept HDR uploads from phone camera rolls and play them back in full HDR, which required handling HLG and PQ formats across a fragmented device landscape."
url: "https://swe.quest/articles/bringing-hdr-video-to-reels-29eb6ac55a3191a2"
canonical: "https://engineering.fb.com/2023/07/17/video-engineering/hdr-video-reels-meta/"
source: "Meta Engineering"
published: "2023-07-17"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["video-media","mobile"]
---

# Bringing HDR video to Reels

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-07-17, 9 min read, Case study. Original: [https://engineering.fb.com/2023/07/17/video-engineering/hdr-video-reels-meta/](https://engineering.fb.com/2023/07/17/video-engineering/hdr-video-reels-meta/)

## Summary

Facebook and Instagram Reels now accept HDR uploads from phone camera rolls and play them back in full HDR, which required handling HLG and PQ formats across a fragmented device landscape. Early on, HDR uploads were tone mapped to SDR on the client: Apple's native APIs on iOS, and on Android custom shaders that read the transfer function from metadata and convert YUV frames to BT.709. The server pipeline now keeps the original HDR and produces both HDR and SDR encodings using a tuned Hable tone mapping operator, doubling compute for HDR videos, which the Meta Scalable Video Processor absorbs. Because iOS dims SDR content next to HDR, Explore grids tone map videos on the fly, while Reels applies a brightness multiplier so SDR overlays render at HDR brightness and white text stays legible.

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

## Prerequisites

- video codecs and color spaces ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))
- adaptive bitrate streaming ([easy posts on Stream processing](https://swe.quest/tags/stream-processing.md?difficulty=easy))

## Keywords

HDR, Reels, HLG, PQ, Hable tone mapping, BT.709, Meta Scalable Video Processor, Dolby Vision

## Related posts

- [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.
- [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.
- [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).
- [What the iPhone Duo means for web development](https://swe.quest/articles/what-the-iphone-duo-means-for-web-development-ae876b58f98678e3.md): Mux · 2026-10-23 · Medium · 8 min read · Frontend, CSS, Browsers, Video & media, Mobile
  Safari on the foldable iPhone Duo exposes the Device Posture API and Viewport Segments API behind WebKit feature flags.
- [Why xHE-AAC is being embraced at Meta](https://swe.quest/articles/why-xhe-aac-is-being-embraced-at-meta-68fad0ef6d9037bd.md): Meta Engineering · 2023-04-11 · Medium · 4 min read · Video & media, Speech & audio, Mobile
  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.

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)
