<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ethan Brooks</title>
    <description>The latest articles on DEV Community by Ethan Brooks (@ethan_brooks).</description>
    <link>https://dev.to/ethan_brooks</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4253650%2Fba431405-3517-4403-9271-725fc0c89632.png</url>
      <title>DEV Community: Ethan Brooks</title>
      <link>https://dev.to/ethan_brooks</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ethan_brooks"/>
    <language>en</language>
    <item>
      <title>What iOS actually needs to treat a video as a Live Photo</title>
      <dc:creator>Ethan Brooks</dc:creator>
      <pubDate>Thu, 19 Nov 2026 11:19:17 +0000</pubDate>
      <link>https://dev.to/ethan_brooks/what-ios-actually-needs-to-treat-a-video-as-a-live-photo-1ai3</link>
      <guid>https://dev.to/ethan_brooks/what-ios-actually-needs-to-treat-a-video-as-a-live-photo-1ai3</guid>
      <description>&lt;p&gt;If you save an MP4 to an iPhone, you get a video. If you set that video as wallpaper, nothing moves. A Live Photo is a different thing: a still image and a short QuickTime movie that the Photos app pairs into one asset. I recently built a browser tool that creates these pairs, and the format turned out to be more interesting than I expected.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two files, one identifier
&lt;/h2&gt;

&lt;p&gt;A Live Photo is a JPEG (or HEIC) plus a MOV. What ties them together is a shared content identifier, a UUID-style string written into both files:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the &lt;strong&gt;MOV&lt;/strong&gt;, it sits in the QuickTime metadata under the key &lt;code&gt;com.apple.quicktime.content.identifier&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;JPEG&lt;/strong&gt;, it lives in Apple's MakerNote inside the EXIF block.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the two values match, Photos merges the files into one Live Photo on import. If they do not, you get a photo and a separate video. The movie also carries a timed metadata track that marks the still-image moment, which is how iOS knows which frame the photo corresponds to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Encoding in the browser
&lt;/h2&gt;

&lt;p&gt;The video side can be done with WebCodecs. &lt;code&gt;VideoDecoder&lt;/code&gt; reads frames from the source (MP4, WebM, or frames extracted from a GIF), and &lt;code&gt;VideoEncoder&lt;/code&gt; with an &lt;code&gt;avc1&lt;/code&gt; codec string produces H.264, which is what iOS expects for this use. Hardware acceleration is available in most current browsers, so a three-second 1080p clip encodes quickly. For browsers without WebCodecs you can fall back to ffmpeg.wasm, slower but workable.&lt;/p&gt;

&lt;p&gt;The muxing is the fiddly part. You need to write the MOV container yourself (or with a small muxer) so that you control the metadata atoms. The JPEG side means inserting an APP1 EXIF segment with the MakerNote; libraries like piexifjs help with the basics, but you will end up writing a few bytes by hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Keep it short: 1.5–3 seconds feels most natural; long clips make poor Lock Screen wallpapers.&lt;/li&gt;
&lt;li&gt;Use the frame you want as the still. The middle of the clip usually looks best.&lt;/li&gt;
&lt;li&gt;Transfer both files together. AirDrop or the Files app preserves them; some messaging apps strip metadata and break the pair.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you would rather use something ready-made, exiftool can write the identifiers on the desktop, and several mobile apps do the job. I'll be upfront that I built a browser version myself: &lt;a href="https://animatepilot.com/live-photo-maker?utm_source=devto&amp;amp;utm_medium=guest_post&amp;amp;utm_campaign=backlinks" rel="noopener noreferrer"&gt;AnimatePilot's Live Photo Maker&lt;/a&gt; is part of AnimatePilot, my own product (I'm Ethan Brooks, founder; launched 2026). It runs entirely on-device, nothing is uploaded, and it is free. The interesting work, though, is the format, and none of the above is specific to my code.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>ios</category>
      <category>video</category>
    </item>
  </channel>
</rss>
