Can Claude make video? Yes, but not out of thin air. Claude does not generate people or real footage here. It writes a web animation, then drives tools on your computer that capture every frame and encode an MP4. That suits text, charts, step-by-step explainers, shop notices and simple product intros. For actors or realistic footage, or to understand or shorten a video you already have, take another route.
We did it on Windows 11 with Claude Code (model Opus 5.5): a 10-second 1920×1080 animation, then a second 1080×1920 vertical one, both exported to MP4. Below are the prompt, the commands, the ffprobe results and what actually broke. The first full export met every spec, yet stood still for 6.27 of its 10 seconds.
Watch, edit or make: pick a route first
| Your situation | What to give Claude | What you get | Where to go |
|---|---|---|---|
| You have a video and want to understand it | Transcript plus a few key frames | Summary, timed notes | Can Claude watch videos? Transcripts, frames and summaries |
| You have footage and want it shorter, with captions | Transcript of the footage | Cut list, captions, rough cut | AI video editing: start with a talking-head rough cut |
| You only have text, numbers or an idea | Prompt, shots, specs | Web animation, then MP4 | This guide |
| How to choose | Video file in hand: first two rows | Need a new video: third row |

Then check your plan:
| Method | Plan | MP4? | For whom |
|---|---|---|---|
| Claude on the web writes script and shots | Any | No, text only | Someone else makes the video |
| Web animation as an artifact | Artifacts are listed for Free and up, including single-page websites | The help page lists MP4 export only for the Motion template | You want to see the motion without installing tools |
| Claude Motion | Beta on Team and Enterprise only; on by default for Team, off for Enterprise until an owner enables it | Yes, Export then MP4 | Your company has one of these plans |
| Claude Code + Playwright + ffmpeg (this guide) | Pro, Max, Ultra, Team, Enterprise or Console; not Free | Yes | You want control of size, length and every frame |
| How to choose | On Free, start with a web preview | Need an MP4: Motion on Team, Claude Code for individuals |
The Motion help page says it does not use a video generation model, so it cannot create realistic footage or people. Animations written with Claude Code share that limit.
What you need on Windows
Claude Code, Node.js, ffmpeg (with ffprobe) and Playwright. In an empty folder, run in PowerShell:
node -v
ffmpeg -version | Select-Object -First 1
ffprobe -version | Select-Object -First 1
node -e "import('playwright').then(()=>console.log('playwright ok')).catch(e=>console.log(e.code))"
Our machine returned:
v24.14.0
ffmpeg version 9.0-full_build-www.gyan.dev Copyright (c) 2000-2026 the FFmpeg developers
ffprobe version 9.0-full_build-www.gyan.dev Copyright (c) 2007-2026 the FFmpeg developers
ERR_MODULE_NOT_FOUND
Playwright must be reachable from the project folder; having it in another project does not count. We reused Playwright 1.62.1 (Chromium 151) from another project on the same machine instead of installing it again. For installation and how frame capture works, see HTML to MP4 with Playwright and FFmpeg.
To avoid downloading Chromium, use the Edge that ships with Windows: replace chromium.launch() with chromium.launch({ channel: 'msedge' }). We checked two frames of the vertical video this way and they rendered normally. Frames are not pixel-identical to Chromium, so keep one browser for the whole video.
Step 1: paste this prompt
Open Claude Code in the empty folder and replace the parts in angle brackets. This is an English translation of the Chinese prompt we ran for the vertical video; the English wording itself was not run.
Make a <10>-second animation in this folder and export it as MP4. Check tools first. If one is missing, stop and tell me; do not install anything.
VIDEO SPECS
- <1920×1080>, 30 fps, <10> seconds (<300> frames in total), silent, H.264, yuv420p
- Web technology only (HTML, CSS, JavaScript or SVG), offline, no external images
- Font: <Segoe UI>, built into Windows; body text at least <44> px
- Colors: background <#0F2854>, accent <#C09EF7>, text <white>
- All text at least <60> px from the edges; break lines where I say, never inside a word, never touching a card edge
CONTENT
- <0–2 s>: <title, subtitle>
- <2–8 s>: <three points, one every 2 seconds, each with a title and a description>
- <8–10 s>: <closing line, held so people can read it>
MOTION
- Until the final hold, the whole picture must keep changing visibly (for example, scale the content area evenly from 1.00 to 1.04), not just a thin line or a dot
- Holding still is allowed for the last <1.4> seconds and nowhere else
STEPS
1. Check node, ffmpeg, ffprobe and Playwright and list versions.
2. Write index.html. The picture depends on window.renderAt(seconds) and nothing else; no setTimeout, requestAnimationFrame or CSS autoplay.
3. Write render.mjs: open index.html with Playwright, wait for fonts, call renderAt(i / 30) for every frame and save screenshots as frames/0000.png and so on.
4. First export frames at <1, 3, 5, 7, 9.5> seconds and look at them: missing glyphs, overlaps, broken words, text at the edge, misalignment. Fix before exporting all frames.
5. Encode out.mp4 with ffmpeg.
ACCEPTANCE, all required
- Use ffprobe to list codec, size, fps, frame count, duration and pixel format, and compare each with the specs
- Extract the same seconds from out.mp4 with ffmpeg and look again
- Run freezedetect (noise=-60dB, duration=0.5) and list every still section; apart from the last <1.4> seconds there must be none
- Report the files made, the commands run, error messages verbatim and how you fixed them
Step 2: what Claude Code wrote and ran
index.html takes one input, the current second, through window.renderAt(t). render.mjs captures the frames. This is the landscape version; the vertical one changes the viewport to 1080×1920.
import { chromium } from 'playwright';
import { mkdir } from 'node:fs/promises';
import { pathToFileURL } from 'node:url';
import path from 'node:path';
const FPS = 30, SECONDS = 10;
const picks = process.argv.slice(2).map(Number); // e.g. node render.mjs 1 3 5 7 9.5
const times = picks.length ? picks : Array.from({ length: FPS * SECONDS }, (_, i) => i / FPS);
const dir = picks.length ? 'check' : 'frames';
await mkdir(dir, { recursive: true });
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1920, height: 1080 } });
await page.goto(pathToFileURL(path.resolve('index.html')).href);
await page.evaluate(() => document.fonts.ready);
for (const [i, t] of times.entries()) {
await page.evaluate((s) => window.renderAt(s), t);
const name = picks.length ? `${t}s` : String(i).padStart(4, '0');
await page.screenshot({ path: `${dir}/${name}.png` });
}
await browser.close();
console.log(`${times.length} frames -> ${dir}`);
node render.mjs 1 3 5 7 9.5
node render.mjs
ffmpeg -framerate 30 -i frames/%04d.png -c:v libx264 -pix_fmt yuv420p -movflags +faststart out.mp4
The first line prints 5 frames -> check, the second 300 frames -> frames. Across four timed runs, 300 frames took about 10.3 seconds.
Step 3: check with ffprobe and freezedetect
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,width,height,pix_fmt,r_frame_rate,nb_frames -show_entries format=duration,size -of default=noprint_wrappers=1 out.mp4

The final landscape file is h264, 1920×1080, yuv420p, 30/1, 300 frames, 10.000000 seconds and 716,077 bytes.
ffmpeg -hide_banner -i out.mp4 -vf freezedetect=n=-60dB:d=0.5 -map 0:v -f null - 2>&1 | Select-String freeze_
foreach ($t in 1,3,5,7,9.5) { ffmpeg -v error -y -ss $t -i out.mp4 -frames:v 1 "check-$t.png" }
The final version reports a single freeze_start: 8.633333 with no freeze_end: the intended hold until the end. Keep d=0.5. The ffmpeg documentation sets a 2-second default, and with the default our faulty first export reported nothing.
What broke: four fixes to a 10-second video
In the order they happened. The chart compares the still sections before and after fixes 2 and 3.

- A Chinese word split across lines. The second card's text was wider than the card, so the browser broke a two-character word and pushed the second half against the card's bottom edge. No error appeared; we saw it in the five check frames. Fix: explicit line breaks, no automatic wrapping, a taller card, and bold description text.
- Specs passed, 6.27 seconds still.
freezedetectlisted 1.00–2.03, 2.80–4.07, 4.77–6.07, 6.70–8.03 and 8.67 to the end. Each card moved for 0.9 seconds, then nothing happened until the next one. We asked for a progress line and a highlighted border. - The line moved, the result did not. Still five sections, 6.00 seconds. The filter takes the first frame of a still section as the reference and compares the average difference of all pixels in each later frame. Even after growing for a while, a 12 px line changes too small a share of the picture. At -80 dB the same file showed the final hold and nothing else, so the line did move, barely visibly. We asked for an even 1.00 to 1.04 scale of the content area. Both thresholds then reported the final hold alone; the file grew from 309,375 to 717,397 bytes.
- The closing line was misaligned. After scaling, the cards' left edge moved from 120 px to about 86 px while the closing line stayed at 120 px. One more sentence in the prompt fixed it. No number catches this; look at the frames.
The prompt in step 1 already includes these lessons. With the Chinese version of it, a vertical shop notice (sample content) passed on the first export: 300 frames, 10.000000 seconds, 467,962 bytes, one still section of 1.43 seconds from 8.57 seconds to the end. The prompt allowed 1.4 seconds, so it ran one frame over; we accepted that. Allow one frame in your prompt if the length matters.
Acceptance checklist
- Width, height, fps, frame count and duration match the specs; frames = seconds × fps
pix_fmtisyuv420p, as specified- Frames extracted from
out.mp4show no missing glyphs, boxes, overlaps or broken words, and the letterforms are from the font you asked for - Margins are even after any scaling or movement
- Every section
freezedetectlists withd=0.5is intended - Numbers, dates and names match the source
- Readable on a phone; played once in full; audio added separately if the platform needs it
Common errors on Windows
ERR_MODULE_NOT_FOUND, Cannot find package 'playwright' imported from …: Playwright is not reachable from this folder. Install it here, or run the script where it is installed.
Error opening input file frames/…\make.bat4d.png.: you saved the ffmpeg command in a .bat file. Batch treats %0 as the batch file's own name. Write %%04d inside a .bat; keep %04d in PowerShell. We ran both: a single % exited with a non-zero code (the number and the path in the message depend on how you start the batch file), %% with 0.
Boxes or the wrong font: do not rely on document.fonts.check(). Asked for a made-up font, "No Such Font XYZ", both Chromium 151 and Edge 158 returned true. Look at the frames. To have the browser report the font it used, add this to render.mjs after the line that waits for fonts:
const cdp = await page.context().newCDPSession(page);
await cdp.send('DOM.enable');
await cdp.send('CSS.enable');
const { root } = await cdp.send('DOM.getDocument');
const { nodeId } = await cdp.send('DOM.querySelector', { nodeId: root.nodeId, selector: 'h1' });
const { fonts } = await cdp.send('CSS.getPlatformFontsForNode', { nodeId });
console.log('fonts:', fonts.map((f) => f.familyName).join(', '));
Our landscape video printed fonts: 微軟正黑體, the Chinese name of Microsoft JhengHei. A different name means a substitute. With the same call, "DFKai-SB" returned DFKai-SB and the made-up name returned 微軟正黑體, the default here; if the font you want is also the default, this cannot tell the two apart, so check the frames too.
Plays, but feels like slides: run freezedetect with d=0.5, then ask for visible change in those seconds.
When not to use this
- Real people, real places or realistic product shots
- Shortening a talking-head recording: edit the footage instead
- Pages with live content, embedded video or heavy Canvas effects, until a short sample works
- A one-off notice: make a still image
FAQ
Can Claude make videos?
It can make animations. Claude Code writes a web animation, Playwright captures frames and ffmpeg encodes the MP4. Team and Enterprise plans also have Claude Motion with MP4 export. Neither generates realistic people or footage.
Can I do this on the Free plan?
You can make web animations as artifacts. The setup page says the Free plan does not include Claude Code, and MP4 export is documented for Motion on Team and Enterprise. You could ask for index.html and render.mjs and run the commands yourself; we have not tested that combination.
Do I need a skill?
No. We used no video skill. Remotion and HyperFrames both offer skills for Claude Code; we did not test them here.
How this was written
Team-tested on 2026-12-01: Windows 11, Claude Code 2.1.330 (desktop, Opus 5.5), Node.js 24.14.0, ffmpeg 9.0, Playwright 1.62.1. One landscape and one vertical 10-second video. The landscape one used an earlier prompt plus four fixes; the vertical one used the Chinese version of the prompt above. Official sources: Claude Help Center (Motion, artifacts), Claude Code setup, ffmpeg and Microsoft documentation, Remotion and HyperFrames pages, checked 2026-12-01. Not tested: Claude Motion, web artifacts, music or voice-over, macOS and Linux, Remotion and HyperFrames. Each prompt was run once.