Rendering and motion blur

Two exports, two jobs. The quick export with sound is for sign-off. The blurred final is made once, after that.

Last updated 30 Nov 2026. Measured on a reference film.

Frame rate

30 fps is the default for product films. They are mostly interface, and 30 divides evenly into the 60 Hz screens nearly everyone watches on, so scrolling and pans stay steady. 24 fps gives a filmic feel but judders on UI. 60 fps is smoothest but takes about 2.5 times as long to render.

Frame rateUse forWhyRender time against 24 fps
30 fps (default)
Feature announcements, product demos, explainers, tutorials, onboarding, changelogs, social ads, App Store previews (Apple caps previews at 30 fps)
Mostly UI and text; steady on 60 Hz screens; the platform norm
About 1.25 times
24 fps
Brand films, cinematic launch films, teasers, customer stories built around filmed footage
The filmic look matters more than smooth UI
1 times
60 fps
Demos that scroll a lot of UI, fast camera pans, screen recordings captured at 60
The smoothest motion; judder disappears
About 2.5 times

Decide the frame rate in the brief. Changing it later means re-checking every frame-timed move.

Two exports

ExportSizeFrame rateBlurSoundUse
Quick
1280 x 720
15 fps
none
current mix
Sign-off, with sound
Final
1920 x 1080
30 fps (24 or 60 by use case)
180 degree shutter (1/60 s at 30 fps)
final mix
Once, after sign-off

Shutter

One frame (1/24 s). Shaded: shutter open, 1/48 s, centredNext to a cut: the shutter slides back inside its own scenecut
Blue ticks: sub-frames at (k + 0.5) / n. Black ticks: the two probe renders at the ends of the shutter.
12 samples is the default for moving frames. Fast moves use 24, so they streak smoothly instead of showing separate copies.

Speed blur

A setting on the final export for moves that gather pace: blur grows with speed, p^1.6, up to 1.1% S. Match it to the end of a speed ramp.

What the final export does, step by step

  1. Load the film once in headless Chromium (Playwright) at 1920 x 1080, scale 1. Read its duration and every scene's start time.
  2. Count frames: N = round(duration x fps), at the frame rate chosen in the brief.
  3. Set each frame's shutter. 180 degrees means open for half a frame at the chosen rate: 1/60 s (about 16.7 ms) at 30 fps, 1/48 s at 24 fps, 1/120 s at 60 fps, centred on the frame time. If the window would cross a scene cut, slide it inside the frame's own scene.
  4. Probe: render the first and last instant of every shutter (2 renders per frame). The frame is moving if more than 50 pixels differ by more than 2 levels.
  5. Plan samples: still frames get 1 render; moving frames get 12; moving frames inside a fast window (blur.json) get 24.
  6. Render sub-frames evenly across the shutter, at (k + 0.5) / n of the way through.
  7. Average in linear light: convert sRGB to linear, take the mean, convert back. Averaging in sRGB darkens edges.
  8. Encode: H.264 (libx264), CRF 14, preset slow, yuv420p, at the chosen frame rate.
  9. Add sound: copy the video stream, encode the mix to AAC 320 kbps, trim to the shorter stream, faststart.

Commands

Commands
text
# --fps is the rate chosen in the brief; the shutter is half a frame at that rate
python3 motion_export.py <filmDir> silent.mp4 --fps 30 --samples 12 --fast-samples 24 --workers 2 --keep <workDir>
ffmpeg -i silent.mp4 -i final-mix.wav -map 0:v -map 1:a -c:v copy -c:a aac -b:a 320k -shortest -movflags +faststart final.mp4

Estimate before you start

text
renders = 2N + (still frames x 1) + (moving frames x samples) + (fast frames x fast samples)
time = renders / 4 per second on 2 CPUs, plus 0.3 s per frame to blend

Say the estimate to the person before starting. After 10 minutes, measure the real rate and update the estimate.

Measured
Heavy scenes render far slower: a scene with dozens of faces ran at about 0.5 renders a second and used 1.9 GB of renderer memory.

Make it survive

GuidancePractices
Do
Restart the browser every 250 renders and retry a crashed batch up to 3 times. Long sessions crash the renderer ("Target crashed").
Do
Keep every rendered PNG (--keep) so a rerun of the same command resumes where it stopped.
Do
Run a top-up pass if a worker stops: the rerun renders only what's missing.
Do
Check free disk first: about 4.5 MB per sub-frame at 1080p.
Do
In Claude's cloud workspace, the export only progresses while Claude is working in a turn. Stay in the turn and check about every 10 minutes.
Don't
Run other renders at the same time, or kill Chromium processes while an export runs.
Don't
Measure every frame with optical flow to choose samples. It took 40 minutes for 5 seconds and mistook ticking numbers for movement.
Don't
Let a changing number blur. Step counters once per frame, or two digits overlap.

Samples

SituationSamples per frame
Normal movement
12 (tool default 16)
Fast windows
24 (tool default 64; raise to 48 if fast moves show copies)
Still
1

What blur buys

Blur shows only on fast moves: pull-backs, drag exits, the road speeding up, orbits. Text building, cards settling and holds look the same as the sharp export. List every fast move in blur.json and the export gets most of the benefit in a fraction of the time.

Check before handover

  • PassDuration equals the film to the frame; frame count equals N.
  • PassA strip of frames across every cut: each frame shows one scene only.
  • PassFrames through every fast move: a smooth streak, not separate copies.
  • PassCounters: digits step once per frame, never two digits overlapping.
  • PassAudio length equals video length; loudness measured and stated.