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:
- Install OS-level media dependencies:
# Ubuntu / Debian: sudo apt update && sudo apt install -y ffmpeg libmagic1 # macOS (Homebrew): brew install ffmpeg libmagic - 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 - Run
Transcriber,ClipFinder, andresizein Python:
Generate a customized script with Whisper model sizing in our Self-Hosted AI Video Clipper Docker & Python Guide.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) )
ClipsAI-Specific Gotchas When Self-Hosting
- Accept gated Hugging Face terms for
Pyannote: Callingclipsai.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 gatedpyannote/speaker-diarization-3.1model card—otherwiseresize()fails with a401/403authentication error even with a valid token. - Outputs timestamps and crop coordinates—bring
FFmpegfor burned captions: ClipsAI excels at finding clip start/end times and speaker-centered9:16crop regions, and provides media trimming helpers, but it does not ship MrBeast-style animated caption templates out of the box—pair itsWhisperXword timestamps withFFmpeg/pysubs2if you want karaoke subtitles. - Pin Python 3.10 or 3.11:
whisperxandpyannote.audiorely on specifictorchandtorchaudiowheels that occasionally lag behind brand-new Python minor releases (such as 3.13+); a dedicated3.10or3.11venvavoids 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:
ClipFindersegments 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.
No hardware notes posted on this page yet—be the first to share what GPU/CPU and Whisper model you run.