Star ๅކๅฒ่ถ‹ๅŠฟ
ๆ•ฐๆฎๆฅๆบ: GitHub API ยท ็”Ÿๆˆ่‡ช Stargazers.cn
README.md

jiang-clips

Automated short-form clip extraction pipeline for YouTube videos using AI.

Prerequisites

  • Runtime: Bun
  • FFmpeg: Required for video processing
  • Google Gemini API Key: Required for AI content generation

Setup

# Install dependencies
bun install

# Set environment variables
export GEMINI_API_KEY="your-api-key"

Usage

# Run the pipeline on a single video
bun run src/index.ts pipeline <youtube-url>

# Batch process a channel
bun run src/index.ts batch <channel-url>

# Resume a previous run
bun run src/index.ts resume <run-id>

# Check status
bun run src/index.ts status [run-id]

# Clean up a run
bun run src/index.ts clean <run-id>

Configuration

Environment variables (all optional with defaults):

VariableDefaultDescription
GEMINI_API_KEY(required)Google Gemini API key
WHISPER_MODELbaseWhisper model size (tiny|base|small|medium|large)
MAX_PARALLEL_CLIPS3Max parallel clip processing (1-10)
SILENCE_THRESHOLD_DB-35Silence detection threshold
OUTPUT_WIDTH1080Output video width
OUTPUT_HEIGHT1920Output video height

Testing

bun test                     # All tests
bun test tests/utils         # Single test directory
bun test tests/utils/fs.test.ts  # Single test file

Linting & Formatting

oxlint                       # Lint src/ and tests/
oxfmt --write src tests      # Format and write changes
oxfmt --check src tests      # Check formatting without writing

Project Structure

src/
โ”œโ”€โ”€ index.ts          # CLI entry point
โ”œโ”€โ”€ config.ts         # Configuration schema
โ”œโ”€โ”€ pipeline/         # Pipeline orchestration
โ”œโ”€โ”€ modules/          # Processing modules
โ”œโ”€โ”€ utils/            # Utilities
โ””โ”€โ”€ remotion/         # Video rendering

tests/
โ”œโ”€โ”€ pipeline/
โ”œโ”€โ”€ modules/
โ””โ”€โ”€ utils/

ๅ…ณไบŽ About

๐ŸŽฌ Automated pipeline that converts long-form YouTube videos into viral-ready vertical clips with captions.
content-automationffmpegreelsremotionshortstiktokyoutube

่ฏญ่จ€ Languages

TypeScript100.0%

ๆไบคๆดป่ทƒๅบฆ Commit Activity

ไปฃ็ ๆไบค็ƒญๅŠ›ๅ›พ
่ฟ‡ๅŽป 52 ๅ‘จ็š„ๅผ€ๅ‘ๆดป่ทƒๅบฆ
6
Total Commits
ๅณฐๅ€ผ: 6ๆฌก/ๅ‘จ
Less
More

ๆ ธๅฟƒ่ดก็Œฎ่€… Contributors