sirioberati/Genjustsu-Open-Source-Workflow
Local video workflow for subject replacement with hosted Seedance generation
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Genjustsu is a local, single-user Python application that orchestrates remote video inference rather than serving the generation models itself. FastAPI and Uvicorn serve an HTML/CSS/vanilla JavaScript UI; workflow.py provides CLI operations for preparation, status and recovery. PyAV, NumPy, Pillow, OpenCV and SciPy support local media processing. The hosted path uses Replicate for Demucs vocal isolation, colored depth and SAM 3 segmentation, and Enhancor for Seedance generation.
The key boundary is between preparation and paid submission: approval is tied to the hashes of the reviewed artifacts, so it applies to a specific set of inputs rather than to the job in general. An optional MediaPipe Face Landmarker runs in a separate Python 3.12 worker environment. Job state is persisted locally; polling determines completion even when the required provider callback is delayed. The agent runbook and skill can guide a user-supplied coding agent through visual QA and CLI operations, but no agent service is bundled.
Key Capabilities & Differentiators
The advanced path normalizes working video to 24 fps and up to 960 pixels, preserves the returned depth colors, and uses SAM 3 per-frame PNG masks to composite the depth-rendered subject over the original background. The mask must be inspected across the full clip for alignment, coverage and spill. Fast face mesh skips depth and SAM entirely; combined mode tracks the original frames and overlays facial geometry onto the depth composite. The mesh modes are experimental and tuned for a single centered speaker.
All modes isolate vocals with Demucs and use Rubber Band to pitch them up three semitones without changing duration. Seedance receives the prepared MP4 with the processed vocals embedded, not a separate audio file. Still-image references use Edit, while video identity references use Omni (multi_reference). Draft and 1080p outputs remain separate, with explicit approval required for the HD step. Final outputs discard generated audio and restore the entire source soundtrack.
Trade-offs & Limitations
Compared with integrating Seedance directly, Genjustsu adds reusable preprocessing, review of intermediate artifacts, a separate HD approval step and consistent source-audio restoration. That is useful when those stages would otherwise be manual, but it brings more setup and more failure points across providers. Compared with an offline editing pipeline, the hosted design removes the need for local generation hardware but introduces paid API calls, network dependencies and third-party handling of media.
Localhost is the app boundary, not the media privacy boundary: Tmpfiles and Catbox both expose media through public URLs, and the configured Catbox fallback is persistent. Recovery resumes collection for saved jobs rather than resubmitting paid requests; ambiguous timeouts require checking provider state before retrying. Keep one collector per job, and add authentication and a durable worker queue before considering public hosting. MIT covers the code and documentation, not the examples, TEIN artwork or third-party services.
Hardware & Deployment Guide
Install Python 3.12+, the Rubber Band CLI and, unless you already have a public HTTPS webhook receiver, cloudflared. bash setup.sh creates .venv and prepares .env; hosted processing requires funded or enabled accounts with ENHANCOR_API_KEY and REPLICATE_API_TOKEN. The optional Hugging Face depth route can use HF_TOKEN. For mesh modes, bash setup-face-mesh.sh creates .venv-face with a Python 3.12 interpreter; the Google Face Landmarker model downloads on first use.
Start with bash start.command, open http://127.0.0.1:8770, and verify readiness with .venv/bin/python doctor.py --require-keys. The launcher starts a callback-only Cloudflare Quick Tunnel unless ENHANCOR_WEBHOOK_URL is configured. The default path needs no local GPU but is not offline; local capacity needs depend on clip size, frame processing and intermediate files. Native Windows users are directed to WSL2. No GitHub release is listed; live validation covered macOS ARM64 with Python 3.14.6, a draft-to-1080p run and a browser download. Other OS installations and the optional Catbox route were not live-tested.
workflow.py provides CLI preparation, status and collection recovery.Solo creators and prototyping teams replacing video subjects with media they are authorized to upload, who want full-clip review, a draft checkpoint and the original soundtrack in the export.
You need offline inference, cannot expose media through public URLs, require validated tracking for complex multi-person scenes, or need a production-ready multi-user service.
Quick Start & Installation
.venv/bin/python doctor.py --require-keys .venv/bin/python test_composite.py .venv/bin/python -m unittest discover -s tests .venv/bin/python workflow.py status LOCAL_JOB_ID .venv/bin/python workflow.py resume LOCAL_JOB_ID .venv/bin/python workflow.py resume LOCAL_JOB_ID --hd
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Genjustsu-Open-Source-Workflow ★ | 1.7k | +36 | Python | MIT | Local video workflow for subject replacement with hosted Seedance generation |
| ComfyUI | 149.9k | +945 | Python | GPL-3.0 | A node-graph engine for building and running multimodal AI workflows locally |
| MoneyPrinterTurbo | 147.5k | +1.7k | Python | MIT | A self-hosted Python pipeline that turns topics into short videos |
| OpenMontage | 85.5k | +1.6k | Python | AGPL-3.0 | Agent-led video production from brief to finished edit |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/sirioberati/Genjustsu-Open-Source-Workflow.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Genjustsu-Open-Source-Workflow
How does a prepared clip reach Seedance, and does the UI need to be public?
multi_reference). Both receive a prepared MP4 with pitched vocals embedded, not a separate audio input. A public HTTPS callback is required for Enhancor, but polling is authoritative for job completion and the UI can stay on localhost.Do I need a GPU, and what should I size the workstation for?
Can I use the MIT-licensed app for commercial client work?
When is a direct Seedance integration a better choice?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy