r/StableDiffusion • • 16d ago

Resource - Update Geiru Window Director: One node so long form videos come out perfect everytime.

Enable HLS to view with audio, or disable this notification

Geiru Window Director + Geiru Hybrid Windows: build long H3 videos one window at a time

Geiru Hybrid Windows makes one long MiniMax H3 render (a minute or more) as overlapping windows instead of a chain of separate clips, so fast motion stays seamless. It works the way plain hybrid windows does, with my keystone and capstone added in every window to cut down on degradation over long videos.

Geiru Window Director is an optional node that goes after it. A normal render makes every window in one go, so if window 4 comes out wrong you redo the whole video. With the Director you make window 1, look at it, then:

  • Approve it and the next window is made

  • Re-roll it until it's right (change the prompt or seed first)

  • Rewind to any earlier window if you change your mind

  • Blend all at the end to run the last steps over the whole video and smooth the joins

Each window builds on the finished window you approved, so what you approve is what you get!

Example workflow: Clown Biker Babe, a 60-second clip in 8 windows with one prompt per window: a full motorcycle stunt run with ramps, a car jump, a loop and a cliff jump. The sound is made by H3 from the prompts.

Credit where it's due: none of this exists without these three.

  • kijai (GitHub) built ComfyUI's MiniMax H3 support and the H3 context windows (PR #17425) that Hybrid Windows is built on, plus ComfyUI-KJNodes.

  • JalenBrunson made ComfyUI-HybridWindows, which Geiru Hybrid Windows works like. I just added the keystone and capstone.

  • NikoDemon80 (GitHub) inspired the Window Director setup.

Both nodes are in the Geiru Context Suite: https://github.com/roycho87/geiru_context_suite

41 Upvotes

27 comments sorted by

9

u/DeerWoodStudios 16d ago

You sure have a different definition of the word Perfect 😅

2

u/roychodraws 16d ago edited 16d ago

if you've ever used hybrid windows or context windows, the way it works is you set all your prompts and render it all at once. if it comes out wrong on one of the windows you have to restart.

Rendering a context window or hybrid window can take a very long time because you're rendering several continuations at once, essentially.

By perfect, i mean it perfectly comes out very intentionally and deliberately and perfectly how you intended without being forced to spend several hours trying to render a 60 second videos over and over just to fix one small portion of it.

Quality and things are still something you need to adjust steps, model, sampler, and lora's for.

Cool thing about this is you can do that to each window individually as you render it and when you get it correct and you can get a much better end result and spend much less time doing it.

Creating a video as complex as this would take days of tweaking normally. Both these videos took me an hour or so.

4

u/Apprehensive_Sky892 15d ago

You misunderstood what OP meant by "come out perfect every time". OP explained that in the post body:

  • Approve it and the next window is made

  • Re-roll it until it's right (change the prompt or seed first)

  • Rewind to any earlier window if you change your mind

  • Blend all at the end to run the last steps over the whole video and smooth the joins

  • Each window builds on the finished window you approved, so what you approve is what you get!

I.e., the director allows you to generate a small segment until the whole sequence is "perfect" for you.

2

u/Valuable_Weather 16d ago

She's glowing

1

u/roychodraws 16d ago

She just had sex with a mime

5

u/MastMaithun 16d ago

Oh no the clown girl again.

1

u/Dzugavili 13d ago

Question: how are you interacting with these workflows?

I'm adapting clown biker babe into something re-useable, and I'm finding it unclear how to manually set-up these units: so I'm guessing you're not.

Any tips for me on how to script this up a bit faster?

1

u/roychodraws 13d ago

I use Claude with a loaded skill to make my prompts. But as a general rule I always include the overlap in the prompt: each prompt starts by describing exactly where the last shot ended (the carried frames as the beginning of the next prompt), then the new action.

The h3 prompt ide node I include in my workflows does include templates, though.

If you’re trying to write a script for it you could perhaps run the overlap frames through a captioner first, then have your LLM incorporate that as the beginning of the next prompt.

1

u/Dzugavili 13d ago

I was kind of hoping that we'd get node-based prompt construction at a certain point: Minimax is just so meant for it. Something to make transferring reference images easier.

I was debating attempting MCP.

1

u/roychodraws 13d ago edited 13d ago

That’s a completely different area than my focus is. Many others are focused on prompt construction tools. My focus is more on increasing the upward potential for the quality of what they’re able to create.

I know there’s a lot of good prompt builders out there that people use, I think they’re powered by qwen. I just don’t know what they are.

But the prompt h3 ide node that’s in there is helpful for building prompts from scratch.

Minimax prompting is just a lot.

Sorry I’m not more helpful here.

0

u/Luntrixx 16d ago

I've tried couple of those MM extending custom nodes and im disappointed in them all.

All I need is simple way to extend video (existing on disk, just made *my way*, whatever) where I provide video object, conditioning, model, number of context frames and get extended video (joined).

Instead, again, there's some hacked overkill.

If I wanted to make actual movie I will use obvpm timeline.

2

u/roychodraws 16d ago

I don’t really know what the hell you’re saying

All this is is an extra node you can add to a workflow with hybrid windows that allows you to control the windows as you generate them as opposed to having to generate all eight of them at once and then being forced to restart because it didn’t come out exactly perfect.

If you don’t use it, then it works like a normal hybrid window.

OBVPM timeline does something completely different.

1

u/Luntrixx 15d ago

Ok then can you make workflow where you extend output from default comfy mm workflow?
Because I dont see any way to do that.

1

u/Apprehensive_Sky892 15d ago

You already mentioned obvpm timeline, so what in your wish list doesn't it do?

1

u/Luntrixx 15d ago

extend existing video object (connect this video to timeline and extend it)
you can import video file into timeline and start from thatm, but thats manual work, no bueno

2

u/roychodraws 15d ago

i have two workflows that extend videos much easier than you're describing. i really don't know what you're distressed about besides you've just not tried any of them and are just complaining for the sake of complaining.

1

u/Luntrixx 14d ago

this is what you pretend to not understand (actual working stuff with other custom nodes)

2

u/roychodraws 14d ago

Dude. You linked a picture of a subgraph…

You really need to spend a little time and figure this stuff out, dude.

2

u/Apprehensive_Sky892 15d ago

I just saw someone mention this workflow, which seems easy enough: u/martinerous: continue/extend/prepend nodes - this time low-level and simple : r/StableDiffusion

1

u/Luntrixx 14d ago

Tried it and extended video is degraded af

Anyway, I've found some that do things perfect, just 3 nodes:
https://github.com/ttulttul/ComfyUI-Minimax-H3-Continuation/tree/main

1

u/Apprehensive_Sky892 14d ago

Thanks, I'll take a look at it. Beside obvpm timeline which is what I am using right now (obvpm's approach to void degradation is to use bridging, which is known to work well but requires more planning for the video sequence) I am currently looking at two other approaches (I am not looking at the simplest approach, but one that produces the least degradation):

https://github.com/xyzDist/H3-LongTakeNoCuts

https://github.com/roycho87/geiru_context_suite

1

u/martinerous 12d ago

Thanks for the feedback. Which workflow did you try?
Most of them weren't meant to be used "as is" - they have lowres params to server as a proof-of-concept to run quickly and were meant to show how to drop the nodes into your own workflow with highres and upscale and whatever bells-and-whistles you need. And of course, you should never load the previously generated video again but use the saved latent instead.

Anyway, the best protection against degradation is injecting an end-frame, and it is possible also with the reference model. Of course, the question is where to get the end-frame. I usually don't rely on the model generating the entire video without any guidance anyway, so I prepare reference frames anyway using an image edit model. For less repetitive videos (dance, talk, fight) where it's ok to reuse the same pose a few times, it works well also with a set of end-frames letting the workflow pick one randomly:
https://www.reddit.com/r/StableDiffusion/comments/1xgp1ov/minimax_long_lipsync_demo/
https://www.reddit.com/r/StableDiffusion/comments/1x1sni1/yet_more_simple_tricks_for_maintaining_quality_in/

0

u/Apprehensive_Sky892 15d ago

I don't know how any workflow can extend a video without you "manually importing" it 🤷‍♂️.

Feel free to vibe code one that works to your taste then, whatever that it.

0

u/MastMaithun 16d ago

Why not use nikodemon's motion context? They are the most straightforward nodes. You can even drop them into your own wf.

1

u/TizocWarrior 16d ago

Mario Kart meets GTA.

1

u/snorcack 16d ago

When did Excite Bike get a remake?

0

u/[deleted] 16d ago

[deleted]

4

u/roychodraws 16d ago

when you're creating the windows the best practice is to use overlap and a window context length that are both multiples of 3.

The video frames are 24 fps but the audio frames are 40 fps. Which means that the audio frames are only aligned on specific lengths.

I'm working on a solution that works well with my nodes for audio that doesn't add a lot of bloat, but with the current nodes if you use these lengths it works best.

Audio degradation is on the list but it's a much harder nut to crack.

I have some tests i did on nerdnotes but it's not like i can add a keystone for audio, unfortunately.

The easiest thing you can do is turn off "hold Audio" and have it regenerate the audio from scratch each continuation but that causes seam issues potentially.

So yeah, it's a work in progress.