Analyze screen recordings: Whisper transcription + Tesseract OCR + GPT action extraction. CLI and REST API.
Project description
screen-recorder-analyzer
Analyze any screen recording: Whisper audio transcription + Tesseract OCR on keyframes + GPT action extraction. CLI and REST API.
Extracts a chronological list of what the user was doing:
[
{"id": "1", "tools": ["excel"], "action": ["viewing spreadsheet data"]},
{"id": "2", "tools": ["hubspot"], "action": ["navigating CRM", "viewing contacts"]},
{"id": "3", "tools": ["gmail"], "action": ["composing email", "sending email"]}
]
Quick start
# System requirements
brew install ffmpeg tesseract # macOS
sudo apt install ffmpeg tesseract-ocr # Ubuntu
# Install (base — just needs OPENAI_API_KEY)
pip install screen-recorder-analyzer
# Install with all OCR/audio engines
pip install screen-recorder-analyzer[full]
# Set API key
export OPENAI_API_KEY=sk-proj-...
# Analyze a recording
screen-analyze demo.mp4
# JSON output (suitable for piping)
screen-analyze demo.mp4 --format json
# Run tests (no GPU/OCR/Whisper required)
git clone https://github.com/nometria/screen-recorder-analyzer
cd screen-recorder-analyzer
pip install -e ".[dev]"
pytest tests/ -v
Install
pip install screen-recorder-analyzer[full]
System requirements: ffmpeg, tesseract-ocr on PATH.
# macOS
brew install ffmpeg tesseract
# Ubuntu/Debian
sudo apt install ffmpeg tesseract-ocr
CLI
# Analyze a recording (text output)
screen-analyze demo.mp4
# JSON output
screen-analyze demo.mp4 --format json
# Use a larger Whisper model for better accuracy
screen-analyze demo.mp4 --whisper small
# Skip GPT step (transcription + OCR only)
screen-analyze demo.mp4 --no-actions
# Analyze more frames
screen-analyze demo.mp4 --max-frames 200 --frame-skip 14
REST API
# Start server
pip install screen-recorder-analyzer[full,api]
uvicorn screen_recorder_analyzer.api:app --host 0.0.0.0 --port 8000
curl -X POST http://localhost:8000/process-video/ \
-H "Content-Type: application/json" \
-d '{"video_path": "/path/to/recording.mp4"}'
Python library
from screen_recorder_analyzer import VideoProcessor, extract_actions
processor = VideoProcessor(whisper_model_size="small", frame_skip=14)
results = processor.process("demo.mp4")
actions = extract_actions(results)
for action in actions:
print(f"[{action['id']}] {action['tools']}: {action['action']}")
Configuration (env vars)
| Variable | Default | Description |
|---|---|---|
OPENAI_API_KEY |
required | OpenAI API key |
WHISPER_MODEL |
base |
Whisper model size |
FRAME_SKIP |
29 |
Analyze every N+1 frames |
MAX_FRAMES |
100 |
Max frames to OCR |
OCR_LANG |
eng |
Tesseract language |
OPENAI_MODEL |
gpt-4o |
Model for action extraction |
Use cases
- Productivity analysis — understand how employees use tools
- UX research — extract task flows from usability test recordings
- Process mining — map manual workflows before automating them
- Support — auto-summarize customer screen shares
Commercial viability
- CLI: open source
- API: self-hostable, or offer as a cloud service (pay per minute of video processed)
- Paid: team dashboards, tool usage analytics, process bottleneck detection
Example output
Running pytest tests/ -v:
============================= test session starts ==============================
platform darwin -- Python 3.13.9, pytest-9.0.2, pluggy-1.5.0
cachedir: .pytest_cache
rootdir: /tmp/ownmy-releases/screen-recorder-analyzer
configfile: pyproject.toml
plugins: anyio-4.12.1, cov-7.1.0
collecting ... collected 6 items
tests/test_processor.py::test_processor_imports_cleanly PASSED [ 16%]
tests/test_processor.py::test_video_processor_init PASSED [ 33%]
tests/test_processor.py::test_video_processor_missing_file PASSED [ 50%]
tests/test_processor.py::test_extract_actions_raises_without_api_key PASSED [ 66%]
tests/test_processor.py::test_action_prompt_structure PASSED [ 83%]
tests/test_processor.py::test_api_app_creates SKIPPED (fastapi not i...) [100%]
========================= 5 passed, 1 skipped in 0.65s =========================
See examples/sample-output.json for what a full analysis of a user session looks like.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file screen_recorder_analyzer-0.1.2.tar.gz.
File metadata
- Download URL: screen_recorder_analyzer-0.1.2.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee017057dad16a55bde3826c2dc60e4e71cf57f89b4a51759d5ff93a11f5d53a
|
|
| MD5 |
675f59fde65c04f09dba7f101ecd665d
|
|
| BLAKE2b-256 |
76730dc05a5ab42ffaeefeca834884b8e78aad600459370966b3281940fb82df
|
File details
Details for the file screen_recorder_analyzer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: screen_recorder_analyzer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef10f2a9cf2bacb8480ceb1070228f7eb3b3015b1826eafd0276aaf905628625
|
|
| MD5 |
ce7f38f31c5cc3ebfecac81ffca842fb
|
|
| BLAKE2b-256 |
0a622e4ce480ac57c07a7e73f141770f97eb36aaf0a4fc00a5a711c3933ff9ab
|