# Repository Briefing: YILS-LIN/short-video-factory
> Source: https://repoforai.com/repo/YILS-LIN/short-video-factory (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/YILS-LIN/short-video-factory
- **Official Docs / Website**: https://short-video-factory.yils.blog
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: TypeScript
- **License**: AGPL-3.0
- **Engineering Health**: A (86/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 11/20)
- **Latest Release**: v1.4.1 (2026-11-23) — https://github.com/YILS-LIN/short-video-factory/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: API
- **Momentum**: 6,380 ★ total (+10 24h / +75 7d) · 877 forks
- **Topics**: `ai`, `automatic`, `automation`, `clipping`, `cross-platform`, `desktop`, `linux`, `mac`, `marketing`, `pc`, `product`, `shortvideo`
- **When to Use**: Best for: Marketing and content teams with an existing footage library that need repeatable short-video variants with generated copy, narration, and subtitles. Skip if: You need frame-accurate editing, newly generated footage, fully offline AI processing, or a supported headless rendering API.

## Overview
```text
### Architecture & Core Mechanics
Short Video Factory is a TypeScript and Electron desktop application built around a batch composition workflow. It turns a prompt into copy through a configurable model endpoint, synthesizes narration from that copy, and assembles supplied footage, audio, and subtitles into short videos. Presets let users repeat that workflow across a batch without rebuilding each edit by hand.

The source tree separates `electron/` and `src/` and includes Vite and electron-builder configuration. The manifest includes `ffmpeg-static` for media processing, `better-sqlite3`, `pixi.js`, and i18next with a filesystem backend. Those dependencies do not establish the database schema or renderer internals. The concrete integration boundary is the outbound copywriting API and EdgeTTS support, not a documented server-side rendering interface or plugin SDK.

### Key Capabilities & Differentiators
The app combines prompt-based copywriting, EdgeTTS narration, automatic editing of supplied footage, and subtitle composition. Version 1.3.0 expanded copywriting protocol support, sampling parameters, and diversity controls. It also introduced a subtitle rendering engine, visibility controls, and SRT export alongside the video. OpenAI-compatible request formatting is supported, but it does not imply support for any particular model family.

Version 1.4.0 added a composition dialog with grouped controls, subtitle-style preview, audio selection, and estimated output duration. Version 1.4.1 added three footage modes: standard segments, longer segments up to 30 seconds for smaller libraries, and whole clips for pre-edited footage. Filename ordering lets users preserve a planned sequence with prefixes such as `01-` and `02-` rather than leaving the sequence to automatic assembly.

### Trade-offs & Limitations
Compared with a general-purpose timeline editor, the app trades per-cut control for repeatable, preset-driven variants. That is a good fit for product promos with a stable format and an existing footage library, but a poor substitute for shot-by-shot editorial review. Compared with text-to-video generation, it assembles supplied footage rather than creating new shots. The footage library and ordering choices therefore matter as much as the copywriting prompt.

Local rendering avoids relying on a cloud rendering service, but encoding and output storage still land on the workstation. Copywriting providers can introduce usage charges, rate limits, and separate data-handling rules; EdgeTTS also needs network access. Pilot with realistic media and the intended provider before committing to a production batch. If distributing a modified build or letting users interact with a modified version over a network, review the AGPL-3.0 corresponding-source requirements.

### Hardware & Deployment Guide
For end users, the deployment path is to download the Windows, macOS, or Linux desktop release from GitHub. Building from source requires Node.js 22.17.0 or later and pnpm 10.12.4 or later; the manifest exposes development, build, test, and type-check scripts. The presence of native SQLite bindings and FFmpeg binaries makes package validation on the intended OS and CPU architecture worthwhile.

Composition runs on the workstation, while EdgeTTS and any remote copywriting endpoint add network dependencies. No fully offline substitute for all AI stages, Docker deployment, or public job API is established. The recent releases improve day-to-day desktop operation: v1.4.0 introduced diagnostics, persistent language preferences, and output-duration estimates; v1.4.1 made it easier to work with small footage libraries or a predetermined clip order.
```

## Key Capabilities
```text
- Desktop stack: TypeScript and Electron with ffmpeg-static; electron-builder configuration supports desktop packaging.
- Copywriting integration: OpenAI-compatible API support, with broader protocol coverage, sampling controls, and copy-diversity settings in v1.3.0.
- Narration and subtitles: EdgeTTS support, subtitle visibility controls, and separate SRT export.
- Batch controls: Preset-driven composition, estimated output duration, and generation diagnostics added in v1.4.0.
- Footage modes: v1.4.1 adds standard segments, longer segments up to 30 seconds, and whole clips for pre-edited assets.
- Assembly order: Filename prefixes such as 01- and 02- control the stitch order when filename ordering is enabled.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/YILS-LIN/short-video-factory.git
cd short-video-factory
```
