---
title: "Enhancing HDR on Instagram for iOS With Dolby Vision"
description: "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."
url: "https://swe.quest/articles/enhancing-hdr-on-instagram-for-ios-with-dolby-vision-4075611ec7eeb01d"
canonical: "https://engineering.fb.com/2025/11/17/ios/enhancing-hdr-on-instagram-for-ios-with-dolby-vision/"
source: "Meta Engineering"
published: "2025-11-17"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["video-media","mobile","open-source"]
---

# Enhancing HDR on Instagram for iOS With Dolby Vision

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2025-11-17, 9 min read, Case study. Original: [https://engineering.fb.com/2025/11/17/ios/enhancing-hdr-on-instagram-for-ios-with-dolby-vision/](https://engineering.fb.com/2025/11/17/ios/enhancing-hdr-on-instagram-for-ios-with-dolby-vision/)

## Summary

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. Meta upstreamed amve support to FFmpeg, implemented Dolby Vision Profile 8.4 to AV1 Profile 10.4 transcoding with fixes in libaom, SVT-AV1, dav1d and Shaka packager, and on the client extracts Dolby Vision metadata from its own AV1 decode path to feed AVSampleBufferDisplayLayer. A first A/B test showed lower watch time because the metadata added about 100 kbps and slowed loading. Switching to a compressed metadata format cut that to about 25 kbps, which required an FFmpeg bitstream filter and roughly 2000 lines of client-side decompression, and a second test showed increased time in app.

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)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- video codecs (HEVC, AV1, VP9) ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))
- HDR video basics ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))
- video transcoding pipelines ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))

## Keywords

Dolby Vision, FFmpeg, AV1, HEVC, AVSampleBufferDisplayLayer, Instagram, Shaka packager, dav1d

## Related posts

- [Bringing HDR video to Reels](https://swe.quest/articles/bringing-hdr-video-to-reels-29eb6ac55a3191a2.md): Meta Engineering · 2023-07-17 · Medium · 9 min read · Video & media, Mobile
  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.
- [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).
- [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.
- [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.

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)
