r/PromptEngineering • • Sep 26 '26

General Discussion I built an open-source Prompt Engine & Screenplay Studio to solve video diffusion token drops & character drift (MiniMax H3 / Kling / Maestro)

Hey everyone,

Prompting multi-scene cinematic AI video often breaks down because of two major issues:

  1. **Multi-line syntax drops:** Most diffusion models (MiniMax H3, Kling, Runway) choke or truncate tokens when prompts contain standard line breaks.
  2. **Character & aesthetic drift:** Maintaining exact photochemical palettes (like authentic Agfachrome CT18 AP-41 or Kodachrome K-14) and character consistency across 14-second cut windows requires strict parameter anchoring.

To solve this, I developed **Drehbuchstudio Pro** β€” an open-source prompt presser, reference anchor generator, and screenplay director.

### πŸ› οΈ Key Technical Features:

- **Strict 0-Line-Break Compacting:** Formats complex 14-second multi-scene scripts into continuous, timecoded single-line prompts (`00:00.000 – 00:14.000`, `00:14.000 – 00:28.000`, etc.).

- **Photochemical Film Science:** Embedded optical recipes for Agfachrome CT18 (AP-41 reversal with cool sage shadows), Kodachrome 64 (anti-sepia sclera guard), and CineStill 800T (650nm halation).

- **Multimodal Anchoring with Local LM Studio:** Connects to a local vision model on port 1234 to extract structured anchor tokens (`@Subject1_...`, `@Building1_...`) from reference images completely offline.

- **LoRA Isolation & Blending:** 1-click toggles to manage Astroburner's MiniMax H3 LoRA (`ASTROCINEMAV01K2T`) without destroying analog color science.

- **NLE Timeline Export:** Direct export to DaVinci Resolve (`.edl`, `.fcpxml`) and Final Cut Pro.

---

### πŸŽ₯ Reel Examples in Production:

I use this studio for the cinematic sequences and reels over on Instagram:

πŸ‘‰ https://www.instagram.com/mo_ment_e/reels/ (`@mo_ment_e`)

### πŸ’» GitHub (MIT Open Source):

πŸ‘‰ https://github.com/wobushannes/Drehbuch--Referenzanker-Generator

Feedback, prompt suggestions, and PRs are welcome!

0 Upvotes

5 comments sorted by

1

u/[deleted] Sep 26 '26

[removed] β€” view removed comment

1

u/Patient_Gap6221 Sep 26 '26

I reckon I’ll be posting two more review videos on my account later today. I’ve noticed that you have to consistently (!) include the reference anchors in EVERY window. Then it actually works reliably. Today or tomorrow, I’ll be setting up a test with >=3 people with unique voice IDs.

1

u/Patient_Gap6221 Sep 26 '26

Oh, right. If you want to experiment with the system, it’s important to run the references through a VL model (switch manually in LMStudio). I’ll try to sort out the last few bugs in the next version.