Files
GrowthLapse/README.md
T

2.8 KiB
Raw Blame History

GrowthLapse

English | Deutsch

A native macOS app (SwiftUI) that turns a series of videos into a growth time-lapse, e.g. of a child over many weeks. From every video it picks a segment, optionally stabilises it and aligns it on the face, speeds it up and joins all clips with transitions. Everything runs locally with Apple Vision/AVFoundation and an external FFmpeg.

Features

  • Sorting by age in the file name (e.g. 12 weeks old V1.mov) and variant selection
  • Segment length, target length per clip, cross-fade and frame rate configurable
  • Optional stabilisation (VidStab or deshake) and face alignment with Apple Vision
  • Analysis with hints and alternative segment starts, low-resolution draft render
  • Per-clip editing and re-render of changed clips only (render cache)
  • Output 1920×1080, 1080×1920 or the size of the first video; H.264 on CPU or VideoToolbox

Requirements

  • macOS 13 or later, Swift 5.9 or later (Xcode or Command Line Tools)
  • ffmpeg and ffprobe (not bundled), e.g. brew install ffmpeg or, for all filters, brew install ffmpeg-full. VidStab needs vidstabdetect/vidstabtransform, clip numbers need drawtext (ffmpeg -hide_banner -filters shows what your build has).

Installation

git clone <repository-url> GrowthLapse
cd GrowthLapse
swift run GrowthLapse              # start directly
bash scripts/build-app.sh          # or build build/GrowthLapse.app
open build/GrowthLapse.app

The script builds a release for the current Mac architecture and signs it ad hoc (not notarised). The app in dist/ is a historical build artefact.

Configuration

Tool paths are searched in /opt/homebrew/bin, /usr/local/bin, /usr/bin and the PATH; custom executables can be selected in the app. Global settings are stored in ~/Library/Application Support/GrowthLapse/settings.json.

Usage

  1. Choose input folder (mp4, mov, m4v, avi, mkv, webm, no sub-folders) and output MP4.
  2. Set sorting, segment length, target length, transition and output format.
  3. Optional: Analyse clips and Create draft to check segments and transitions.
  4. Render project; progress and log are shown in the app, STOP cancels.
  5. View result, adjust segments or variants and Re-render changes.

Next to the output the app writes a project file (*.growthlapse-project.json), a render cache and a report. Projects contain absolute paths and are not portable between Macs without adjustment.

Development

swift test                          # XCTest (needs full Xcode)
bash scripts/integration-tests.sh   # needs ffmpeg/ffprobe, uses synthetic videos

Detailed description, known limits and design notes (in German): docs/DETAILS.md.

License

MIT, see LICENSE.