Skip to content
Proyectos

Acerca de

Free, 100% local open-source OpusClip alternative: DSP highlight detection, local Whisper karaoke subs, YOLOv8 9:16 tracking, 12h YouTube Live DVR, and multi-channel YouTube/Instagram Auto-Pilot.

Diseño y multimedia

Cómo se miden estas cifras

What you can do

  • Detects viral moments without heavy LLMs using DSP + robust statistics (RMS dB energy, positive loudness flux, grayscale frame-diff motion, normalized via Median / MAD Z-score across the full video).
  • Analyzes 1 hour of 1080p60 video in ~75 seconds using -skip_frame noref, with resumable per-chunk .npz caching and persistent per-video progress tracking (--continue, --window).
  • Domain presets: gaming (balanced audio + action) and reality / podcast (voice/reaction-first).
  • Local faster-whisper (small, CPU int8) for low-RAM word-level timestamps + EN/ES reaction scoring.

Crecimiento de estrellas medido

in 24h
0
in 7 days
Recopilando historial
in 15 days
Recopilando historial
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Clip Studio

A free, 100% local, open-source alternative to OpusClip — turn long YouTube VODs, podcasts, and live streams into viral 9:16 vertical Shorts & Reels with burned-in karaoke captions, YOLOv8 person tracking, and multi-channel Auto-Pilot publishing.

Zero monthly subscriptions. Zero cloud uploads. Zero paid AI API keys required.

Python FastAPI License Local First Support on Ko-fi

☕ Support Clip Studio: 100% free & MIT open-source. If it saved you $30+/month on clipping subscriptions, you can support ongoing development here:

Support Clip Studio on Ko-fi


Screenshots

Multi-Channel Auto-Pilot & Collision-Free Publishing

Clip Studio Auto-Pilot & Publishing

Vertical 9:16 Clips Editor (YOLOv8 Tracking + Karaoke Subtitles + Top Hooks)

Clip Studio Vertical Clips Editor

Live Stream Monitor (12h DVR / Realtime, 0 GB Raw Retained) & Video Library

Clip Studio Live Monitor & Library


Why Clip Studio?

Feature Cloud Clip SaaS (OpusClip, Vizard, etc.) Clip Studio (Local & Open-Source)
Monthly Cost $20 – $100+ / month $0 forever
Processing Speed Upload wait + cloud queue ~33× realtime (-skip_frame noref + DSP)
Hardware Required Cloud only Runs on Apple Silicon / standard CPU (int8 Whisper)
Live Stream Monitoring Rare / paid tier 12-hour YouTube Live DASH DVR + Realtime (auto-deletes raw blocks)
Multi-Channel Isolation Extra seats Unlimited isolated profiles (folders, language, presets, OAuth tokens)
Auto-Publishing Limited / watermarks Official YouTube Data API v3 + Meta Graph API (rupload) with collision-free Auto-Pilot
Privacy Your footage on third-party servers 100% on your machine

Key Features

  • Blazing-Fast Signal-Based Highlight Detection (clipper.py)
    • Detects viral moments without heavy LLMs using DSP + robust statistics (RMS dB energy, positive loudness flux, grayscale frame-diff motion, normalized via Median / MAD Z-score across the full video).
    • Analyzes 1 hour of 1080p60 video in ~75 seconds using -skip_frame noref, with resumable per-chunk .npz caching and persistent per-video progress tracking (--continue, --window).
    • Domain presets: gaming (balanced audio + action) and reality / podcast (voice/reaction-first).
  • Local AI Subtitles, Tracking & Hooks (ai_features.py)
    • Local faster-whisper (small, CPU int8) for low-RAM word-level timestamps + EN/ES reaction scoring.
    • Burned-in TikTok/Reels karaoke subtitles rendered cleanly via Pillow RGBA + ffconcat + native ffmpeg overlay (works even on Homebrew ffmpeg builds compiled without libass/drawtext).
    • Top hook banners (--title) + YOLOv8n person tracking (--framing follow, anchor, blur) on Apple Silicon MPS / CUDA / CPU.
    • Zero-cost contact-sheet curation (--vision-provider agent): exports 4-per-grid visual contact sheets (candidates/grid_XX.jpg) to filter out menus/dead air before rendering.
  • Zero-Storage Live Stream Scanner (live_watch.py)
    • Scans YouTube Live streams in configurable blocks (e.g., 20 min or 60 min) via 12-hour parallel MPEG-DASH DVR (with negative timestamps like -2:10:23 -> -1:00:00) or real-time HLS with auto-reconnect.
    • Extracts only the peak clips and immediately deletes the raw temporary block (0 GB raw video retained).
  • Multi-Channel Web Studio (web.py) & Smart Auto-Pilot (autopilot.py)
    • Clean dark FastAPI + HTMX web dashboard (http://127.0.0.1:8765) with isolated channel profiles, live console dock, video/clip thumbnails, and inline metadata editor.
    • Collision-Free YouTube Auto-Slot (--auto-slot): reads subidos.json, finds the latest scheduled publishAt, and chains new batches automatically without ever overlapping slots.
    • Spaced Instagram Reels Auto-Publisher: publishes 1 Reel every N hours directly via Meta Graph API binary rupload (no public file server needed).
    • Quiet Hours & Daily Caps: automatically skips overnight hours (e.g., 01:00–07:00) and respects API daily quotas.

Quickstart (3 Steps)

Prerequisites

  • Python 3.10+ (tested on Python 3.11)
  • FFmpeg & FFprobe (brew install ffmpeg on macOS, apt install ffmpeg on Ubuntu)
  • (Optional, for 12-hour YouTube Live DASH DVR) Deno (brew install deno)

1. Clone & Install

git clone https://github.com/anderj14/clip-studio.git
cd clip-studio

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

2. Launch the Web Studio

./clip.sh ui 8765

Open http://127.0.0.1:8765 in your browser. On first launch, profiles.json is created automatically (see profiles.example.json for structure).

3. Optional: Connect Official YouTube & Instagram APIs

  • YouTube Shorts (OAuth2): follow YOUTUBE_SETUP.md (~3 min, 100% free via Google Cloud).
  • Instagram Reels (Graph API rupload): follow SOCIAL_SETUP.md (~5 min).

CLI Usage (./clip.sh)

Prefer the terminal or cron jobs? Every workflow is also available via CLI:

# Download a YouTube VOD into videos/
./clip.sh descargar "https://www.youtube.com/watch?v=VIDEO_ID" --duration 1:00:00

# Step 1: Analyze + Whisper + generate visual contact sheets for top 10 moments
./clip.sh analizar videos/gameplay.mp4 10

# Continue scanning the next 15 minutes without repeating previous clips
./clip.sh seguir videos/gameplay.mp4 10 --window 15

# Step 2: Render winners with YOLOv8 person tracking + karaoke subtitles + top hook
./clip.sh cortar

# One-shot fast mode (DSP + Whisper + YOLO + subs, no manual review)
./clip.sh rapido videos/gameplay.mp4 8

# Monitor a live YouTube stream (20-min blocks, auto-deletes raw video)
./clip.sh live "https://www.youtube.com/watch?v=LIVE_ID" 20 --preset reality --lang es

# Preview Auto-Pilot queues & next collision-free YouTube/Instagram slots
./clip.sh autopilot status

# Schedule pending clips on YouTube automatically after the last scheduled video
./clip.sh subir --auto-slot --every 4h --quiet-hours 01:00-07:00 --dry-run

# Publish pending clips to Instagram Reels
./clip.sh ig --limit 1 --dry-run

Architecture

clip-studio/
├── clipper.py           # DSP peak detection (dB + flux + motion), caching & 9:16 FFmpeg rendering
├── ai_features.py       # Local faster-whisper (int8), Pillow karaoke subs, hooks, YOLOv8 tracking
├── live_watch.py        # 12h MPEG-DASH DVR & real-time HLS livestream scanner (0 GB raw retained)
├── download.py          # yt-dlp VOD & live capture helper
├── autopilot.py         # Smart slot planner (no collisions, quiet hours, daily quota caps)
├── upload.py            # Official YouTube Data API v3 uploader & scheduler
├── upload_instagram.py  # Official Meta Graph API v21.0 Reels binary rupload publisher
├── upload_tiktok.py     # Optional TikTok Content Posting API v2 (inbox/drafts)
├── web.py               # Multi-channel FastAPI + HTMX local studio & background Auto-Pilot daemon
├── templates/           # Dark studio UI templates (HTMX partials)
├── clip.sh              # Ergonomic CLI wrapper
└── profiles.example.json

Security & Privacy

  • All credentials (client_secret*.json, *token*.json, instagram_config*.json, tiktok_config*.json), user profiles (profiles.json), media (videos*/, clips*/), and model weights (*.pt) are strictly excluded via .gitignore.
  • Everything runs locally on 127.0.0.1 by default — never expose the local web server directly to the public internet without authentication.

Support the Project

Clip Studio is 100% free and MIT open-source. If it saved you $30+/month on cloud clipping subscriptions or helped grow your channels, consider supporting ongoing development:

Buy Me a Coffee on Ko-fi


License

MIT License — see LICENSE. Use responsibly and respect platform copyright / Content ID policies when clipping third-party content.

Explorar proyectos relacionados

Cargando…