#3737th of 50 in Data and scraping for AIFor image, video and design, video and animation

ai-youtube-shorts-generator

CLI that cuts long YouTube videos into ranked vertical shorts

Stars
6k
License
MIT
Last commit
Nov 2026
Language
Python
Stars, last 29 weeks+2,750
21 Apr 2026: 3,201 stars28 Apr 2026: 3,290 stars5 May 2026: 3,398 stars12 May 2026: 3,480 stars19 May 2026: 3,582 stars26 May 2026: 3,649 stars2 Jun 2026: 3,724 stars9 Jun 2026: 3,801 stars16 Jun 2026: 3,867 stars23 Jun 2026: 3,954 stars30 Jun 2026: 4,037 stars7 Jul 2026: 4,125 stars14 Jul 2026: 4,202 stars21 Jul 2026: 4,279 stars28 Jul 2026: 4,392 stars4 Aug 2026: 4,466 stars11 Aug 2026: 4,553 stars18 Aug 2026: 4,616 stars25 Aug 2026: 4,718 stars1 Sept 2026: 4,796 stars8 Sept 2026: 4,907 stars15 Sept 2026: 4,995 stars22 Sept 2026: 5,088 stars29 Sept 2026: 5,174 stars6 Oct 2026: 5,265 stars13 Oct 2026: 5,344 stars20 Oct 2026: 5,537 stars27 Oct 2026: 5,642 stars3 Nov 2026: 5,768 stars10 Nov 2026: 5,951 stars

3,201 on 21 Apr 20265,951 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Python CLI and library that downloads a YouTube video or local file, transcribes it with Whisper, and has an LLM score highlight candidates for virality. The top N are cropped to 9:16 or another ratio. API mode runs everything through the MuAPI hosted service; local mode uses yt-dlp, faster-whisper, ffmpeg and OpenCV face tracking, with OpenAI or Gemini for ranking.

Who it is for: Creators and developers clipping long videos into shorts from scripts

Strengths

  • Local mode runs download, Whisper, and cropping on your machine; only the LLM call is remote
  • Each clip returns a score, hook line, and reason; --output-json dumps full results
  • Highlight prompt and virality criteria are editable in shorts_generator/highlights.py
  • Chunks videos over 30 minutes and dedupes overlapping candidates by score

Weaknesses

  • Default API mode depends on a paid MuAPI key for download, transcription, and cropping
  • Local mode still needs an OpenAI or Gemini API key for highlight ranking
  • README promotes a hosted clipping API as giving better quality than this repo
  • No Dockerfile, web UI, or tagged release; CLI and Python library only

What it needs

  • GPU optional
  • Needs MuAPI (API mode), ffmpeg (local mode), yt-dlp, faster-whisper, OpenCV, OpenAI or Gemini API key (local mode)
  • Models: OpenAI gpt-4o-mini, Gemini gemini-2.5-flash, faster-whisper tiny to large-v3, MuAPI gpt-5-mini

Quick answers

Is ai-youtube-shorts-generator open source?

Yes. Its code is on GitHub under the MIT license.

Does ai-youtube-shorts-generator need a GPU?

No. It runs on a CPU and can use a GPU when you have one.

Also in Data and scraping for AI

See all 50
Also in Data and scraping for AI
RankProjectScore
1doclingPython library that converts PDFs, Office files and more into structured text70.4k stars+1,818 (+2.6%) in 30 daysMIT92 out of 100
2mineruParses PDFs, images and Office files into Markdown and structured JSON Live demo ↗ (opens in a new tab)83.5k stars+2,196 (+2.7%) in 30 dayscustom license91 out of 100
3opendataloader-pdfPDF parser that outputs Markdown, JSON with bounding boxes, and Tagged PDF30.3k stars+728 (+2.5%) in 30 daysApache-2.090 out of 100
#4agent-reachCLI that gives coding agents read access to login-gated and Chinese web platforms111.1k starsMIT88 out of 100
#5markitdownPython library and CLI that converts office files, PDFs and audio to Markdown194.9k stars+5,738 (+3.0%) in 30 daysMIT87 out of 100