[PR #3806] [MERGED] Add local ComfyUI video generation #6112

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

📋 Pull Request Information

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

Base: staging ← Head: agent/3804-comfyui-video


📝 Commits (4)

  • f7b1f1c Start ComfyUI video generation source
  • 371cd16 Add local ComfyUI video generation
  • e3e3f97 Address ComfyUI video review feedback
  • 4cd0928 Merge branch 'staging' into agent/3804-comfyui-video

📊 Changes

18 files changed (+430 additions, -60 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 README.md (+1 -1)
📝 docs/CONFIGURATION.md (+2 -2)
📝 docs/FAQ.md (+1 -1)
📝 docs/media/comfyui.md (+25 -4)
📝 docs/media/scene-video.md (+10 -7)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+102 -31)
📝 packages/server/src/routes/connections.routes.ts (+15 -4)
📝 packages/server/src/routes/gallery.routes.ts (+3 -1)
📝 packages/server/src/routes/game.routes.ts (+3 -0)
📝 packages/server/src/routes/sprites.routes.ts (+13 -3)
📝 packages/server/src/services/generation/media-connection-fallback.ts (+1 -0)
📝 packages/server/src/services/video/game-video-runtime.ts (+17 -4)
📝 packages/server/src/services/video/video-generation.ts (+202 -0)
📝 packages/shared/src/constants/model-lists.ts (+8 -0)
📝 packages/shared/src/constants/video-generation-defaults.ts (+16 -0)
📝 packages/shared/src/types/connection.ts (+1 -1)
📝 packages/shared/src/types/video-generation-defaults.ts (+9 -1)

📄 Description

Linked issue

Closes #3804

Why this change

  • Video generation currently requires a cloud service even though Marinara already supports local ComfyUI image workflows.
  • A ComfyUI video connection lets Game mode scene videos run locally and reuse users' API-format workflows.

What changed

  • Added ComfyUI as a local video source using the existing connection and workflow fields.
  • Added API-workflow placeholder substitution, optional reference-image upload, queue/history polling, MP4 download validation, and existing video deadlines.
  • Threaded ComfyUI workflows through Game, Gallery, Storyboard, Sprite, fallback, and connection-test paths.
  • Added ComfyUI video defaults and connection-editor controls while leaving model selection workflow-defined.
  • Updated the README, configuration, FAQ, troubleshooting, and media documentation.

Automated validation completed

  • pnpm check
  • git diff --check
  • Mock ComfyUI protocol integration covering reference upload, placeholder substitution, queueing, polling, MP4 retrieval, and missing-workflow rejection
  • CodeRabbit review completed; all three findings were applied, and the incremental re-review reported no actionable comments

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

Manual verification notes

  • Configure a local ComfyUI video connection with an API-format workflow.
  • Generate text-to-video and image-to-video outputs, then verify polling, download, timeout, and error behavior.
  • Verify the source appears in connection selection and persists through export/import.

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)

UI evidence (if applicable)

  • Add connection/settings evidence after manual browser verification.

🔄 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/3806 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/19/2026 **Status:** ✅ Merged **Merged:** 7/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/3804-comfyui-video` --- ### 📝 Commits (4) - [`f7b1f1c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f7b1f1ce934543f1ae2614e8509189bf00d45718) Start ComfyUI video generation source - [`371cd16`](https://github.com/Pasta-Devs/Marinara-Engine/commit/371cd161a30ab383cce0500b8ae119a659b06c77) Add local ComfyUI video generation - [`e3e3f97`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e3e3f975f83f1f01de78ff48b0ffb0bad340f873) Address ComfyUI video review feedback - [`4cd0928`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4cd09284f7a9b2216c518f511ad42e2d4cf9237b) Merge branch 'staging' into agent/3804-comfyui-video ### 📊 Changes **18 files changed** (+430 additions, -60 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `README.md` (+1 -1) 📝 `docs/CONFIGURATION.md` (+2 -2) 📝 `docs/FAQ.md` (+1 -1) 📝 `docs/media/comfyui.md` (+25 -4) 📝 `docs/media/scene-video.md` (+10 -7) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+102 -31) 📝 `packages/server/src/routes/connections.routes.ts` (+15 -4) 📝 `packages/server/src/routes/gallery.routes.ts` (+3 -1) 📝 `packages/server/src/routes/game.routes.ts` (+3 -0) 📝 `packages/server/src/routes/sprites.routes.ts` (+13 -3) 📝 `packages/server/src/services/generation/media-connection-fallback.ts` (+1 -0) 📝 `packages/server/src/services/video/game-video-runtime.ts` (+17 -4) 📝 `packages/server/src/services/video/video-generation.ts` (+202 -0) 📝 `packages/shared/src/constants/model-lists.ts` (+8 -0) 📝 `packages/shared/src/constants/video-generation-defaults.ts` (+16 -0) 📝 `packages/shared/src/types/connection.ts` (+1 -1) 📝 `packages/shared/src/types/video-generation-defaults.ts` (+9 -1) </details> ### 📄 Description ## Linked issue Closes #3804 ## Why this change - Video generation currently requires a cloud service even though Marinara already supports local ComfyUI image workflows. - A ComfyUI video connection lets Game mode scene videos run locally and reuse users' API-format workflows. ## What changed - Added ComfyUI as a local video source using the existing connection and workflow fields. - Added API-workflow placeholder substitution, optional reference-image upload, queue/history polling, MP4 download validation, and existing video deadlines. - Threaded ComfyUI workflows through Game, Gallery, Storyboard, Sprite, fallback, and connection-test paths. - Added ComfyUI video defaults and connection-editor controls while leaving model selection workflow-defined. - Updated the README, configuration, FAQ, troubleshooting, and media documentation. ## Automated validation completed - `pnpm check` - `git diff --check` - Mock ComfyUI protocol integration covering reference upload, placeholder substitution, queueing, polling, MP4 retrieval, and missing-workflow rejection - CodeRabbit review completed; all three findings were applied, and the incremental re-review reported no actionable comments ## 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` ### Manual verification notes - Configure a local ComfyUI video connection with an API-format workflow. - Generate text-to-video and image-to-video outputs, then verify polling, download, timeout, and error behavior. - Verify the source appears in connection selection and persists through export/import. ## 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) ## UI evidence (if applicable) - Add connection/settings evidence after manual browser verification. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:07:12 +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#6112
No description provided.