← Cool Sh*tMOTICULATION
Curious
0 XP

FIELD GUIDE / 09  ·  Make better things

The Motion Engine: build your own AI-directed video studio.

Turn Codex or another coding agent into a code-driven motion studio: set up the tools, direct the scenes, mix real audio, and render a film you can actually review.

Download the complete 28-page guide
The Motion Engine, a creative production playbook by Mohreza, cover.
YOUR RUN / SAVED IN THIS BROWSER0 of 6 chapters found · 0 checkpoints cleared
0%

A useful read should leave you with something you can try, not just something you can repeat.

01 / The idea

Direct an editor made from code.

You are the creative director. The agent operates the tools, writes the scenes and renders the edit; you decide what the work means and whether it is good enough.

This is a production workflow, not a one-click promise or a conventional timeline editor. Codex, Claude Code or another agent with access to files and a shell can work in a real project. Remotion composes video with React; FFmpeg inspects and processes media; Blender is optional when a scene needs true 3D.

Keep the working loop visible: brief → inspect the assets → design scenes → render → watch and listen → give specific corrections → render again. A successful command is evidence that a process ran, not that a film is finished.

  • Director: audience, story, references and decisions.
  • Agent: project inspection, implementation and execution.
  • Motion engine: timed typography, imagery, sound and exports.
  • Review: inspect the actual video and revise weak decisions.

02 / Setup

Build the smallest working toolchain.

Start with a coding agent, Node.js, Remotion and FFmpeg. Add Blender only when the work needs physical geometry, light and a camera.

On macOS, first verify your existing tools: run brew --version, node --version, npm --version, ffmpeg -version, ffprobe -version and git --version. If Homebrew is already installed and the tools are missing, brew install node ffmpeg git is one setup route. Other platforms should use the official installers or a trusted package manager.

For a new project, run npx create-video@latest and follow the current scaffold prompts; then enter the generated directory. In an existing project, inspect package.json, scripts and the agent’s project instructions first instead of replacing what already works. Run npx remotion skills add inside the Remotion project, then npm run dev if the generated project provides that script.

Codex is one option: the official repository documents installation and authentication; a shell-capable alternative can follow the same workflow. Inspect third-party skills, scripts, licenses and permissions before installing them. Tool commands and licenses can change, so check the linked official documentation.

  • Verify: node, npm, ffmpeg, ffprobe and your coding agent.
  • Create or inspect the project before installing anything else.
  • Optional: Blender for actual 3D; GSAP, SVG or Three.js where the scene benefits.

03 / Project structure

Give every film a durable home.

A clean workspace lets a new agent session recover the project without guessing which music, cut or render was approved.

Keep the generated Remotion entry points intact. Add public/voiceover.wav, public/music.wav and folders for images and references. Store a project brief, transcript, storyboard, audio plan and review notes beside the source compositions. Keep originals untouched and name exports with versions such as launch-reel-v1.mp4 and launch-reel-v2.mp4.

Use AGENTS.md for a compact creative constitution if you work with Codex: what the project is for, what generic failures to avoid, how to use supplied audio, how to preview and what must be verified before calling a film complete. Adapt the location and format for other agents. Put scene-specific requirements in the current brief rather than bloating the global instructions.

  • brief.md: audience, message, format, assets and constraints.
  • storyboard.md: what appears while each phrase is spoken.
  • audio-plan.json: dialogue, music and effects placements.
  • review.md: the exact frames, time ranges and defects to repair.

04 / Creative direction

Translate references into a visual grammar.

A strong reference describes how an idea moves, not just what colors or recognizable assets to copy.

For each reference, identify hierarchy, camera, timing, transitions, material and what must not be copied. Extract a few transferable techniques—such as a dramatic change of scale, a mask that becomes the next scene, or a camera moving through layered type—and use them for an original story with assets you have the right to use.

Start with the hook and a storyboard tied to the real narration. Give each scene a job: introduce the claim, demonstrate it, provide evidence or close with a clear action. Use kinetic type, editorial collage, 2.5D or true 3D when each helps the idea. Hide the labels for a moment: if the visual cannot suggest its meaning, it may be decoration rather than storytelling.

For repeatable renders, derive animation from frame time and seed procedural randomness. Review in-between frames for flickering edges, broken masks and abrupt motion; still images alone cannot tell you whether a transition works.

05 / Audio and timing

Edit the words before you animate them.

A beautiful transition cannot repair a broken sentence or make missing music audible.

Transcribe the real voiceover and listen around suspected false starts or repetitions. Create an edit map, make joins at natural phonetic boundaries and preserve intentional pauses, breaths and the speaker’s meaning. FFmpeg’s silencedetect can identify quiet spans, but quiet is not automatically a mistake.

Keep dialogue, the supplied music and sound effects as separate stems. Use ffprobe to check duration, sample rate and channels. Duck music when speech needs space without making the track disappear, and let it recover during visual holds. Match important movement to meaningful words or musical phrases; listen to the final mix rather than trusting a loudness number alone.

  • Inspect a voiceover: ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1 public/voiceover.wav
  • Find silence candidates: ffmpeg -i public/voiceover.wav -af silencedetect=noise=-35dB:d=0.35 -f null - 2> silence-report.txt
  • Recheck speech, music, effects and the ending in the exported file.

06 / Production

Render the proof. Then finish the film.

Move from inexpensive evidence to a complete, playable export. A rejected scene is only progress once its replacement has been rendered and checked.

Use a render ladder: inspect a key frame, render a short motion proof, build a low-resolution complete cut, then inspect critical sections at final quality. Once the project has a registered composition, use npx remotion compositions to list IDs and npx remotion render MotionDemo out/motion-demo.mp4 to render the example ID. Replace MotionDemo with the ID in your project.

A useful correction names a time range, defect and finish condition: ‘At 11–14 seconds, the headline has no depth and the music disappears. Rebuild the transition, rebalance the music and render 10–15 seconds for review.’ Keep a complete working edit as you iterate.

Before delivery, open the actual MP4 and verify the expected dimensions, frame rate and audio streams. Watch the complete film for broken masks, clipped titles, black frames and readable phone-safe text; listen for natural speech and audible music. Confirm rights for images, fonts and sound, and keep editable source and the last known-good export.

  • Key frame → 3–6 second proof → low-resolution full cut → final export.
  • Check actual movement and sound, not just source code or logs.
  • Review the hook, narrative, motion, audio, color and final action.
STARTER PROMPT / COPY + ADAPTMAKE IT YOURS

Give your agent a production brief

You are helping me build a code-driven motion film. First inspect the existing project, instructions, scripts, skills and supplied voiceover, music and reference files. Preserve originals and reuse working infrastructure. Transcribe and edit the narration without changing its meaning; propose a hook and storyboard linked to the actual audio. Build original, concept-driven scenes with deterministic frame-based motion. Use the supplied music and keep dialogue, music and effects separate. Render key frames, a 3–6 second motion proof and a low-resolution full cut; inspect and revise the actual video and mix. Deliver a playable vertical MP4, editable sources and a concise list of checks actually performed. Audience: [who]. Message: [what should change]. Duration: [target]. Visual direction: [reference principles]. CTA: [action].

FINAL TEST / +25 XP

The render command succeeds. What should you do before calling the film finished?

KEEP EXPLORING / SOURCE NOTES

Adapted from The Motion Engine, created and directed by Mohreza. Third-party tools and skills belong to their respective creators; no affiliation is implied.

A BETTER INTERNET STARTS WITH USEFUL THINGS

Good work should
go somewhere.

Keep the field guide close. If you want to turn a clear idea into a digital experience, take a look at what Moticulation makes.

Back to the archive Talk about a project