Anil-matcha/AI-Youtube-Shorts-Generator
Open-source alternative to Opus Clip, Vidyo.ai, Klap & SubMagic. Turn long-form YouTube videos into viral 9:16 shorts using LLM highlight detection, Whisper transcription, and auto vertical cropping — free, no watermarks, no per-clip credits.
What it solves
This project provides an open-source alternative to paid AI clipping tools. It allows users to convert long-form YouTube videos into short, viral-ready vertical clips (9:16) for platforms like TikTok, Reels, and YouTube Shorts without expensive monthly subscriptions or per-clip credit limits.
How it works
The tool processes videos through a multi-step pipeline:
- Ingestion: Downloads the video via YouTube URLs or local files.
- Transcription: Uses Whisper (via MuAPI or locally via
faster-whisper) to create a timestamped transcript. - Analysis: An LLM (GPT or Gemini) analyzes the transcript using a specific "virality framework" to identify high-impact moments based on hooks, emotional peaks, and practical value.
- Processing: Long videos are chunked to ensure no highlights are missed, and overlapping clips are deduplicated.
- Rendering: The selected highlights are cropped vertically. In API mode, this is handled by MuAPI; in local mode, it uses OpenCV face tracking and motion smoothing with FFmpeg.
Who it’s for
- Content Creators: Who want to repurpose long-form content into shorts for free.
- Agencies: Who need to process large volumes of videos without high SaaS costs.
- Developers: Who want to integrate an AI clipping pipeline into their own applications via the provided Python library or CLI.
Highlights
- Dual Operation Modes: Offers a fast API-driven mode (MuAPI) and a local mode for offline processing (except for the LLM call).
- ** uma Virality-Aware Ranking**: Ranks clips based on specific signals like "opinion bombs" and "revelation moments" rather than generic interest.
- Smart Vertical Cropping: Uses face tracking in local mode to ensure the subject remains centered in the 9:16 frame.
- Automation Friendly: Supports batch processing via
xargsand can export results as JSON for downstream workflows.
Related
- Project
- Project
- Project
- Project
- Project