Skip to content

About

Automated, privacy-first Windows screen & call recorder with rolling buffer, hardware HEVC compression, and offline Whisper transcription.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🎬 Screen Sentry — Screen & Call Recorder for Windows

License Windows Python HEVC AI Whisper 100% Local

A lightweight, automated Windows screen and call recorder designed for both humans and AI agents.
Always-on rolling buffer, hardware-accelerated HEVC compression, and automated meeting recording with offline transcription.

Screen Sentry Hero Banner


🚀 Key Highlights

  • 🛡️ Sentry Rolling Buffer: Never miss an unexpected event. A lightweight background buffer continuously keeps the last 10–30 minutes, allowing you to export recent footage instantly with zero re-encoding.
  • 📞 Automated Call Detection: Detects active meetings across Teams, Zoom, Google Meet, or browser calls when an app captures microphone input, prompting you with a 1-click Keep / Discard dialog.
  • 📝 Offline Whisper Transcription: Generates dual-channel transcripts (Romanian and English) using faster-whisper, clearly isolating You and Others without sending voice data to the cloud.
  • 🪶 Tiny HEVC Footprint: Automatic hardware acceleration (Intel QuickSync, NVIDIA NVENC, AMD AMF). Captures dual 1080p monitors for 20+ minutes in ~27 MB.
  • 🔊 Dynamic Audio Routing: Captures system audio (WASAPI loopback) and microphone, dynamically following Windows default audio device switches mid-recording.
  • 🤖 Front-ends for Everyone: Native WPF tray application (recgui.ps1), a full JSON CLI (screenrec.py), and a built-in MCP server for AI agents.

🪟 Visual Tour

Modern Desktop Interface (Dark & Light Mode)

The UI automatically synchronizes with Windows theme settings and minimizes cleanly to the system tray.

Screen Sentry Dark Theme   Screen Sentry Light Theme

Non-Intrusive Smart Call Prompt

When a conversation is detected, Screen Sentry starts recording with the preceding 20–40 seconds retroactively included, displaying a lightweight prompt without stealing keyboard focus:

Call Detected Prompt

Comprehensive Customization

Configure video resolutions, frame rates, audio thresholds, sentry durations, and idle transcription policies directly from the Settings dialog:

Screen Sentry Settings Dialog


🆚 Comparison

Feature Windows Snipping Tool / Game Bar Screen Sentry
Retroactive Buffer (Sentry) ⚠️ App-specific, manual setup required ✅ Whole desktop / multi-monitor, 1-click save
Meeting Detection ❌ Manual activation only 📞 Automatic (mic usage + voice activity)
Audio Transcripts ❌ Not available 📝 Local Faster-Whisper (You vs Others)
File Compression ⚠️ Bulky standard MP4 🪶 Hardware HEVC (~1 MB / min)
Output Organization ⚠️ Flat recordings folder 📂 Organized by day (YYYY-MM-DD)
AI / Automation API ❌ None 🤖 JSON CLI & Model Context Protocol (MCP)

⚡ Quick Start

1. Prerequisites

# Install FFmpeg with hardware codec support
winget install Gyan.FFmpeg

# Install Python requirements (Python 3.10+)
pip install -r requirements.txt

Note

The transcription model (large-v3-turbo, ~1.6 GB) downloads automatically on first transcription and runs entirely offline.

2. Launch

Launch the application using any of the available entrypoints:

# Double-click or run from terminal:
.\ScreenSentry.bat

# Or build the windowless C# launcher (optional):
powershell -File launcher\build.ps1
.\ScreenSentry.exe

🔔 System Tray Indicators

Screen Sentry sits quietly in the notification area with color-coded status badges:

Tray Icon Badge Operational State
Grey / Outline Idle — listeningFront-end ready
Blue Sentry rolling buffer active
Green Call watcher monitoring microphone activity
Blue & Green Both Sentry and Call Watcher running
Red Actively recording screen or ongoing call

📂 Output Organization

Recordings and transcripts are saved to your Windows Videos folder (or custom directory set via SCREENREC_DIR) grouped by date:

Videos\
└── 2026-11-21\
    ├── rec_20261121_104200.mp4       # Manual screen recording
    ├── sentry_20261121_111500.mp4    # Saved sentry buffer clip
    ├── call_20261121_090500.m4a      # Call audio (Stereo: Left=You, Right=Others)
    ├── call_20261121_090500.txt      # Human-readable transcript
    └── call_20261121_090500.json     # Machine-readable JSON transcript with timestamps

🛠️ CLI & MCP Integration

💻 JSON Command Line Interface (CLI)

Every CLI command emits structured JSON output with error codes:

# List available hardware devices and encoders
python screenrec.py devices

# Manual recording
python screenrec.py start --target all --fps 30 --max-height 1080 --max-seconds 600
python screenrec.py status
python screenrec.py stop

# Sentry buffer
python screenrec.py sentry-start --buffer-minutes 30
python screenrec.py sentry-save --minutes 10 --out incident.mp4
python screenrec.py sentry-stop

# Call watch & transcription
python screenrec.py voice-start --content audio+screen --mode ask
python screenrec.py voice-status
python screenrec.py voice-stop
python screenrec.py transcribe call.m4a --language ro --queue
🤖 Model Context Protocol (MCP) Server

Register Screen Sentry as an MCP tool provider for AI assistants:

claude mcp add screensentry -- python "D:\_git\ScreenSentry\mcp_server.py"

Available tools include screenrec_start, screenrec_stop, screenrec_status, screenrec_sentry_save, screenrec_transcribe, and screenrec_screenshot.

📐 Technical Architecture & State Machine

For complete deep-dive documentation on Desktop Duplication (ddagrab), zero-copy GPU encoding, WASAPI loopback capture, and process state machines, see docs/architecture.md.


📄 License & Credits

About

Automated, privacy-first Windows screen & call recorder with rolling buffer, hardware HEVC compression, and offline Whisper transcription.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages