Repository navigation
motlab 1.0: a written promise of what every 1.x release keeps working, animation on real footage, a camera, depth layers and sprites for scene pages, overlays, video with alpha, scenes timed to music, a history of each project, dark mode, and a third skill for ready-made styles.
Install
npm install -g @motlab/cli
npx @motlab/cli setupTo update from 0.4.x:
npm install -g @motlab/cli@latest
motlab setup --updateThen run motlab restart if the viewer is running, and start a new agent session so it loads the new skills.
Upgrading from 0.4
motlab setup --updatereplaces the skill folders whole. The motlab skill has no look of its own any more:craft.mdandstyle-rules.mdare gone, and the look they set is the Ad morph style in the new motlab-styles skill. Projects made before keep rendering.- motlab is under MIT OR Apache-2.0, your choice, instead of MIT alone.
- The renderer and the viewer set
window.SCENE_START. A page that used that name for itself gets motlab's value. - Without
--domain, the viewer answers only on127.0.0.1andlocalhost. - The npm package exports only its command and
package.json. Its modules insrc/are internal. --gpuprints a deprecation warning. Leave it out: the GPU is used by default.- A project's first history checkpoint stores a copy of its files, footage included.
motlab history <project> offturns the history off for a folder.
Stability
docs/stability.md lists what every 1.x release keeps working: the page contract, project.json, the commands and their options, selection.json, and footage.js, cuts.js, motion.js and transitions.js. motlab depth, motlab matte, camera.js, sprite.js, comp.js and <clip>.track.json are experimental and may still change in a 1.x release.
Added
- Animation on real footage.
track.pyfollows points, flat surfaces and the camera through a clip,blender/solve.pysolves a moving camera for three.js,motlab mattefinds an object in every frame with SAM 2.1 so animation passes behind it, and/__motlab/comp.jslays animation onto the footage with warps, matched light and grain. - For scene pages:
/__motlab/camera.jswith keys, shake and parallax,motlab depthanddepth_layers.pyto cut a photo into layers, and/__motlab/sprite.jsfor sprite sheets, Aseprite exports and sprite stacks. - Overlays drawn over the whole video from one time to another (
"overlays"inproject.json), andmotlab stillsof a whole project. - Video with alpha:
--codec prores4444writes a.movwith PCM audio, for laying over footage in an editor. beats.pyfinds a music track's beats and bars, the viewer shows them on its timeline, andwindow.SCENE_STARTtells a page where it starts in the video.- A history of each project: a checkpoint before and after each round of the agent's work, compared and restored in the viewer or with
motlab history. - The viewer in dark mode, following the system.
- motlab-styles, a third skill with ready-made styles used when you ask for one: Ad morph, Kinetic reel and Pixel art.
motlab new <folder>starts a project from a copy of the sample project.MOTLAB_GPU=defaultkeeps headless Chrome on the default GPU of a dual-GPU laptop.
Changed
- A project render shares one local server and reuses Chrome processes across its scenes and transitions.
- The viewer lists a project's versions only for the routes that need them, so footage and asset requests no longer parse every
.jsonfile in the folder. - The skills give the user the commands that install or update the engine instead of running them.
- CI runs every test on Ubuntu, Windows and macOS.
Fixed
- One request with an address the viewer could not read ended the viewer's process, also before the login of a viewer on a domain. It now answers 400.
- Without
--domain, the viewer answered requests sent to any host name, so a DNS-rebound site could read a project's files. It now answers only to this machine's names. - A project render with parts at once could hang when one part failed.
mix.pycrashed on a bed that started before 0 s or past the end of the mix.synth_sfx.py --helpwrote its sounds into a folder called--help, and--helponpalette.py,mesh_export.pyandsheet.pyended in a Python error.- The npm package carried two
.pycfiles.
Thanks
To @wafik for the Chrome pool across project parts, the faster version lookup in the viewer, alpha output, MOTLAB_GPU=default, the mix.py fix and the Kinetic reel style, and to @lunar-me for the benchmark docs.
Tested
On Windows 11 with an RTX 3060 Laptop: the whole test suite, the viewer in Chrome, and the example rendered from the packed npm package. CI runs the same suite on Ubuntu, Windows and macOS.
The full list is in CHANGELOG.md.