Skip to content
ν”„λ‘œμ νŠΈ

μ†Œκ°œ

🎬 Automated pipeline that converts long-form YouTube videos into viral-ready vertical clips with captions.

개발 도ꡬ

이 수치λ₯Ό μΈ‘μ •ν•˜λŠ” 방법

μΈ‘μ •λœ μŠ€νƒ€ 증가

in 24h
+1
in 7 days
+2
in 15 days
기둝 μˆ˜μ§‘ 쀑
in 1 month
기둝 μˆ˜μ§‘ 쀑

μ„œλ‘œ κ²ΉμΉ˜λŠ” κΈ°κ°„μ˜ μˆœμ¦κ°€λŸ‰μ΄λ©° 일별 합계가 μ•„λ‹™λ‹ˆλ‹€. 츑정값이 μ—†μœΌλ©΄ λΉ„μ›Œ λ‘‘λ‹ˆλ‹€. μŠ€νƒ€λŠ” 관심도λ₯Ό λ‚˜νƒ€λ‚΄λ©° ν’ˆμ§ˆμ„ 보μž₯ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

README.md

Original

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):

Variable Default Description
GEMINI_API_KEY (required) Google Gemini API key
WHISPER_MODEL base Whisper model size (tiny|base|small|medium|large)
MAX_PARALLEL_CLIPS 3 Max parallel clip processing (1-10)
SILENCE_THRESHOLD_DB -35 Silence detection threshold
OUTPUT_WIDTH 1080 Output video width
OUTPUT_HEIGHT 1920 Output 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/

κ΄€λ ¨ ν”„λ‘œμ νŠΈ μ‚΄νŽ΄λ³΄κΈ°

λΆˆλŸ¬μ˜€λŠ” 쀑…