Metadata-Version: 2.5
Name: shortsflow
Version: 0.9.5
Summary: Self-hosted Opus Clip alternative: long videos to captioned 9:16 Shorts (Whisper, face tracking, active-speaker cuts, Remotion captions). CLI, REST API and MCP server.
Project-URL: Homepage, https://github.com/ghost1412/shortsflow
Project-URL: Issues, https://github.com/ghost1412/shortsflow/issues
License: MIT
License-File: LICENSE
Keywords: mcp,opus-clip,reels,remotion,shorts,tiktok,video,whisper
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Video
Requires-Python: >=3.10
Requires-Dist: edge-tts>=7.3.1
Requires-Dist: fastapi<1,>=0.115
Requires-Dist: fonttools<5,>=4.50
Requires-Dist: google-api-python-client<3,>=2.150
Requires-Dist: google-auth-httplib2<1,>=0.2
Requires-Dist: google-auth-oauthlib<2,>=1.2
Requires-Dist: imageio-ffmpeg>=0.5
Requires-Dist: moviepy<3,>=2.1
Requires-Dist: nest-asyncio<2,>=1.6
Requires-Dist: numpy<3,>=1.26
Requires-Dist: pillow<12,>=10.4
Requires-Dist: python-dotenv<2,>=1.0
Requires-Dist: requests<3,>=2.32
Requires-Dist: supabase<3,>=2.10
Requires-Dist: uvicorn<1,>=0.30
Requires-Dist: yt-dlp>=2026.8.19
Provides-Extra: clip
Requires-Dist: librosa<0.12,>=0.10; extra == 'clip'
Requires-Dist: opencv-python<5,>=4.10; extra == 'clip'
Requires-Dist: soundfile<1,>=0.12; extra == 'clip'
Requires-Dist: stable-ts<3,>=2.17; extra == 'clip'
Provides-Extra: explainer
Requires-Dist: manim<0.22,>=0.19; extra == 'explainer'
Requires-Dist: manimpango<0.6.0; extra == 'explainer'
Provides-Extra: full
Requires-Dist: gradio<7,>=5; extra == 'full'
Requires-Dist: gtts<3,>=2.5; extra == 'full'
Requires-Dist: kokoro-onnx<1,>=0.4; extra == 'full'
Requires-Dist: librosa<0.12,>=0.10; extra == 'full'
Requires-Dist: manim<0.22,>=0.19; extra == 'full'
Requires-Dist: manimpango<0.6.0; extra == 'full'
Requires-Dist: opencc-python-reimplemented<1,>=0.1.7; extra == 'full'
Requires-Dist: opencv-python<5,>=4.10; extra == 'full'
Requires-Dist: pypdf<7,>=5; extra == 'full'
Requires-Dist: soundfile<1,>=0.12; extra == 'full'
Requires-Dist: stable-ts<3,>=2.17; extra == 'full'
Provides-Extra: local-voice
Requires-Dist: kokoro-onnx<1,>=0.4; extra == 'local-voice'
Requires-Dist: soundfile<1,>=0.12; extra == 'local-voice'
Provides-Extra: sources
Requires-Dist: pypdf<7,>=5; extra == 'sources'
Provides-Extra: subject
Requires-Dist: opencv-python<5,>=4.10; extra == 'subject'
Requires-Dist: torch<3,>=2.2; extra == 'subject'
Requires-Dist: torchvision<1,>=0.17; extra == 'subject'
Provides-Extra: webui
Requires-Dist: gradio<7,>=5; extra == 'webui'
Provides-Extra: zh
Requires-Dist: opencc-python-reimplemented<1,>=0.1.7; extra == 'zh'
Description-Content-Type: text/markdown

<p align="center"><img src="assets/branding/logo-192.png" width="72" height="72" alt="ShortsFlow logo" /></p>

<h1 align="center">ShortsFlow</h1>

<p align="center"><b>Drop in a podcast or interview, get captioned vertical clips.<br/>No account, no API key, no upload.</b></p>

<p align="center">Free and open source (MIT), on your own PC: no watermark, no credits, no subscription.<br/>Also highlights videos, dubs, recaps, voice-overs, narrated explainers and YouTube uploads.</p>

<p align="center">
  <a href="https://pypi.org/project/shortsflow/"><img src="https://img.shields.io/pypi/v/shortsflow?style=flat&logo=pypi&logoColor=white&color=3775A9" alt="PyPI version" /></a>
  <a href="https://pypi.org/project/shortsflow/"><img src="https://img.shields.io/pypi/pyversions/shortsflow?style=flat&logo=python&logoColor=white" alt="Python versions" /></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-green?style=flat" alt="MIT License" /></a>
  <a href="https://github.com/ghost1412/shortsflow/actions/workflows/tests.yml"><img src="https://github.com/ghost1412/shortsflow/actions/workflows/tests.yml/badge.svg" alt="Tests" /></a>
  <a href="https://github.com/ghost1412/shortsflow/stargazers"><img src="https://img.shields.io/github/stars/ghost1412/shortsflow?style=flat&logo=github" alt="GitHub stars" /></a>
  <a href="https://glama.ai/mcp/servers/ghost1412/shortsflow"><img src="https://glama.ai/mcp/servers/ghost1412/shortsflow/badges/score.svg" alt="ghost1412/shortsflow MCP server" /></a>
</p>

<p align="center">
  <img src="demos/demo_podcast_cuts.gif" width="240" alt="A podcast clip: the crop cuts to whoever is speaking, with word-by-word captions" />
  &nbsp;&nbsp;
  <img src="demos/demo_case_9x16.gif" width="240" alt="A case explainer made from one web page: an animated diagram over stock footage, a source chip and captions" />
  <br/><sub><b>Clip it:</b> the 9:16 crop cuts to whoever is talking, with word-timed captions. &nbsp;|&nbsp; <b>Explain it:</b> one web page in, a narrated explainer with an animated diagram out (<code>--mode CASE</code>).</sub>
</p>

## Try it in two minutes

**Windows, no setup:** [⬇ Download ShortsFlow-Setup.exe](https://github.com/ghost1412/shortsflow/releases/latest/download/ShortsFlow-Setup.exe), open **ShortsFlow**, press **Try a 2-minute sample**, then **Start**.

**Any OS** (needs Python 3.10+ and FFmpeg):

```bash
pip install "shortsflow[clip]"
shortsflow doctor              # says what is missing, if anything
shortsflow clip my_video.mp4
```

**Mac or Linux, one line** (needs Python 3.10+ and FFmpeg; installs into `~/.shortsflow`):

```bash
curl -fsSL https://raw.githubusercontent.com/ghost1412/shortsflow/main/install.sh | sh
```

**Nothing to install:** [open it in Colab](https://colab.research.google.com/github/ghost1412/shortsflow/blob/main/ShortsFlow_Colab.ipynb) (free GPU).

No account or API key is needed to clip a video. If it saves you a subscription, a ⭐ helps other people find it.

## What you can make

| | What you get | Good to know |
|---|---|---|
| ✂️ **Shorts** | The best moments of a long video as 9:16 clips framed on faces. Options: animated captions, a cut to the speaker, an opening on the strongest line, silences cut | Each clip says why it was picked |
| 🎬 **Highlights video** | One video of the best moments, in their original order, at the length you choose | Landscape, like the source |
| 🌍 **Dubbing** | Your video in another language, with translated subtitles. It can give up to 4 speakers different voices, told apart by pitch | Computer voices: no voice cloning, no lip-sync. Similar voices can get mixed up |
| 🧳 **Recaps** | Trips, weddings and events: a hook, title cards, a closing card and an itinerary, tall or wide | Can copy the pace of a reel you like |
| 🎙️ **Voice cloning** | A voice-over in your own voice from a 10 to 30 second recording, in seven tones | Needs a local voice server. Your voice, or a consenting person's |
| ⬆️ **YouTube upload** | Publish to your own channel, now or scheduled | Other platforms go through Upload-Post, not yet tested with a live account |

Also: [explainer videos](docs/GUIDE.md#the-case-explainer-videos-written-from-your-sources) written from a web page or PDF, [talking presenters](docs/GUIDE.md#presenters-a-host-who-talks), animations, photo reels, quiz and facts shorts, and game clips.

<p align="center">
  <img src="demos/presenters.png" width="640" alt="Ten ready-made presenters: six people, two cats, a dog and a robot" />
  <br/><sub>Presenters that talk through your explainers.</sub>
</p>

## No command line needed

<p align="center">
  <img src="demos/webui_review.jpg" width="640" alt="The browser app after a run: two finished shorts, each with a score, the reason it was picked and an editor" />
  <br/><sub>Open the app, pick a card, then review, edit and publish. Shown: shorts made from a public-domain NASA video.</sub>
</p>

Prefer a terminal? `shortsflow clip interview.mp4 --captions`. There is also Docker, a REST API, an MCP server for AI agents and a daily GitHub Action. [All commands](docs/GUIDE.md#what-it-makes).

## Your PC, your choice of AI

- **Clipping needs no cloud:** Whisper transcribes and FFmpeg renders on your PC.
- **Write with any model:** Ollama, Gemini, OpenAI, Claude, DeepSeek, Groq, OpenRouter or any OpenAI-compatible server. Looking at pictures works with Gemini or Ollama. [Set it up](docs/GUIDE.md#bring-any-ai-model-or-run-it-on-your-own-pc).
- **Know what leaves:** with AI keys or online features, text, pictures or videos can be sent to those services, and the default narration voice (Microsoft Edge) is online. If you choose a model, your text goes only to it; only Automatic tries others. [Full privacy list](docs/GUIDE.md#privacy-what-leaves-your-pc).

## Instead of a hosted clipper

ShortsFlow is free, adds no watermark, needs no account, and clips on your own machine. Hosted services such as Opus Clip, Klap and Vizard need no install and may be more polished; check their pages for current prices and limits. [How we measure clip quality, including the weak spots](docs/BENCHMARKS.md).

## Help and contributing

- Something wrong? [Open an issue](https://github.com/ghost1412/shortsflow/issues) with the output of `shortsflow doctor --report` (no keys or folder names in it).
- [Guide](docs/GUIDE.md) · [All features and options](docs/FEATURES.md) · [Roadmap](ROADMAP.md)
- Footage credits. Podcast demo: [Lila Rose Podcast E143](https://www.youtube.com/watch?v=VIq8L_ZeqkA) by Lila Rose, shared on YouTube under the [Creative Commons Attribution licence](https://creativecommons.org/licenses/by/3.0); cropped, re-framed and captioned (changes made). Explainer demo: made from a Wikipedia article; any stock footage in it is from [Pexels](https://www.pexels.com).

## License

MIT. Remotion (animated captions) has its own licence for companies above its size threshold; see [remotion.dev/license](https://remotion.dev/license).

<img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2Fgithub.com%2Fghost1412%2Fshortsflow&label=&icon=github&color=%23198754&message=&style=flat&tz=UTC">
