Metadata-Version: 2.4
Name: watchby
Version: 0.0.1
Summary: What a screen recording showed, next to what was said: stable screens, their text and a transcript that points at them
Keywords: screen-recording,ocr,transcription,offline,video
Author: devEstivenValencia
Author-email: devEstivenValencia <dev@estivenvalencia.co>
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Video
Classifier: Typing :: Typed
Requires-Dist: numpy>=2.0
Requires-Dist: onnxruntime>=1.20,<2
Requires-Dist: pillow>=11
Requires-Dist: platformdirs>=4
Requires-Dist: pydantic>=2.7,<3
Requires-Dist: rapidocr>=3.10,<3.11
Requires-Dist: tomlkit>=0.12,<1
Requires-Dist: typer>=0.27,<1
Requires-Dist: anthropic>=1,<2 ; extra == 'anthropic'
Requires-Dist: pytesseract>=0.3.13 ; extra == 'tesseract'
Requires-Python: >=3.12
Project-URL: Homepage, https://github.com/khvostpola/watchby
Project-URL: Changelog, https://github.com/khvostpola/watchby/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/khvostpola/watchby/issues
Provides-Extra: anthropic
Provides-Extra: tesseract
Description-Content-Type: text/markdown

# watchby

What a screen recording showed, next to what was said: stable screens, their text, and a
transcript that points at them. Runs on your machine.

> **Status: pre-alpha.** Version 0.0.1 ships the command line shell: `watchby doctor`,
> `watchby init` and the options of `watchby process`. The screen pipeline arrives in 0.1.0, so
> `watchby process` stops with an error for now.

## What you get

From 0.1.0, one folder per video:

- `frames/`: one capture for every screen that stayed up long enough to read, and a gallery
  (`frames/index.html`) to review them.
- `frames.json` and `frames.ocr.json`: when each screen was shown, the text and web addresses on
  it, and the transcript segments spoken while it was visible.
- `transcript.frames.md`: the transcript with each capture placed where it was on screen. An AI
  agent can read this file first and open only the images it needs.
- With `--describe` or `--summarize`, a model's description of each screen and a summary of what
  was said next to it. Off by default; a remote model needs `--allow-remote-llm`.

The voice comes from [saidby](https://github.com/khvostpola/saidby), which watchby runs for you:
speakers, timestamps and your own terms are saidby's work.

## Why watchby

A screen recording carries two contexts: what the person says and what they show. A transcript
holds the first. Getting the second means scrubbing frame by frame, taking screenshots and
describing them by hand before you can hand both to a person or a model. watchby does that step.

## Install

You need Python 3.12 or newer and ffmpeg on your PATH.

```bash
uv tool install watchby
watchby doctor
```

`watchby doctor` says what is missing and how to fix it. Install saidby too if you want
transcripts: `uv tool install saidby`.

## Quick start

```bash
watchby init
watchby process screen.mp4 --language es
```

The second command works from 0.1.0.

## Commands

| Command | What it does |
|---|---|
| `watchby process` | Turn screen recordings into stable screens, their text, and a transcript that points at them (from 0.1.0) |
| `watchby init` | Create `watchby.toml` so the next run needs no flags |
| `watchby doctor` | Check that this machine can run watchby and say how to fix what is missing |

Every command has its own help. The [command reference](https://github.com/khvostpola/watchby/blob/main/docs/cli-reference.md) lists every option.

## How well does it work?

Nothing is measured yet. A pilot on real recordings, with its success criteria fixed before the
first measurement, comes before 0.1.0, and its results will be published here, whether watchby
passes or not.

## Status

Pre-alpha. The options of `watchby process` are settled; the pipeline behind them is not built.

## Documentation

- [Command reference](https://github.com/khvostpola/watchby/blob/main/docs/cli-reference.md)
- [Development](https://github.com/khvostpola/watchby/blob/main/docs/development.md)
- [Changelog](https://github.com/khvostpola/watchby/blob/main/CHANGELOG.md)

## Contributing and license

See [CONTRIBUTING.md](https://github.com/khvostpola/watchby/blob/main/CONTRIBUTING.md).
Contributions are signed off (DCO) and licensed under Apache-2.0, like the project.
