Skip to content
Projects

outhsics/openfang-auto-clip

View on GitHub

About

AI-driven automated video clipping pipeline for turning long videos into reusable short-form content.

Design & Media

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
+1

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original

OpenFang Auto Clip

Local-first video repurposing pipeline with reproducible benchmark and release assets

License: MIT Python 3.9+ CI

English | 简体中文

OpenFang Auto Clip overview

60-Second Evaluation

What This Repo Does Today

  • downloads a source video with yt-dlp
  • applies a working local Level 1 FFmpeg remix path
  • builds a Level 2 transcript-to-script package with timed source anchors, shot plan, asset requests, voiceover notes, and review rubric when a transcript is provided
  • generates a self-contained Level 2 demo package from a bundled transcript for quick evaluation
  • reviews an existing Level 2 package and writes bilingual review artifacts for operator approval
  • runs a reproducible bilingual Level 2 demo suite so visitors can compare package quality quickly across multiple transcript formats
  • runs the full local evaluation path in one command: doctor, benchmark, and Level 2 suite
  • slices output into 9:16 clips with a simple local strategy
  • provides --doctor and --dry-run commands for safer evaluation
  • includes a local web manager for task launching and inspection
  • ships a synthetic benchmark plus release collateral generators
  • the synthetic benchmark also writes a bilingual benchmark_summary.md

Reality Check

Area Status Notes
Download + clip export Working Main local CLI path
Level 1 remix Working FFmpeg-based and reproducible
Web manager Working Local-only operator console
Synthetic benchmark Working No external media required
Social preview + release assets Working Helper scripts are in-repo
Level 2 script regeneration Partial Transcript-to-script package, shot plan, and blueprint work; rebuilt video remains manual
Level 3 complete recreation Scaffolded Not production-ready
Hosted SaaS / public API Not offered This repo is local-first

Quick Start

git clone https://github.com/outhsics/openfang-auto-clip.git
cd openfang-auto-clip

python3 -m venv .venv
source .venv/bin/activate
pip install -e .

./auto_clip.sh --doctor
python3 scripts/run_demo_benchmark.py
python3 auto_clip.py --demo-script-package
python3 auto_clip.py --review-package ~/.openfang/clips/script_packages/TIMESTAMP_source
python3 scripts/run_level2_demo_suite.py
python3 scripts/run_local_evaluation.py
python3 scripts/refresh_demo_assets.py
./auto_clip.sh "https://www.youtube.com/watch?v=VIDEO_ID" --dry-run
./auto_clip.sh "https://www.youtube.com/watch?v=VIDEO_ID" --transform 1 --duration 45
./auto_clip.sh "https://www.youtube.com/watch?v=VIDEO_ID" --transform 2 --transcript path/to/source.srt

If you prefer the bundled installer, see docs/INSTALLATION.md.

Common Commands

# Environment check
./auto_clip.sh --doctor

# Safe planning pass without downloading media
./auto_clip.sh "URL" --dry-run

# Run the synthetic benchmark
python3 scripts/run_demo_benchmark.py

# Run the zero-external-media Level 2 demo
python3 auto_clip.py --demo-script-package

# Re-review an existing Level 2 package
python3 auto_clip.py --review-package ~/.openfang/clips/script_packages/TIMESTAMP_source

# Run the bilingual Level 2 demo suite
python3 scripts/run_level2_demo_suite.py

# Run the complete local evaluation path
python3 scripts/run_local_evaluation.py

# Refresh committed demo and benchmark sample assets
python3 scripts/refresh_demo_assets.py

# Generate a Level 2 script package from a transcript
./auto_clip.sh "URL" --transform 2 --transcript path/to/source.srt

# Generate GitHub social preview assets
python3 scripts/generate_social_preview.py --report examples/benchmark/sample_benchmark_report.json

# Prepare a release bundle with benchmark proof
python3 scripts/release_prep.py v0.3.0 --report tmp/demo-benchmark-v030/benchmark_report.json

# Start the local web manager
./start_web_manager.sh

# Run the test suite
python3 -m unittest discover -s tests

Documentation Map

Positioning

OpenFang Auto Clip should be described as:

  • a local-first operator workflow
  • a reproducible benchmark and clip-generation repo
  • a practical Level 1 remix tool today
  • an early Level 2 script-package workflow, not a finished regeneration suite

It should not be described as:

  • a guaranteed copyright-safe system
  • a hosted SaaS
  • a finished Level 2 / Level 3 platform

Support And Community

License

This repository uses the MIT License. Read LICENSE and DISCLAIMER.md before using it for commercial or high-risk workflows.

Explore related projects

Loading…