8000 GitHub - aimuu076166/moodreel: Moodboard in, reel out: distill a visual and motion style from references, then render new code-drawn films in it. · GitHub
[go: up one dir, main page]

Skip to content
aimuu076166Public
forked from gnipbao/moodreel

About

Moodboard in, reel out: distill a visual and motion style from references, then render new code-drawn films in it.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

Moodreel — Moodboard in, reel out. Twenty-four violet-to-amber film frames fan open around a moving crescent.

Turn a reference film’s timing and camera moves into code you can reuse for your own film.

Version 0.1.0, pre-alpha Python 3.11 or newer Node.js 22.18 or newer Core license MIT

English · 简体中文

Remake comparisons · Quickstart · Example source · Use with an agent · How it works · Contribute

In Skillry’s launch film, each icon lasts 5–6 frames and a prompt types at about 36 characters a second. With Moodreel, you and a coding agent can measure those decisions and write them into drawing code. When we made Tidepool, a launch film for a fictional tide forecast API, the prompt asked for tomorrow’s tides and kept the same 36-character cadence. See how the timing was measured · Read Tidepool’s typing timeline

Run measure locally on a reference, then keep the rules and JavaScript in a style pack. Once you have a draft, compare ranks the passages that differ most and diff tells you how many frames early or late a cut lands. Revise that shot and check it against the previous pass. Style packs · Shot-by-shot workflow

Remake comparisons

The reference plays on top and the remake below. Select a preview for the full comparison with sound. The timestamps below refer to those full films.

Artistic Butterflies. Silver wings turn amber in both halves of the frame. Skillry above, Knackly below. A wall of product cards gives way to type. Scarlet Sheath above, Ember Rift below. Curved trails of fire reveal a glowing eye.

  • Artistic Butterflies · Find the two seconds that run slow. Split seconds 6–12 into three windows. compare ranks 6–8 s as the largest mismatch. Mean motion across the frame is 0.60× the reference in that window. Pause at 7 s. The reference’s lower wings have scattered into a cloud while the remake still has two rounded lobes. Full film · 53 s · Run the measurement · Bee’s original
  • Skillry → Knackly · Reconstruct a camera move. Positions and widths of 14 cards at 3.7 s and 4.4 s gave the remake’s camera a path through a cylindrical wall of cards. The lower panel shows the fifth pass. The same pack’s montage and typing rules later carried over to Tidepool. Full film · 16 s · Camera measurements
  • Scarlet Sheath → Ember Rift · Check a cut to the frame. At frame 559 (9.317 s), both films cut from a white flash back to a red eye. diff reports a zero-frame offset for that cut. With the timing accounted for, you can concentrate on the shape of the fiery lines around the eye. Full film · 15 s · Run the cut check

26-second highlights · silent MP4 · Original posts and credits · How to compare your own footage

Quickstart

Render First Light, a 12-second risograph sunrise, then use the MP4 as input to the measurement tools. The example includes its artwork and runs locally without an API key.

Requirements — Python 3.11+, uv, Node.js 22.18+ with npm, and FFmpeg with both ffmpeg and ffprobe on your path. The first install downloads dependencies and Puppeteer's Chrome. Install uv · Get FFmpeg

git clone https://github.com/gnipbao/moodreel.git
cd moodreel
uv sync --locked
npm ci

1. Render the film. Two spot inks print a sunrise. Where they overlap, a third colour appears. Open out/first-light.mp4 to watch the result.

uv run moodreel render video examples/first-light --size 1280x720 --fps 24 --engine chrome --out out/first-light.mp4

2. Measure the same film. The report in out/print-study/MEASURE.md describes the colour roles, surface and motion it found. Compare it with the drawing code to see which choices the measurements recover. First Light source

uv run moodreel intake out/print-study out/first-light.mp4
uv run moodreel measure out/print-study

Showcase

Both films below include their treatment and JavaScript drawing source. Open a scene to change the timing or draw a new shot.

Swiss Programme · Swiss Motion Graphics First Save · 16-bit Pixel RPG
Swiss typography and bars snap into register on a measured grid. A pixel-art character walks across a landscape with scrolling mountain layers.
A grid, two rules and one red exception in a 15-second title sequence. Treatment · Drawing code A 320 × 180 pixel world with parallax ridges, a walking character and a save prompt. Treatment · Drawing code

Browse all example films · Preview sources and credits

Style library

Browse 59 imported style guides and three packs distilled with Moodreel. Each of the three packs below includes a style guide, a ledger tracing its values to evidence, a drawing kit and the source for its demo film. All styles · Install a pack

Ink Chronicle Signal Plates ASCII Glitch Launch
Rows of ink characters recede toward a vanishing point Orange contours wrap a cylinder on a dark field The word Tidepool dissolves into pixel lettering

Make a film

To start with a built-in style, create a film folder, write its treatment in films/launch/TREATMENT.md and draw the scenes in films/launch/main.js. The template points to the chosen style's rules. The examples show how to translate them into a finished film. Example films and source

uv run moodreel styles swiss
uv run moodreel film new launch --style swiss-motion

Once the scenes are ready, run uv run moodreel film deliver films/launch to render the MP4 and poster, then uv run moodreel film check films/launch to check the rendered video for black frames and the text for reading time.

With a coding agent, open this checkout and give the agent a brief like the one below. The director skill covers the treatment, drawing, review and delivery. Director skill

Read skills/moodreel/SKILL.md and use uv run moodreel. Make a 15-second title sequence for a night train in the Swiss Motion Graphics style. Show me a style frame before rendering the film.

How it works

  1. Measure the references. The CLI reads palette, surface, type and layout from images. A clip also gives it timing, easing and stagger. The results go into MEASURE.md.
  2. Build the style pack. The director describes the reusable rules in STYLE.md and records the evidence behind each value in LEDGER.md. A style frame and demo film put the drawing kit to the test. Distillation workflow
  3. Draw new scenes. A film's JavaScript function window.render(t) draws the frame at time t. The renderer can seek directly to a still or encode the frames to an MP4. Drawing guide · Renderer

Documentation

I want to… Start here
Distill my own references into a pack Distillation workflow
Add a score, footage or narration, or export to HyperFrames or Remotion Production and delivery
Compare a remake with a reference, shot by shot Shot analysis
Write a scene or a reusable drawing primitive JavaScript kit · Drawing guide

Measurement accuracy. On 12 code-rendered test films with known motion, the clean run found 95 of 99 target properties and reported 25 spurious detections. Calibration on real-world references and human evaluation are still open. Benchmark results · Evaluation and limits · Changelog

Contributing

Bug reports, documentation fixes and contributions are welcome. For a rendering issue, include the command, your OS and a small example others can run. Open an issue · Contributor setup and pull requests

License and credits

Moodreel's core uses the MIT license. The imported style guides retain LemoLab's MIT notice. The optional kit/3dcv/ port from 3DCodeVerse uses CC BY-NC-SA 4.0. Including it with --with 3dcv makes the resulting film non-commercial under the port's license. Credit the source and share adaptations of the port under the same terms. Core license · Style credits · 3DCodeVerse terms · Third-party notices · Acknowledgements

About

Moodboard in, reel out: distill a visual and motion style from references, then render new code-drawn films in it.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

117A
0