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.
Two files, one identifier
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:
- In the MOV, it sits in the QuickTime metadata under the key
com.apple.quicktime.content.identifier. - In the JPEG, it lives in Apple's MakerNote inside the EXIF block.
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.
Encoding in the browser
The video side can be done with WebCodecs. VideoDecoder reads frames from the source (MP4, WebM, or frames extracted from a GIF), and VideoEncoder with an avc1 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.
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.
Practical limits
- Keep it short: 1.5–3 seconds feels most natural; long clips make poor Lock Screen wallpapers.
- Use the frame you want as the still. The middle of the clip usually looks best.
- Transfer both files together. AirDrop or the Files app preserves them; some messaging apps strip metadata and break the pair.
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: AnimatePilot's Live Photo Maker 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.
Top comments (0)