Skip to content

open-genjutsu

Local web app that swaps the character in a short video using hosted AI models

Permissive (OSI) · MIT AI-native

Listed by , founder & editor

47

Health

Slowing

Overview

Stars

1,178

Last commit

20 days ago

Nov 2026

Repository age

3 years

since May 2023

Latest version

–

Contributors

–

1 active in 90 days

Releases

0

last 12 months

Language

Python

Genjutsu is a local-first workspace for replacing the performer in a short video. You supply a 4 to 15 second clip and up to eight character images. You then choose motion transfer or object swap, set output ratio and duration, and optionally add a creative brief.

The app prepares references in steps. Depth Anything extracts a depth video, Gemini Video Vision analyzes motion and picks environment frames, and other image and language models build character sheets and a prompt. It then sends these to Seedance 2.5 or, in the Lite option, Wan 3.0 through the Muapi API. The result is downloaded as an MP4 with the source soundtrack restored locally.

It is a Python FastAPI app that you run on your machine, with FFmpeg required. Rendering happens in the hosted service, so you need an API key and credits. Source media stays on your device. It is MIT licensed and suits people looking for a self-run alternative to AI video tools.

Who it's for

Creators making short character-swap clips

One workflow handles depth, environment and character references before rendering.

Skip if: You want fully offline generation, since rendering uses a paid API.

Developers exploring AI video pipelines

The code is MIT licensed and shows a complete FastAPI and FFmpeg flow.

Skip if: You need a stable, frequently released product, as there are no recent releases.

The problem it solves

Replacing a person in a video with another character normally takes several tools and manual prep. Genjutsu chains those steps into one local app and returns a finished MP4.

Strengths

  • Runs locally; source media is kept on your device
  • Two render options: Seedance 2.5 or Wan 3.0 Lite
  • Restores the original soundtrack with FFmpeg
  • MIT license
  • Accepts MP4 and MOV sources and JPEG, PNG or WebP images

Trade-offs

  • Needs an API key and paid generation credits
  • Source clips limited to 4 to 15 seconds and 50 MB
  • Wan 3.0 may not match the source performance frame for frame
  • No releases in the last year and maintenance is slowing

Self-host open-genjutsu

Self-hostable
Yes

Quick start

git clone https://github.com/Anil-matcha/open-genjutsu.git
cd open-genjutsu
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python -m uvicorn app:app --host 127.0.0.1 --port 8770

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Does it run offline?

No. The app runs locally, but generation goes through Muapi and needs an API key and credits.

What do I need installed?

Python 3.10 or newer, plus FFmpeg and ffprobe on your PATH.

What file types are accepted?

MP4 or MOV for video, and JPEG, PNG or WebP for character images.

How is it licensed?

MIT.

Similar tools in AI image and video generators

agnes-video-generator

AI image and video generators

Python tool that turns a text idea into a narrated, subtitled multi-scene MP4 video

756 269 today Thriving MIT

app.enfugue.ai

AI image and video generators

Self-hosted web app for generating AI images and video on your own GPU

754 75 2 years ago Dormant GPL-3.0

Vibe-Workflow

AI image and video generators

Node-based editor for building AI image and video pipelines you can self-host

646 167 2 months ago Dormant MIT

kokon

AI image and video generators

Local AI photo editor where you brush an area and describe the change

474 55 12 days ago Thriving AGPL-3.0

Replaces Nano Banana

remiqora

AI image and video generators

Local AI music studio with stem splitting and a multitrack editor for GPU owners

240 34 yesterday Active MIT

Replaces Suno

HOT-Step-CPP

AI image and video generators

Desktop app for generating songs locally on your GPU, with in-app adapter training

202 36 today Thriving MIT

Replaces Suno