Skip to main content

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/ownmy-app/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

screen_recorder_analyzer-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

screen_recorder_analyzer-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file screen_recorder_analyzer-0.1.0.tar.gz.

File metadata

File hashes

Hashes for screen_recorder_analyzer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d6328d07164b74634cddb479f48a3dc61befe91f2b463b8f74db47134058311
MD5 b28eb079e8a14ac8271032ac78ccaf95
BLAKE2b-256 01d17e9356f9cb566533bf14a2ae36911ebd4d8d2043fb62987ca3ab5e8d5fc3

See more details on using hashes here.

File details

Details for the file screen_recorder_analyzer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for screen_recorder_analyzer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2adf937ba1362e8bf3816981f544bfb2697eafae46a1e0e4e45cae7a937d586f
MD5 ea0227676f7a757eba4312409df4c5fc
BLAKE2b-256 6bd3baae63de6f64b6e6eb3fd5586a19058b8a6b8dc8b1158317fd3061ed2c97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page