๐Ÿญ

CritterCut

Interactive crop & trim for multi-subject behavioural video. Draw a box per subject, slice into time bins, download the clips.

The problem

Behavioural recordings capture several animals in one wide shot over long sessions. Before analysis you need a tight crop around each subject and the session sliced into fixed time bins. Tailor Mouse does both, from the browser.

โœ‚๏ธ

Crop

Grab a reference frame, draw a box per subject ID with your mouse, export one clip per subject.

โฑ๏ธ

Trim

Split each video into consecutive bins from a start time and bin length. The final bin clamps to the real end.

๐Ÿ”—

Crop & Trim

Both at once โ€” each subject's region, cut into bins, in a single ffmpeg pass per output.

๐Ÿ“ฆ

Download

Every processed clip bundled into one zip. No server paths, nothing left behind.

Run it locally

ffmpeg on your PATH, then three commands.

  1. Install ffmpeg and confirm ffmpeg -version works.
  2. Create a virtual environment and install requirements.
  3. Launch the app and open it in your browser.
python -m venv .venv
.venv\Scripts\activate          # Windows
pip install -r requirements.txt
streamlit run app.py
๐Ÿ”’ This page is the project's front door. The app itself runs locally (it needs Python + ffmpeg), so it isn't hosted here โ€” clone the repo and run the commands above.