---
title: Converting projected video to Apple Projected Media Profile
framework: avfoundation
role: sampleCode
role_heading: Sample Code
path: sample-code/avfoundation/converting-projected-video-to-apple-projected-media-profile
---

# Converting projected video to Apple Projected Media Profile

Convert content with equirectangular or half-equirectangular projection to APMP.

## Overview

Overview note: This sample code project is associated with WWDC25 session 297: Learn about the Apple Projected Media Profile. Configure the sample code project The app takes a path to a monoscopic or stereoscopic (frame-packed) side-by-side or over-under stereo input video file as a single command-line argument. To run the app in Xcode, click the Run button to convert the included side-by-side frame-packed stereoscopic 180 sample asset (Lighthouse_sbs.mp4), or choose Product > Scheme > Edit Scheme, and edit the path to your file on the Arguments tab of the Run build scheme action. To add projected media metadata to an output file, pass one of the following two options: Other options: By default, the project’s scheme loads a side-by-side video from the Xcode project folder named Lighthouse_sbs.mp4.

## See Also

### Media writing

- [Converting side-by-side 3D video to multiview HEVC and spatial video](avfoundation/converting-side-by-side-3d-video-to-multiview-hevc-and-spatial-video.md)
- [Adding a display mask rectangle metadata track to a movie file](avfoundation/adding-a-display-mask-rectangle-metadata-track-to-a-movie-file.md)
- [Writing fragmented MPEG-4 files for HTTP Live Streaming](avfoundation/writing-fragmented-mpeg-4-files-for-http-live-streaming.md)
- [Creating spatial photos and videos with spatial metadata](imageio/creating-spatial-photos-and-videos-with-spatial-metadata.md)
- [Tagging media with video color information](avfoundation/tagging-media-with-video-color-information.md)
- [Evaluating an app’s video color](avfoundation/evaluating-an-app-s-video-color.md)
- [AVOutputSettingsAssistant](avfoundation/avoutputsettingsassistant.md)
- [AVAssetWriter](avfoundation/avassetwriter.md)
- [AVAssetWriterInput](avfoundation/avassetwriterinput.md)
- [AVAssetWriterInputPixelBufferAdaptor](avfoundation/avassetwriterinputpixelbufferadaptor.md)
- [AVAssetWriterInputTaggedPixelBufferGroupAdaptor](avfoundation/avassetwriterinputtaggedpixelbuffergroupadaptor.md)
- [AVAssetWriterInputMetadataAdaptor](avfoundation/avassetwriterinputmetadataadaptor.md)
- [AVAssetWriterInputGroup](avfoundation/avassetwriterinputgroup.md)
