Skip to content
XL9610Public

About

Timelapse workbench for LightCraft: meter every frame, carry the grade between keyframes, deflicker, and export. Python, PySide6, CLI and MCP server.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

L A P S E

A timelapse workbench for LightCraft.
Grade a few keyframes. Lapse does the other thousand frames.

Python 3.12 PySide6 Sony ARW Status

The Lapse workbench: folders, per-frame log, monitor, seven program keys and the brightness scope

Design render of the workbench. The app is being built to match it.

What it does

Lapse works with LightCraft the way LRTimelapse works with Lightroom. You grade a handful of keyframes in LightCraft; Lapse meters every frame, carries the grade from keyframe to keyframe, smooths the exposure, removes the flicker that is left after rendering, and writes the video.

  • The folder is the project. Click a folder of ARW files and metering starts. Lapse keeps its data in a hidden .lapse sub-folder and never touches your photos or XMP files.
  • One fixed program, seven keys. Every step can be re-run at any time; when something upstream changes, the steps below are marked stale and say why.
  • Everything on one panel. A per-frame log, a monitor with three sources, and a scope with the brightness curves before and after each step.
  • Runs without a window too. The same seven steps are one command, or five tools on an MCP server.

The program

# Step What happens
1 Open folder Read EXIF, meter every frame, build browse images, find stray frames and gaps, suggest a clip range
2 Keyframes Suggested keyframes; add or remove your own
3 LightCraft edit The keyframes open in LightCraft; grade them there
4 Read back and transition Read the grades, interpolate frame by frame, add exposure smoothing
5 Visual preview Render the whole sequence small with LightCraft and measure the result
6 Visual deflicker Optional: correct brightness jumps that survive rendering
7 Render and export Render in the background and encode the video with ffmpeg
ARW folder ─▶ 1 meter ─▶ 2 keyframes ─▶ 3 grade in LightCraft ─▶ 4 transition ─▶ 5 preview ─▶ 6 deflicker ─▶ 7 MP4

Status

Work in progress. The command line and the MCP server run all seven steps today. The workbench window is being built screen by screen: the panel and the per-frame log are in; the scope, the monitor, the folder screen and the export dialog are next. Requirements are in spec/, the design in ui/.

Workbench

uv run lapse ui

Headless run

python -m lapse run runs the seven workflow steps without a UI and writes an MP4:

uv run python -m lapse run FOOTAGE --project PROJECT -o OUT.mp4

Optional: --range FIRST,LAST (default: the suggested range), --level 0-100 (default 100, 0 is off), --deflicker {auto,on,off} (default auto), --resolution {1080p,4k} (default 1080p), --fps {24,25,30} (default 30), --crf 14-28 (default 18), --engine {lightcraft,fallback} (default lightcraft; fallback is not implemented yet). It prints a start and an end line per step and a summary, and exits 0; a failed step prints 步骤 N 失败: <name>: <message> on stderr and exits 1. LightCraft is configured as in .env.local (spec 92 §1).

MCP server

uv run python -m lapse mcp starts a stdio MCP server (no network port) with five tools: status, run, cancel, scores and frame. run takes the options of lapse run (from_step and to_step for --from and --to, range as [FIRST, LAST]), starts the run in the background and returns at once; poll status for the progress and the outcome. One run at a time; closing the client cancels it.

Development

uv sync
uv run pytest
uv run ruff check

Tests that need the RAW footage, LightCraft or a display are skipped unless configured; copy .env.example to .env.local and see spec/92-footage.md.

About

Timelapse workbench for LightCraft: meter every frame, carry the grade between keyframes, deflicker, and export. Python, PySide6, CLI and MCP server.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages