[PR #4066] [MERGED] Simplify LTX storyboard image-to-video prompting #6225

Closed
opened 2026-10-23 04:08:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4066
Author: @thetopham
Created: 7/25/2026
Status: ✅ Merged
Merged: 7/25/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/ltx-simple-image-to-video


📝 Commits (7)

  • 016c1f5 feat: simplify LTX storyboard image-to-video flow
  • ca7b069 Merge branch 'staging' into fix/ltx-simple-image-to-video
  • 07c4d10 Merge remote-tracking branch 'origin/staging' into fix/ltx-simple-image-to-video
  • b6f493e feat: add simple LTX storyboard preset
  • 23ca204 Merge remote-tracking branch 'thetopham/fix/ltx-simple-image-to-video' into fix/ltx-simple-image-to-video
  • 06d607a docs: add LTX 2.3 Story Mode guide
  • b8d4c40 docs: align LTX guide with tested Krea setup

📊 Changes

11 files changed (+611 additions, -338 deletions)

View changed files

📝 README.md (+1 -0)
📝 docs/development/ltx-director-storyboard.md (+55 -160)
➕ docs/game/ltx-2-3-storyboards.md (+308 -0)
📝 docs/game/storyboard.md (+7 -0)
📝 docs/media/comfyui.md (+1 -0)
📝 docs/media/scene-video.md (+1 -0)
📝 packages/server/src/routes/docs.routes.ts (+1 -0)
📝 packages/server/src/routes/game.routes.ts (+36 -74)
📝 packages/shared/src/constants/game-storyboard-prompts.ts (+135 -19)
📝 packages/shared/src/constants/game-video-prompts.ts (+2 -3)
📝 scripts/regressions/prompt.regression.ts (+64 -82)

📄 Description

Linked issue

Closes #4065

Why this change

  • Short LTX Storyboard clips were being split into several Prompt Relay segments even when one clear action and camera setup animated more reliably.
  • The Storyboard route depended on exact built-in template IDs to construct a special LTX payload, so copying or customizing a prompt could silently change behavior.
  • Planner cancellation and fallback could continue into generic storyboard media, allowing broad raw narration to become a video prompt.

What changed

  • Reworked the opt-in LTX Storyboard planner to produce one complete duration-aware image-to-video prompt per keyframe while keeping the first-frame imagePrompt separate.
  • Kept 1-6 second clips focused on one primary action and one camera setup, with additional connected phases permitted only for durations that can display them clearly.
  • Changed the LTX Director Video preset to the universal ${narrationSummary} pass-through.
  • Removed the exact-template-ID Storyboard bypass, local-segment sanitizer, and LTX-specific prompt payload from the route.
  • Propagated planner cancellation, rejected empty planner output, and skipped fallback video generation rather than animating raw narration.
  • Preserved compatibility for older ComfyUI workflows that still use %global_prompt%, %local_prompts%, and %segment_lengths%; the recommended workflow uses %prompt% with empty local prompts and segment lengths.
  • Replaced the earlier temporal-segmentation development note with the simplified image-to-video contract and expanded prompt regression coverage.

Manual Gallery-to-Animate prompt planning is intentionally outside this PR and remains a follow-up. Existing Gallery animation behavior is unchanged.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated validation completed during development:

  • pnpm regression:prompt
  • pnpm lint
  • pnpm build
  • git diff --check
  • Restarted marinara.service; /api/health reported 2.3.5+016c1f5bf61c
  • Fetched the exact built client entry bundle assets/index-DpQbTd7P.js with HTTP 200

pnpm check remains unchecked because the repository's Impeccable context loader stopped that aggregate command with Impeccable context loader did not return valid JSON. Direct lint, regression, and build commands completed successfully.

Manual verification notes

  • Manually configure the ComfyUI Director node with global_prompt: "%prompt%", local_prompts: "", and segment_lengths: "" while retaining the reference-image and duration placeholders.
  • Manually select LTX Director Storyboard, Storyboard First Frame, and LTX Director Video for a Game chat.
  • Manually generate a six-second multi-keyframe Storyboard in debug mode and confirm each queued global prompt is the planner's compact duration-aware narrationBeat.
  • Manually confirm each clip begins from its generated reference frame and performs one readable action without unrelated morphing.
  • Manually cancel one Storyboard planning request and confirm no fallback video is queued.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

Updated docs/development/ltx-director-storyboard.md. No version or release metadata changes are included.

UI evidence (if applicable)

No UI changes.

Summary by CodeRabbit

  • New Features

    • Updated LTX Director Storyboard generation to create one first-frame illustration and one complete, duration-aware image-to-video prompt per shot.
    • Improved storyboard validation and fallback handling; video rendering is skipped when no usable plan is produced.
    • Added support for the updated LTX 2.3 image-to-video workflow.
  • Bug Fixes

    • Improved cancellation and failure handling during storyboard generation.
    • Removed legacy multi-segment prompt behavior and ensured prompts pass through the standard video-generation flow.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4066 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/25/2026 **Status:** ✅ Merged **Merged:** 7/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/ltx-simple-image-to-video` --- ### 📝 Commits (7) - [`016c1f5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/016c1f5bf61c42486cf7dde4919ba108a046cba3) feat: simplify LTX storyboard image-to-video flow - [`ca7b069`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ca7b069f8d63930c5df4fdef467caf8d35fb41ec) Merge branch 'staging' into fix/ltx-simple-image-to-video - [`07c4d10`](https://github.com/Pasta-Devs/Marinara-Engine/commit/07c4d10673f01c7f88936f92b92ef903e226034d) Merge remote-tracking branch 'origin/staging' into fix/ltx-simple-image-to-video - [`b6f493e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b6f493ef4aadbd045ac88b103a6588bfe23b447b) feat: add simple LTX storyboard preset - [`23ca204`](https://github.com/Pasta-Devs/Marinara-Engine/commit/23ca204f9eb4e89f31e27c76182d56221042d6df) Merge remote-tracking branch 'thetopham/fix/ltx-simple-image-to-video' into fix/ltx-simple-image-to-video - [`06d607a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/06d607abac844031bfe1a216d6076e86cb910e47) docs: add LTX 2.3 Story Mode guide - [`b8d4c40`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b8d4c40cc1f95341148707cfe7f2fbf435b10aa0) docs: align LTX guide with tested Krea setup ### 📊 Changes **11 files changed** (+611 additions, -338 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `docs/development/ltx-director-storyboard.md` (+55 -160) ➕ `docs/game/ltx-2-3-storyboards.md` (+308 -0) 📝 `docs/game/storyboard.md` (+7 -0) 📝 `docs/media/comfyui.md` (+1 -0) 📝 `docs/media/scene-video.md` (+1 -0) 📝 `packages/server/src/routes/docs.routes.ts` (+1 -0) 📝 `packages/server/src/routes/game.routes.ts` (+36 -74) 📝 `packages/shared/src/constants/game-storyboard-prompts.ts` (+135 -19) 📝 `packages/shared/src/constants/game-video-prompts.ts` (+2 -3) 📝 `scripts/regressions/prompt.regression.ts` (+64 -82) </details> ### 📄 Description ## Linked issue Closes #4065 ## Why this change - Short LTX Storyboard clips were being split into several Prompt Relay segments even when one clear action and camera setup animated more reliably. - The Storyboard route depended on exact built-in template IDs to construct a special LTX payload, so copying or customizing a prompt could silently change behavior. - Planner cancellation and fallback could continue into generic storyboard media, allowing broad raw narration to become a video prompt. ## What changed - Reworked the opt-in LTX Storyboard planner to produce one complete duration-aware image-to-video prompt per keyframe while keeping the first-frame `imagePrompt` separate. - Kept 1-6 second clips focused on one primary action and one camera setup, with additional connected phases permitted only for durations that can display them clearly. - Changed the LTX Director Video preset to the universal `${narrationSummary}` pass-through. - Removed the exact-template-ID Storyboard bypass, local-segment sanitizer, and LTX-specific prompt payload from the route. - Propagated planner cancellation, rejected empty planner output, and skipped fallback video generation rather than animating raw narration. - Preserved compatibility for older ComfyUI workflows that still use `%global_prompt%`, `%local_prompts%`, and `%segment_lengths%`; the recommended workflow uses `%prompt%` with empty local prompts and segment lengths. - Replaced the earlier temporal-segmentation development note with the simplified image-to-video contract and expanded prompt regression coverage. Manual Gallery-to-Animate prompt planning is intentionally outside this PR and remains a follow-up. Existing Gallery animation behavior is unchanged. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated validation completed during development: - `pnpm regression:prompt` - `pnpm lint` - `pnpm build` - `git diff --check` - Restarted `marinara.service`; `/api/health` reported `2.3.5+016c1f5bf61c` - Fetched the exact built client entry bundle `assets/index-DpQbTd7P.js` with HTTP 200 `pnpm check` remains unchecked because the repository's Impeccable context loader stopped that aggregate command with `Impeccable context loader did not return valid JSON.` Direct lint, regression, and build commands completed successfully. ### Manual verification notes - Manually configure the ComfyUI Director node with `global_prompt: "%prompt%"`, `local_prompts: ""`, and `segment_lengths: ""` while retaining the reference-image and duration placeholders. - Manually select LTX Director Storyboard, Storyboard First Frame, and LTX Director Video for a Game chat. - Manually generate a six-second multi-keyframe Storyboard in debug mode and confirm each queued global prompt is the planner's compact duration-aware `narrationBeat`. - Manually confirm each clip begins from its generated reference frame and performs one readable action without unrelated morphing. - Manually cancel one Storyboard planning request and confirm no fallback video is queued. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) Updated `docs/development/ltx-director-storyboard.md`. No version or release metadata changes are included. ## UI evidence (if applicable) No UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated LTX Director Storyboard generation to create one first-frame illustration and one complete, duration-aware image-to-video prompt per shot. * Improved storyboard validation and fallback handling; video rendering is skipped when no usable plan is produced. * Added support for the updated LTX 2.3 image-to-video workflow. * **Bug Fixes** * Improved cancellation and failure handling during storyboard generation. * Removed legacy multi-segment prompt behavior and ensured prompts pass through the standard video-generation flow. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:08:20 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6225
No description provided.