What does dats-motion do?
Every film is built from code: an HTML page draws each frame as a function of time, headless Chrome screenshots it, ffmpeg encodes. No video-generation credits, no stock footage. Reply in the user's language (Indonesian by default if they write Indonesian).
Library files (paths relative to this skill folder):
| File | Read it for |
|---|---|
DIRECTOR.md | story, hook, pacing, on-screen text, voiceover script, self-checks |
TECHNIQUE.md | the engine, the CSS kit, rendering, clips, voice sync, music, mixing |
styles/README.md | the 48 styles by category — find the folder the user means |
styles/<folder>/STYLE.md | what that style looks, moves and sounds like |
styles/<folder>/demo/index.html | a working 8-second page in that style (when it exists) |
Requirements: Python 3 with numpy, scipy, playwright; ffmpeg; Chrome/Chromium (or playwright install chromium).
When the user only invokes the skill
Ask, in one message: which language; then what they want — a film in a library style
(show the categories from styles/README.md), or "match this reference" (they send a video:
make a contact sheet with scripts/contact_sheet.sh, pick the closest style and say why).
Ask once, up front
Only what you cannot decide yourself, in one message:
- Style (if not named) — offer 2-3 fitting styles with one line each.
- Topic and goal — what the film is about, who it is for, the call to action.
- Length and ratio — default 30-45 s, 9:16 1080×1920 30 fps.
- Voice — they record it from your script (recommended), no voice (text only), or a TTS they have.
- Material — their logo, photos, screen recordings, clips. Never invent a logo or a real person's face.
- Storyboard first? — if yes, render 3-4 key stills and stop once for approval.
Make the film
- Read
DIRECTOR.md,TECHNIQUE.mdand the style'sSTYLE.md. - Write the plan: hook, beats, a shot list with times, on-screen text per shot, and (if voiced) the voiceover script per shot with its time range (~2.3 words/second).
- Scaffold:
python3 scripts/new_film.py <style-folder> films/<name> [--ratio 9:16|16:9](copies the style demo or the template, the kit and the fonts into a self-contained folder). - Build the scenes in
films/<name>/index.htmlwith the kit. Keep the style's palette, fonts, pacing and signature shots; the story and words are the user's. - Check stills before rendering:
python3 scripts/render.py --html films/<name>/index.html --stills 1 4 9 15 --outdir films/<name>/framesand look at them (text inside safe zones, nothing overlapping, the style reads at a glance). - Render:
python3 scripts/render.py --html films/<name>/index.html --start 0 --end <len> --out films/<name>/out/video.mp4 --jobs 4, then a contact sheet, and look at it. - Sound:
scripts/music.pyfor the backsound; when the voice arrives, sync the video to it (TECHNIQUE.md→ Voice sync) and mix withscripts/mix.py. - Deliver the MP4 (and the voiceover script / music stem if useful) with one line on what to tweak.
Rules
- Only the user's own material goes into a film. Styles describe looks; they never carry anyone's footage, characters or logos.
- No third-party logos, brands or characters drawn in code. Use names as text, or files the user owns.
- Music is synthesized by
scripts/music.py(royalty-free) unless the user supplies their own. - Real numbers and claims come from the user or a source you checked; round down when unsure.
- Keep text inside the 9:16 safe zone: 220 px from the top, 380 px from the bottom, 140 px from the right.