Project Profile · ClipsAI/clipsai · MIT Python Library

ClipsAI Self-Hosted: Setup, License & Verdict

A developer's guide to ClipsAI/clipsai—covering MIT commercial licensing, WhisperX + Pyannote 9:16 speaker cropping, and Hugging Face token gotchas.

ClipsAI is a developer-focused, open-source Python library designed to automatically segment long, audio-centric videos—such as podcasts, interviews, lectures, and sermons—into standalone short clips and dynamically resize 16:9 horizontal video into 9:16 vertical frames in roughly 15 lines of Python.

  • GitHub Repository: github.com/ClipsAI/clipsai
  • License Verdict (Verified): MIT License — permissive open source, ideal for embedding directly inside commercial Python backends, internal SaaS tools, or automated media scripts.

15-Minute Python Environment Setup Steps

Unlike Docker web studios, ClipsAI installs directly into a Python venv alongside system ffmpeg and libmagic:

  1. Install OS-level media dependencies:
    # Ubuntu / Debian:
    sudo apt update && sudo apt install -y ffmpeg libmagic1
    # macOS (Homebrew):
    brew install ffmpeg libmagic
    
  2. Create a clean Python 3.10–3.11 virtual environment and install ClipsAI + WhisperX:
    python3 -m venv .venv
    source .venv/bin/activate
    pip install clipsai
    pip install whisperx@git+https://github.com/m-bain/whisperx.git
    
  3. Run Transcriber, ClipFinder, and resize in Python:
    from clipsai import ClipFinder, Transcriber, resize
    
    transcriber = Transcriber()
    transcription = transcriber.transcribe(audio_file_path="episode.mp4")
    clips = ClipFinder().find_clips(transcription=transcription)
    
    crops = resize(
        video_file_path="episode.mp4",
        pyannote_auth_token="hf_your_huggingface_token",
        aspect_ratio=(9, 16)
    )
    
    Generate a customized script with Whisper model sizing in our Self-Hosted AI Video Clipper Docker & Python Guide.

ClipsAI-Specific Gotchas When Self-Hosting

  • Accept gated Hugging Face terms for Pyannote: Calling clipsai.resize() requires a free Hugging Face access token (hf_...), AND you must log into Hugging Face in your browser to explicitly click "Accept" on the gated pyannote/speaker-diarization-3.1 model card—otherwise resize() fails with a 401/403 authentication error even with a valid token.
  • Outputs timestamps and crop coordinates—bring FFmpeg for burned captions: ClipsAI excels at finding clip start/end times and speaker-centered 9:16 crop regions, and provides media trimming helpers, but it does not ship MrBeast-style animated caption templates out of the box—pair its WhisperX word timestamps with FFmpeg/pysubs2 if you want karaoke subtitles.
  • Pin Python 3.10 or 3.11: whisperx and pyannote.audio rely on specific torch and torchaudio wheels that occasionally lag behind brand-new Python minor releases (such as 3.13+); a dedicated 3.10 or 3.11 venv avoids dependency conflicts.

How ClipsAI Differs from the Other 4 Clippers

  • Pure Python SDK rather than a monolithic web app: Zero Next.js, Redis, or Postgres overhead—import it directly into Airflow, Prefect, FastAPI, or cron scripts.
  • No external LLM API required for clip boundaries: ClipFinder segments narrative topics algorithmically from transcript embeddings rather than requiring paid cloud LLM prompts.
  • Audio-centric focus: Built specifically for dialogue-driven videos (podcasts, interviews, speeches), whereas visual gaming VODs or UI editors are better served by OpenShorts, SupoClip, or OpenReel Video. Compare all five in our Open Source OpusClip Alternatives Matrix.

ClipsAI Setup & Python FAQ

Does ClipsAI require a paid OpenAI or Gemini API key?

No. ClipsAI uses WhisperX locally for transcription and algorithmic topic segmentation in ClipFinder, so you do not need an OpenAI or Gemini API key. You only need a free Hugging Face read token if you use the Pyannote-powered 9:16 resize() function.

Why does ClipsAI resize() fail with a Hugging Face 401 or 403 error?

You must visit the pyannote/speaker-diarization model page on Hugging Face while signed in and accept its user conditions before passing your hf_ access token into clipsai.resize().

Does ClipsAI include a web user interface?

ClipsAI is a Python SDK first (pip install clipsai), though the ClipsAI GitHub organization also publishes a companion ClipsAI/video-editor frontend repository for developers building custom web interfaces.

Self-Hoster Notes & Benchmark Feedback (0)

Running one of these open-source clippers on an RTX card, Apple Silicon Mac, or home server? Share your real render times, Whisper model settings, or Docker tips below.

No hardware notes posted on this page yet—be the first to share what GPU/CPU and Whisper model you run.