---
title: "App Store preview videos with Claude Code"
slug: app-store-preview-videos-with-claude-code
section: tech
date: 2026-10-24T17:15:00.000Z
canonical: https://roland.leth.ro/blog/tech/app-store-preview-videos-with-claude-code
description: "How to make an App Store preview video without recording the app: redraw it in code and encode it with ffmpeg. All built with Claude Code."
---

An App Store preview is a video of 15 to 30 seconds that autoplays, muted, ahead of your screenshots, both in search results and on the product page. The usual way to make one is to record the app in the simulator or on a device, then cut the clips together in iMovie or something similar, since Apple's guideline 2.3.4 says previews "may only use video screen captures of the app itself".

[Digest][digest]'s preview isn't _really_ a recording, though: every frame is drawn in code from the app's own screens and components, the music is synthesized, and `ffmpeg` encodes the result, while Claude Code built the renderer and runs it. So, ultimately, it still showcases the app itself, but this allowed me to automate the video creation.

![Digest’s journal preview, drawn in code from the app’s own screens][video-1]

## Why draw it instead of recording it

Mostly control. Every frame lands at an exact moment, so captions, camera moves and cuts can sit on the music's beat, and a copy change is an edit and a re-render, not another recording session. There's no simulator in the loop either, which [fails in its own ways][simulator].

It also tells the same story as the screenshots. Those are drawn by the app itself, from a set of made-up decisions, and the video draws its screens from that same set, so a headline's number and the number on screen in the video are the same one ([the screenshots post][prev] has how those are built).

The cost is that it's a copy. The renderer redraws the app's views by hand, so when a screen changes in the app, the video doesn't, and nothing warns you; the screens need a second look before every re-render. But, funnily enough, building it even found a real bug in the app.

## How it's built

Each frame is drawn on a canvas in Node (`@napi-rs/canvas`, which is Skia underneath), and the raw pixels go straight into `ffmpeg`, which encodes H.264 at 30 frames a second: 886×1920 for iPhone and 1200×1600 for iPad.

The usual answer for video from code is Remotion, and most posts about making videos with Claude Code use it. But it needs a Chrome download and a local port to run, and the Claude Code sandbox allows neither, while a canvas and `ffmpeg` need nothing past the install.

What's on screen at any second is a pure function of time: give the story 12.4 seconds and it returns which scene is up, where the finger is and what's been typed so far, if any typing was involved, like in my case. So any frame can be drawn on its own, and the same source always draws the same pixels.

The sound is synthesized in code too; the music and the taps, with no narration. Previews play muted unless someone turns the sound on, so the captions carry the story anyway, the music is a bonus.

Claude can't watch a video, so a check step does what it can instead: it decodes a few frames and compares them with the same frames drawn fresh, and it checks the size, the frame rate and the loudness.

[Reckon][reckon] and [Weekly Gym][weekly-gym] use the same engine, each with its own look. Each render saves a fingerprint, a hash per frame plus one for the soundtrack, so when the shared engine changes, every app can check whether its videos changed with it.

## Getting it approved

Maybe I'm overthinking the "may only use video screen captures of the app itself" rule, because a video recording of the app and building a video by manually drawing the app are ultimately the same thing, but these are the rules I kept to, from the video's script:

- Only the app: every screen is drawn from its SwiftUI views, and everything lifted out is a real component, in a state the app can actually show.
- Motion moves a component, it never changes what the component says.
- It works muted, and the first 3 seconds open on the answer, the same hook as the first screenshot.

## What stays with me

Claude checks levels, stills and decoded frames, but it never sees the video play, so watching and listening at full speed is of course on me. So is the story: which story and hook it follows, what the captions say and which versions are worth keeping. For example, Reckon has 4 of them now, after 3 more were built and dropped, because I found their layouts lacking; building and iterating is now pretty easy.

A preview also takes the first slot in search results, so testing one against the screenshots needs some care, which is in [the A/B testing post][next].

If you've had a rendered preview rejected, or approved, I'd love to hear about it [@roland.leth.ro][] or [@rolandleth][]!

The rest of the series is listed in [Claude Code for iOS development][series].

[reckon]: /projects/reckon "Reckon"
[digest]: /projects/digest "Digest"
[weekly-gym]: /projects/weekly-gym "Weekly Gym"
[simulator]: /blog/tech/claude-code-and-the-ios-simulator-what-breaks "Claude Code and the iOS Simulator: what breaks"
[prev]: /blog/tech/automating-app-store-screenshots-with-claude-code "Automating App Store screenshots with Claude Code"
[next]: /blog/tech/ab-testing-app-store-screenshots-on-a-small-app "A/B testing App Store screenshots on a small app"
[series]: /blog/tech/claude-code-for-ios-development "Claude Code for iOS development"
[@roland.leth.ro]: https://bsky.app/profile/roland.leth.ro "@roland.leth.ro on Bluesky"
[@rolandleth]: https://x.com/rolandleth "@rolandleth on X"
[video-1]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/app-store-preview-videos-with-claude-code/media/app-store-preview-videos-with-claude-code/f197db8229b81829-digest-preview-journal.mp4 "Digest’s journal preview, iPhone"
