# Repository Briefing: theoperatorlogs/operator-clipper
> Source: https://repoforai.com/repo/theoperatorlogs/operator-clipper (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/theoperatorlogs/operator-clipper
- **Official Docs / Website**: https://theoperatorlogs.com
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: GPL-3.0
- **Engineering Health**: B+ (72/100 · Maintenance 35/35 · Adoption 15/25 · Releases 11/20 · License 11/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Self-Hosted, CLI, API
- **Momentum**: 83 ★ total (+4 24h / +83 7d) · 23 forks
- **Topics**: `ai`, `claude`, `clipping`, `content-creation`, `ffmpeg`, `instagram-reels`, `streaming`, `youtube-shorts`
- **When to Use**: Best for: Creators and small production teams that own or have permission to use the footage and want a repeatable pipeline from long streams to reviewed Shorts and Reels on their own accounts. Skip if: You need fully offline AI judging, managed operations, or dependable hands-off publishing without first validating clip quality, account permissions and platform rules.

## Overview
```text
### Architecture & Core Mechanics
Operator Clipper is a self-hosted Python application that separates candidate detection from editorial judgment. Streamlink ingests live streams into a rolling on-disk recording. Detection combines chat activity where available with audio and visual signals; MediaPipe runs audio and facial analysis locally. Candidate windows go to Claude through either the user's Claude Code login or the Anthropic API. Claude judges whether a moment is worth keeping, selects its boundaries and drafts metadata. FFmpeg renders the result for a browser-based review queue and optional publishing.

The `clipper/` package contains the watcher, detector, judge, cutter, review UI and posting code. Runtime state, including the database, recordings and clips, lives under `data/`; downloaded MediaPipe models live under `models/`. The dependency manifest includes the Anthropic SDK, Google API and OAuth packages, and `keyring`. Editorial customization lives in `niches/`: packs supply examples, themes, title keywords and hashtags without requiring changes to the clipping pipeline.

### Key Capabilities & Differentiators
Live monitoring supports Twitch, YouTube and Kick with chat signals; other Streamlink-supported live sources use audio-only detection. A separate past-stream workflow scans YouTube videos, Twitch VODs and Kick videos. Detection can use chat spikes, loudness, laughter, screams, cheers, facial expressions, motion and speech pace. Claude scores candidates on nine dimensions from hook and clarity to payoff and rewatchability. These scores help prioritize review; they do not predict audience performance. Clips below the configured minimum score are marked rejected but retained on disk.

FFmpeg produces 1080×1920 clips with multiple layouts and burned-in captions. Optional whisper.cpp transcription supports transcript captions and podcast mode. The local review UI offers grid and swipe views, title editing, rejection and posting to connected YouTube Shorts and Instagram Reels accounts. New accounts default to manual posting; auto mode can apply daily caps, spacing, quiet hours and a minimum score per account. Text watermarks are added at publish time without modifying the master. A daily YouTube Data API research pass refreshes an editable playbook used by the judge.

### Trade-offs & Limitations
Compared with a manual editing workflow, the biggest gain is triage: the app narrows long recordings to a review queue instead of asking an editor to find every moment. The cost is less direct control over initial selections and cut points. Compared with a managed clipping service, local operation keeps recordings and credentials on hardware you control, but leaves you responsible for machine uptime, dependencies and platform account setup. It is not an offline AI pipeline: candidate material sent to Claude can include frame images and transcripts. If judging fails, a heuristic range and templated text keep the clip available for review.

Recording, local analysis and FFmpeg rendering compete for CPU and disk; test a representative stream before raising concurrency or retention. Claude Code usage shares plan limits, API-key usage is billed per use, and YouTube uploads and trend research consume API quota. Google OAuth clients left in Testing can require reauthorization after seven days; Instagram publishing depends on account type, permissions and token validity. GPL-3.0 governs the software, not reuse of the source footage. Keep publication in manual mode until both clip quality and publishing permissions are confirmed.

### Hardware & Deployment Guide
The supported setup targets macOS 13+ on Apple silicon or Intel and Windows 10/11 on x64; Linux is best effort. Python 3.13 and FFmpeg are required. `install.sh` on macOS and `install.bat`/`install.ps1` on Windows can provision missing prerequisites, create `.venv`, install Python dependencies, fetch two MediaPipe models and create `config.toml` from `config.example.toml`. Run `python -m clipper doctor` inside the virtual environment to check setup. `python -m clipper start` runs the watcher and review page together, opening the UI at `http://127.0.0.1:8765`.

YouTube publishing requires a Google Cloud Desktop OAuth client; Instagram publishing requires a Meta app and a professional Instagram account. Secrets use the OS credential store where available, with a restricted fallback under `data/secrets`. Claude access requires a Claude Code login or an Anthropic API key. No Docker manifest or tagged release is available in the supplied repository snapshot; plan around a workstation install and pin the source revision if you need repeatable deployments.
```

## Key Capabilities
```text
- Ingest: Twitch, YouTube and Kick live monitoring combines chat and media signals; other Streamlink-supported live sites use audio-only detection.
- Candidate judging: Claude sets clip boundaries, generates publishing metadata and scores nine dimensions; a heuristic fallback preserves candidates if AI judging fails.
- Rendering: FFmpeg produces 1080×1920 clips with multiple layouts and burned-in captions; whisper.cpp adds optional transcript captions.
- Review and publishing: The local grid or swipe feed supports manual review, while account-level rules enforce score thresholds, daily limits, spacing and quiet hours.
- Output isolation: Platform- and account-specific watermarks are applied at publish time without changing the master clip.
- Editorial tuning: Editable niche packs supply examples and metadata guidance; daily YouTube Data API research updates an editable playbook for Claude.
```

## Quick Start / Clone
```bash
clipper/          the application code (watching, detection, AI judge, cutter, review page, posting)
niches/           built-in niche packs: gaming, gta6, irl, podcast, events, custom
assets/           fonts, sound effects and music folders (see assets/sfx/README.md)
docs/             setup guides, niches, watermarks, FAQ, commands
config.example.toml   copied to config.toml by the installer
install.sh        macOS installer
install.bat       Windows installer launcher (runs install.ps1)
install.ps1       Windows installer
start.command     macOS start script (double-click)
start.bat         Windows start script (double-click)
data/             created at run time: database, recordings, clips, your settings (git ignored)
models/           the two MediaPipe models, downloaded by the installer (git ignored)
```
