All tools →

Tools · SciSpinner Max

Time-lapse to video

Turn the frames in a run's timelapse/ folder into an MP4 with an elapsed-time overlay. Drop in the folder, or the whole session folder so the run's interval and start time are read from experiment.json. The video is encoded in your browser; nothing is uploaded.

Frames

Drop the timelapse/ folder or the session folder here JPEG or PNG frames named <session>_00001.jpg, plus experiment.json if you have it.

Preview

No frames loaded
—

The preview plays at the chosen frame rate from the files directly, so it may stutter on large frames; the encoded video will not.

How it works

The instrument saves one still per interval into sessions/<name>/timelapse/, numbered in capture order, and records the interval and start time in experiment.json. This page reads those files, draws each frame at the output size with the overlay, and encodes the sequence with the browser's own H.264 encoder (WebCodecs), muxing into an MP4 that plays anywhere. On a browser without WebCodecs it falls back to recording the preview canvas, which gives a WebM file instead.

The elapsed time is the frame number times the interval, measured from the run start. The instrument keeps its capture schedule anchored to the start time rather than to the previous capture, so this stays accurate over a long run; a capture that failed (noted in events.csv) is skipped in the numbering, so after one the overlay runs early by one interval.

Frames are decoded one at a time, so a run of several thousand full-resolution stills is fine; the file size depends on the output size, frame rate and quality. A 24-hour run at 5-minute intervals is 289 frames, about 12 seconds of video at 24 fps.

Uses mp4-muxer (MIT). Nothing leaves your browser.