What it is
This skill exists because of a trade-off its author describes in the README. Whiteboard explainers drawn entirely in code line up perfectly with the narration and render the same way every time, but the drawings look crude and flat. Image models can make richer illustrations, but they are unpredictable. The skill keeps code in charge of timing and uses generated art only as material: SVG paths that draw themselves as the line is spoken, and GIFs split into frames so their motion follows the film's clock instead of the browser's. It works in ten steps, from a storyboard you confirm with the user, through the narration script, assets, voice and page code, to checks and the final render. The output is an MP4 with and without subtitles plus an SRT file. Three rules hold everything together: the film is a pure function of time, generated SVGs are stripped of scripts, animations and external links before use, and asset changes must change a hash so the engine's cache notices. The finished sample is an 11-page, 121.9-second film on how a pencil is made, with mechanical motion, ratio bars, counters and camera push-ins. We read the README and did not render a film ourselves.
Who it's for
- Teachers and course makers producing short explainer films with a hand-drawn look
- Chinese-language creators, since the README, voices and sample are in Chinese
- Developers who need frame-exact, repeatable renders rather than a screen recording
Requirements
Requirements
- Python 3.9+ and Node 22.19 or newer
- Chrome or Edge, git and ffmpeg
- Pillow and edge-tts (pip)
- About 16 MB for the engine and 130 MB of npm packages, fetched by setup.py
- Optional: the apiz CLI and a paid API key to generate new SVG and GIF assets
Setup
Step 1
bashgit clone https://github.com/liangdabiao/whiteboard-teacher-video-motion.gitStep 2
bashcd whiteboard-teacher-video-motionStep 3
bashpython scripts/setup.pyStep 4
bashpip install Pillow edge-ttsStep 5
bashCopy examples/sample to a folder outside the skill before running ftnew.py on it
مهارة لصنع فيديوهات شرح بأسلوب السبورة: رسوم SVG مولدة بالذكاء الاصطناعي ترسم نفسها خطا بخط، وإطارات GIF تضيف حركة صغيرة متكررة، على خط زمني ثابت متزامن مع التعليق الصوتي. يعمل مثال جاهز بلا إنترنت ولا مفتاح API، وتوليد الرسوم الجديدة اختياري ومدفوع.
Examples
Create a project from the offline sample
bashpython scripts/ftnew.py D:/films/my-sample --title "矢量动效样板" --style whiteboardWhat it does: Links the engine into a project that lives outside the skill folder. Run it after copying examples/sample there.
Assets, voice, check, determinism, render
bashpython scripts/ftasset.py D:/films/my-sample --spec D:/films/my-sample/assets.json
python scripts/ftvoice.py D:/films/my-sample
python scripts/ftcheck.py D:/films/my-sample
cd D:/films/my-sample && node <skill>/scripts/ftdeterminism.mjs
cd <skill> && python scripts/ftrender.py D:/films/my-sample --fps 24What it does: ftasset reuses the sample's files in assets/raw/, so this run costs nothing. The film lands in the project's out/ folder.
Place a self-drawing SVG and a GIF loop on a page
javascriptP.vector('bulb-line', 190, 260, 540, 540, {
at: P.c(0), dur: 2.6, mode: 'draw', stagger: 0.55, fillDelay: 0.62,
});
P.clip('bulb-pulse', 1100, 260, 540, 540, {
at: P.c(2), fps: 5, loop: true, // 9 帧 × 200ms → 5fps
});What it does: P.vector draws the SVG in time with line 0 of the narration; P.clip plays the split GIF frames from line 2.
Pros & cons
Pros
- Pro:Fills a narrow gap: real texture and motion on top of code-drawn whiteboard scenes
- Pro:Rendering is deterministic; the 11-page sample matched pixel for pixel on every page
- Pro:Free path works end to end: bundled sample assets and edge-tts voice
- Pro:Paid generation is cheap and resumable: re-running reuses assets/raw/ and does not charge twice
- Pro:The README lists real pitfalls with fixes, such as long renders running out of memory with 12 browser workers
Cons
- Con:The Frametell engine is AGPL-3.0-only; the author warns not to copy it into this repo or closed-source projects
- Con:README, sample narration and default voices are Chinese
- Con:Paid asset generation is tied to one provider and model (apiz gpt-image-2.6-flare)
- Con:An apiz key can hit its own quota (HTTP 429) even when the account balance is positive
- Con:Many moving parts: Python, Node, a browser and ffmpeg must all be present