ContentCase study 06 / 20
Motion Graphics
Branded motion-graphics reels from a script: animated type in the brand's colours, timed to the audio, rendered automatically and dropped into the posting queue.
Role
Sole designer and engineer
Status
● Running in production
Models
Opus writes a bounded scene spec · code renders it
Stack
Next.js + React · Claude Agent SDK · Skia canvas · ffmpeg · Brand tokens
The short version
- Opus writes a bounded JSON scene description. A deterministic renderer turns it into frames. The model never writes animation code.
- More than 15 pluggable styles, and new ones can be learned from a reference reel.
- Renders on a Skia canvas engine inside the worker: no headless browser, no Remotion, no After Effects.
01Why I built it
Plenty of good content works without anyone on camera: lists, explainers, Arabic word reveals, chat-style stories. But building each one in After Effects meant keyframing by hand, every time.
I wanted to write the words and have the reel exist, on-brand, without opening an animation tool.
02How it works
- WriteA script, plus the brand and a chosen style.
- PlanOpus returns a “MotionReel”: scenes, text, timing and style choices, as bounded JSON.
- BoundThe spec has a fixed shape with limits, so the renderer can always draw what the model asked for.
- RenderA Skia canvas engine draws every frame, with synthesised sound effects on animation beats.
- Muxffmpeg combines frames and audio into the final reel.
- QueueThe reel lands in Content Factory, ready to post.
03Model choices, and why
Turning a script into scenes, layout and timing
Opus
This is one structured decision that has to get layout, pacing and brand right at once. It runs once per reel, so the strongest model is worth it.
Drawing the frames
No model: a Skia canvas renderer
Rendering has to be exact and repeatable. Code does that; models don't.
Learning a new style
The model, from a reference reel
Converts “this look” into a reusable style the renderer understands.
04Context: what the model sees
- Brand tokens. Colours and type come from the brand, not from the model's taste.
- A schema. The model writes into a fixed shape with limits, which is what makes its output safe to render without a human checking every field.
- The style's rules. Each of the 15+ styles (silhouette, split-mirror, listicle, chalkboard, typewriter, chat, Arabic reveal and others) defines what the model is allowed to vary.
05Token and cost discipline
- The model writes a compact scene spec, not frames and not code. All the heavy work is done by the renderer.
- One planning call per reel. Opus is only used where its quality changes the result.
06Performance
- Rendering on a canvas engine instead of a headless browser removes a whole browser from the pipeline.
- Runs inside the same worker as the Video Studio, so there's no extra service to run.
07Trade-offs I made
Chose
Bounded JSON from the model
Over
Letting the model write animation code
Chose
Skia canvas
Over
Remotion or a headless browser
Chose
A library of styles
Over
Fully freeform design
08Guardrails
- The model can only describe scenes inside the schema; it can’t run code.
- Reels go to the queue, not straight to a platform, unless I've set the brand to autopilot.
09What I'd do next
- More styles learned from reference reels, so each brand gets a signature look.
10What this shows
Applied AI engineering
Constraining a model to a schema and letting code do what code does best.
Product
Took a skilled, manual job and made it a one-step output.
Solutions
A rendering pipeline that slots into an existing publishing system.
Across the fleet: every build runs on one self-hosted Linux server, binds to localhost and is reached only over a private Tailscale network. AI inference runs on a Claude subscription through one in-house router (part of Sentry) rather than per-token API keys, with open-weight models on Ollama as the local layer: on the server, and on a 64 GB MacBook Pro shared over Tailscale for heavier local work. Everything is backed up to GitHub and a separate cold disk, and nothing reaches another person without a human tap.
Hiring for applied AI, product or solutions work? I'd like to hear about it.