02/46proof of conceptBilingual Campaign Motion
Motion Engine
Renders approved campaign designs as English and Arabic films for four channel formats.
See the workflow
An authored production walkthrough
Inside the engine
Motion Engine
Authored workflow illustration
Approved scenes and photographs become a designer-owned GSAP timeline. Reading length determines scene time; the end card has its own hold. The renderer seeks timeline positions and sends captured frames to the encoder. Four formats and both languages are exported with hold-frame and encoded-file checks.
An illustrated example of the documented process. No engine is running in this page.
What it solves
Campaign motion has to preserve a design while changing aspect, language and reading time. This engine renders a supplied template against structured campaign data and checks the picture at the moments people need to read it.
How it runs
Six steps, input to output
Goes inAn approved motion template, campaign scenes, English and Arabic copy, photographs and focal points
- 01
Set the template
The designer supplies layout rules and a paused GSAP timeline with named holds.
- 02
Load the campaign
Structured scenes supply copy, photographs, end cards and focal points for each language and cut.
- 03
Allocate time
The kit distributes scene time by reading length, fits text and applies Arabic layout rules.
- 04
Render frames
Playwright seeks the timeline in small steps and sends captured frames to FFmpeg.
- 05
Check the films
Hold-frame checks cover readability and layout; file checks cover duration, frame count and brightness jumps.
- 06
Deliver variants
Write channel MP4s, hold images, a review gallery, contact sheets and the measurement report.
Comes outSilent MP4s by format, cut and language, plus hold frames, contact sheets, a gallery and checks
What it does
A local motion production engine that pairs an approved designer-owned template with campaign scenes, copy and photographs.
GSAP timelines are sampled frame by frame through Playwright and encoded with FFmpeg, producing four formats, two cut lengths and two languages.
Timing follows the amount of copy, and focal points can change by format.
Hold frames are checked for reading time, contrast, typography, logo clearance and safe zones; the encoded films are checked for duration, frame count and brightness jumps.
Delivery includes silent MP4s, contact sheets, a gallery and a measurement report.
Three decisions
What shaped the build
The approved design owns the motion
A template defines composition and animation. Campaign data fills its slots rather than asking a model to redesign every variant.
Capture the timeline, one frame at a time
Rendering samples timeline positions rather than recording real-time playback, avoiding dropped capture frames.
Check the frame people read
Measurements are taken at the declared holds, alongside final file checks. These checks support review; they do not establish that every creative decision is correct.
Built with
5 parts
- GSAP · SplitText
- Designer-owned timelines, masked text reveals and counters
- Playwright · Chromium
- Deterministic timeline sampling and frame capture
- FFmpeg · FFprobe
- H.264 encoding and duration, frame-count and brightness checks
- Node.js · PNGJS
- Job orchestration and pixel-level hold-frame measurements
- HTML · CSS
- Responsive templates, Arabic RTL and focal-point photo crops