# OpenShorts

> A self-hostable OpusClip alternative that turns long videos into reframed, captioned 9:16 shorts

- Category: Multimodal Generation / Video Generation
- Language: Python
- Licence: MIT (cloud/ directory under the OpenShorts Commercial License)
- Repository: https://github.com/mutonby/openshorts
- Website: https://www.openshorts.app/
- Canonical page: https://ai-tldr.dev/tools/openshorts/

## In short

OpenShorts is an open-source AI video platform built around a clip generator: paste a YouTube link or upload a file, and it finds the strongest moments of a podcast, webinar, stream or interview and returns finished 9:16 clips for Shorts, TikTok and Reels. It sits in the Video Generation category of the Multimodal Generation tools and is open-source, written in Python and licensed MIT (cloud/ directory under the OpenShorts Commercial License).

## Overview

OpenShorts is an open-source AI video platform built around a clip generator: paste a YouTube link or upload a file, and it finds the strongest moments of a podcast, webinar, stream or interview and returns finished 9:16 clips for Shorts, TikTok and Reels. Each clip comes reframed, captioned, with a hook line, a virality score and titles for each platform. The project positions itself as the open-source alternative to OpusClip, Klap and Vizard: the core is MIT-licensed and self-hosts with Docker, with no watermark or usage cap.

The pipeline is a chain of well-known parts. yt-dlp ingests the video, faster-whisper (or Parakeet on a GPU) transcribes it with word-level timestamps, PySceneDetect finds scene boundaries, and Google Gemini ranks the transcript to pick 3–15 moments of 15–60 seconds. FFmpeg cuts the clips, and the reframer chooses per scene between a face-tracked crop (MediaPipe + YOLOv8), a blurred-background frame, a split layout that stacks two speakers with captions on the seam, and a screencast layout. Setting `LLM_BASE_URL` points the moment picker at Ollama, LM Studio, vLLM or any OpenAI-compatible server instead of Gemini, so the clip pipeline can stay entirely on your machine; frame-level features such as automatic layout picking still need a Gemini key.

Around the clip generator sit a clip editor (source and program monitors beside the transcript; click a word to set a cut), ElevenLabs dubbing into 30+ languages, an AI Shorts module that writes scripts and renders UGC-style marketing videos with AI actors through fal.ai models, a YouTube Studio for titles, thumbnails and chapter descriptions, and social posting through Upload-Post. Everything is also scriptable: a built-in MCP server at `/mcp`, a REST API with completion webhooks, a zero-dependency `openshorts` CLI and an Agent Skills skill.

The same software runs as a hosted service, OpenShorts Cloud, on a GPU; the README quotes about 50 seconds per 8-minute video there versus 5 to 8 minutes on a typical CPU, and the hosted paid plans add auto-posting and an Autopilot mode that clips every new upload on a connected channel. The `cloud/` directory with billing and hosted infrastructure is source-available under a separate commercial licence and is not needed to self-host.

## What it does

- Viral-moment detection that picks 3–15 clips of 15–60 seconds from the transcript and scene boundaries, each with a virality score and per-platform titles
- Per-scene 9:16 reframing: face tracking (MediaPipe + YOLOv8), blurred background, two-speaker split with captions on the seam, or screen-over-presenter
- Word-level captions from faster-whisper or Parakeet, burned in, plus editable hook overlays
- A clip editor with source and program monitors and a clickable transcript for word-accurate cuts and fast re-renders
- Runs the moment picker on a local LLM via any OpenAI-compatible server (`LLM_BASE_URL`) instead of Gemini
- AI Shorts: scripted UGC marketing videos with AI actors, lip-sync, voiceover and b-roll
- Automation through a built-in MCP server, a REST API with signed completion webhooks, a CLI and an Agent Skills skill

## Getting started

Self-hosting needs Docker and Docker Compose (8 GB+ RAM). The default image is CPU-only; an NVIDIA GPU with NVENC is optional. API keys for Gemini, fal.ai, ElevenLabs and Upload-Post are entered in the dashboard's Settings, and each is needed only for the features that use it.

1. Clone the repository

```bash
git clone https://github.com/mutonby/openshorts.git
cd openshorts
```

2. Configure (optional)

   The `.env` file holds server-side settings such as S3 backup keys and the local-LLM endpoint.

```bash
cp .env.example .env
```

3. Launch

```bash
docker compose up --build
```

4. Open the dashboard and clip a video

   Go to http://localhost:5175, enter your API keys under Settings, then upload a long-form video or paste a YouTube link in the Clip Generator.

5. Optional: keep the moment picker local

   Point it at Ollama on the host instead of Gemini. The README recommends 7–8B models or larger for reliable JSON and a larger Ollama context (for example OLLAMA_CONTEXT_LENGTH=16384).

```bash
# .env
LLM_BASE_URL=http://host.docker.internal:11434/v1
LLM_MODEL=qwen2.5:14b
```

6. Optional: drive it from an agent

   Add the self-hosted MCP server to Claude Code; tools include process_video, get_job_status, list_clips, recut_clip and publish_clip.

```bash
claude mcp add --transport http openshorts http://localhost:8000/mcp
```

## When to use it

- Turning a weekly podcast or interview into a batch of captioned vertical clips without a paid clipping service
- Running a fully local clipping pipeline on your own server with an Ollama model doing the moment selection
- Letting an AI agent clip and schedule videos through the MCP server or REST API, with webhooks instead of polling
- Producing low-cost UGC-style product videos with AI actors for TikTok, Reels and Shorts
