Turns long YouTube videos into ranked 9:16 shorts using LLM highlight detection and Whisper transcription, with API or fully local processing modes.
Overview
AI YouTube Shorts Generator takes a long-form YouTube URL and returns vertical mp4 shorts aimed at TikTok, Reels, and YouTube Shorts. It uses GPT-class models to find viral-worthy moments in a transcript and Whisper for speech-to-text, then auto-crops each clip to the requested aspect ratio.
You can run it as a command-line tool or import it as a Python library. Default API mode relies on MuAPI for download, transcription, cropping, and highlight ranking. Local mode uses yt-dlp, faster-whisper, ffmpeg, and OpenCV on your machine, with OpenAI or Gemini for highlight ranking.
Highlight selection scores hooks, emotional peaks, opinions, revelations, conflict, quotable lines, story peaks, and practical value. Each candidate gets a viral score, hook line, and a short reason. Long videos over thirty minutes are chunked with overlap; overlapping candidates are deduplicated by score.
Compared with subscription clipping SaaS tools described in the project materials, it charges no per-clip credits, adds no watermarks, exposes JSON output for automation, and lets you edit the virality framework in code. Output can be any aspect ratio and resolution via flags.
Key features
- YouTube URL in, vertical mp4 shorts out
- API mode via MuAPI or offline local mode
- LLM virality-aware highlight ranking
- Whisper transcription cloud or local
- Configurable aspect ratio and clip count
- JSON export of transcript and highlights
- Batch processing from URL lists
- Importable Python library API
Use cases
- Repurposing podcasts and interviews for Shorts
- Agency clipping without per-minute SaaS caps
- Embedding clipping in custom Python pipelines
- Batch vertical clips from many YouTube URLs
Open-source alternative to
22short.ai“The open-source alternative to Opus Clip, Vidyo.ai, Klap, SubMagic, 2short.ai, and other AI clipping tools.” source
KKlap“The open-source alternative to Opus Clip, Vidyo.ai, Klap, SubMagic, 2short.ai, and other AI clipping tools.” source
OOpus Clip“The open-source alternative to Opus Clip, Vidyo.ai, Klap, SubMagic, 2short.ai, and other AI clipping tools.” source
SSubmagic“The open-source alternative to Opus Clip, Vidyo.ai, Klap, SubMagic, 2short.ai, and other AI clipping tools.” source
VVidyo.ai“The open-source alternative to Opus Clip, Vidyo.ai, Klap, SubMagic, 2short.ai, and other AI clipping tools.” source