Skip to content

motlab 1.0.0

Latest

Choose a tag to compare

@staryone staryone released this 29 Nov 10:10
· 7 commits to main since this release
c4a8e1b

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 setup

To update from 0.4.x:

npm install -g @motlab/cli@latest
motlab setup --update

Then 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 --update replaces the skill folders whole. The motlab skill has no look of its own any more: craft.md and style-rules.md are 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 on 127.0.0.1 and localhost.
  • The npm package exports only its command and package.json. Its modules in src/ are internal.
  • --gpu prints 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> off turns 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.py follows points, flat surfaces and the camera through a clip, blender/solve.py solves a moving camera for three.js, motlab matte finds an object in every frame with SAM 2.1 so animation passes behind it, and /__motlab/comp.js lays animation onto the footage with warps, matched light and grain.
  • For scene pages: /__motlab/camera.js with keys, shake and parallax, motlab depth and depth_layers.py to cut a photo into layers, and /__motlab/sprite.js for sprite sheets, Aseprite exports and sprite stacks.
  • Overlays drawn over the whole video from one time to another ("overlays" in project.json), and motlab stills of a whole project.
  • Video with alpha: --codec prores4444 writes a .mov with PCM audio, for laying over footage in an editor.
  • beats.py finds a music track's beats and bars, the viewer shows them on its timeline, and window.SCENE_START tells 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=default keeps 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 .json file 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.py crashed on a bed that started before 0 s or past the end of the mix.
  • synth_sfx.py --help wrote its sounds into a folder called --help, and --help on palette.py, mesh_export.py and sheet.py ended in a Python error.
  • The npm package carried two .pyc files.

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.