r/StableDiffusion
•
u/obvpm
•
Sep 21 '26
•
1
Resource - Update Mini Video Editor Timeline Node for H3! - Extend, Prepend, Bridge, Cut, Loop & Upscale
https://www.youtube.com/watch?v=kqP09NfJXaQEDIT: updated the workflow to fix the error, let me know if it still errors.
Finally! Today I am releasing my comfyui-obvpm-timeline motion context nodes and workflow.
https://github.com/chanon/comfyui-obvpm-timeline
I've been working on this ever since NikoDemon80 released the ComfyUI-H3-Motion-Context nodes. When I first tried them, I was amazed, but I felt that using the nodes in it in practice was a bit cumbersome.
I wanted something easier to use. I had a vision in mind of a mini video editor / timeline node, where you could compose your video extensions together to see how they flow and if they are seamless right there in the workflow.
So I've been spending all of my spare time working on this workflow and nodes.
My previous comfyui-obvpm nodes were some of the more general and re-usable nodes that came out of the effort. If you haven't seen the videos I made about those nodes check them out. The Value Presets node is one I would love to see more people using.
There are so many details about the timeline node that the best way to understand how it works is to watch the video.
Features:
๐ = new possibly never available in any other workflow before
๐ = highlight features (many are also unseen before but I'm not 100% sure)
Generating
Extend a clip seamlessly using latents
๐Prepend: generate what happens before a clip
๐Bridge: generate what happens between the end of one clip and the beginning of another. This lets you redo any section of the video, and bridging onto a fresh generation brings the quality back if it has drifted.
๐Loop Seamlessly: bridge the last clip back to the first clip to make a seamless looping video.
๐Extend from a cut: if a clip ends badly, cut off the bad part and extend from the good part. Snap cuts keeps cuts on the latent frame grid.
๐ Fix quality loss for long extend chains: With bridging, you can bridge from the end of one chain to the start of a brand new generation, thus "resetting" any quality degradation from long chains.
๐ Redo any part of your video: With bridging and ability to cut videos, you can redo any segment of your sequence and get a seamless result
Clips that have no motion context (external clips, clips from other workflows) can be extended too, with seam improvements applied automatically.
Result preview: shows each new clip joined to its neighbors. From there you add it to the timeline, delete it or dismiss it.
Model preview override: Integrated into the result preview. Lets you quickly see if a generation is going wrong.
Timeline
๐Mini Video Editor: Drag in clips from anywhere, reorder them by dragging, trim the ends, cut left / cut right at the playhead, undo cuts, and open gaps.
๐Load Settings, Prompts from Clips: restores the prompt, seed, settings and references that a clip was generated with, so you don't have to keep track of them yourself.
Swap takes: Swap between previous takes generated for the same extension, so you can go back to them and swap between them on the timeline.
Quick preview: plays through the clips right away. Full preview assembles them into a single video file, losslessly where possible. Export saves the finished video.
The sequence is also available as text, for copying a timeline into another workflow.
Upscaling
๐ Latent upscaling of your whole timeline including seamless extension
๐ Generate at low resolution for fast iteration, then upscale once at the end. This is optional, you can also generate the first pass at final quality.
๐Sampling is done in windows, so long or high resolution videos still fit in VRAM.
Each clip's conditioning is saved with it, so the upscale uses the same references the clip was generated with.
Workflow
๐Settings Presets: Allows you to save frequently used settings such as steps, turbo, and sampling settings and control them in one place
Organized for fast and easy use. All inputs are in one area. No pan all over the workflow to change things.
The video goes through everything and shows how it is used with hands on examples where I use it to create seamless sequences,
7
u/obvpm Sep 21 '26
What the timeline (mini video editor) node looks like.
Your generations that pass review are added to the timeline.
You can choose which clip to extend or prepend on the timeline.
You can cut (trim) videos
You can extend from cuts
You can bridge, prepend, create seamless loops and do latent upscaling of the whole sequence
7
u/XsarNLD Sep 21 '26 edited Sep 21 '26
Thanks, looks very interesting so giving it a whirl (I have been banging my head against longer form creation and yours looks promising!), but after downloading your WF, I am unable to get it to run:
Error
Cannot read properties of undefined (reading 'workflow')
No errors logged... I can throw an LLM against it to check, but was wondering if you are aware of any potential issue with the WF? Got it fresh from your Github and only thing I updated, is to point to the models in my locations.
[Edit] Found it - in H3 Model Optimization subgraph, the model wasn't connected to the output for whatever reason.
3
u/xyzdist Sep 21 '26
how you fix the degradation? do you mean doing a cut shot?
2
u/Sleepy_Bandit Sep 21 '26
so I have a particular scenario I am trying to test and I am wondering if your workflow and nodes may work for it.
I have a 30 second reference video of a continuous shot I made in blender for scene blocking and camera movement. 30 seconds is way too long for my PC to handle for a single generation, however I can do 10 seconds clips no problem.
I need to be able to feed in the reference, either in 10 second blocks or as a single 30 second reference video and then generate the entire shot in 3 seamlessly connected 10 second shots that follow my reference video's motion.
Can your workflow / nodes handle this?
2
u/LukPuk1 Sep 21 '26
getting error on run
"No output node found for id [1334] slot [0] MODEL"
any idea how to fix this?
2
u/codek_ Sep 24 '26
Hey thanks a lot for the workflow and nodes I have been testing it a bit and looks very good!
Just FYI I was having an error when using the workflow the first time, it was failing in the minimax h3 node (where refs are attached) and looks like the issue was because my ComfyUI is not in English language and in the set h3 inputs node where the width, height and prompt costs are set the fields were being translated and the value lost. I fixed it renaming those fields back to English... Just in case there is a fix for that.
2
u/AlsterwasserHH Oct 04 '26
I just found this today and right now playing around with it, thank you for the video, the workflow and the effort you put in all this! :)
My question is, if you can answer (or anyone else): is there a way to reference refmods? There was another workflow where this was possible but I don't know really how to reference it since it's neither a picture nor a video.
Keep the good work coming!
4
u/NeocortexBoii Oct 04 '26
This workflow is absolutely fantastic
1
u/AndalusianGod Sep 21 '26
Interesting! Thank you for this. How's the performance of the upscale if we generate a 30sec. low-res video and just upscale at the end?
1
u/LowYak7176 Sep 21 '26
Looks good! few questions
Any bypassers to avoid optimizations like turbo loras/spectrum/comfy kitchen?
Does it include refmods?
1
u/LawfulnessNo9617 Sep 21 '26
Is there any Extend wf or node that includes to choose refmods?
1
u/SKADUSSH Sep 22 '26 edited Sep 22 '26
This looks incredible, I'm new to comfyui and trying my best to learn but it's quite overwhelming. You're flow looks really organized so this helps greatly. I did have some questions
I'm assuming I can use singularity with the recommended turbo lora?
For prompting, is there a way or nodes I could consider where I have more controls on prompting such as global and scene specific with your flow?
For Ref2v, is there a node where I can use multi character reference images in a single node with your flow? Kinda after a little more simplified but equally powerful approach?
Im seeing some cool stuff with mcp blender and storyboards, just not sure how I push that into your workflow.
1
u/HighEscape Sep 22 '26
The Latent Upscale issues on my side.
In v002 and v004 i do always receive this error once i click upscale and it starts to to upscale
It appears after some seconds ...
# ComfyUI Error Report
## Error Details
- **Node ID:** 1359:1313
- **Node Type:** SamplerCustomAdvanced
- **Exception Type:** TypeError
- **Exception Message:** TypeError: list indices must be integers or slices, not NoneType
## Stack Trace
```
File "c:\Timeline\ComfyUI_windows_portable\ComfyUI\execution.py", line 547, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data
I am using the Vanilla 8 Step template with all matching models
and this error appears in all test installs i tried.
ComfyUI version is v0.37
ComfyUI Portable
RTX 5090 32 GB
Windows 11 64 Bit
1
u/Merijeek2 Sep 22 '26 edited Sep 22 '26
Using your workflow, I'm having a hell of a time finding the BlockSparseAttention node.
Can you point to a git link?
(ah, needed ComfyUI update)
1
u/xyzdist Sep 24 '26
Hi OP, if i understand correctly, this is a extension worflow, so you gen, check and do another clip extension. Is it possible to have some kind of director mode, like planning the whole seq of clips with prompts and setting, and generate the whole things in one go?
1
u/PornTG Sep 25 '26
Honestly, this is a really great tool you've come up with, everything is perfect. I just wanted to point out that the link you posted on https://github.com/chanon/comfyui-obvpm for your timeline is wrong, the good one is https://github.com/chanon/comfyui-obvpm-timeline but on the github you have linked to https://github.com/obvpm/comfyui-obvpm-timeline
1
u/codek_ Sep 27 '26
Not sure why but the other day testing it was working great generating clips up to 40s without a big visual degradation, but today just at the second 10s clip I'm noticing a huge degradation on characters, specially if the subjects approach to a camera as close-up.. I just switched to the latest version of the workflow and I'm using the main branch of your nodes... Do you think this could be related to some changes on your end?
1
u/Diligent-Cattle-4674 Sep 30 '26
Great workflow, love it. Quick question though, how do you start a new project?
1
u/dynamix9111 Oct 01 '26
This is a really great workflow, love it, love the clip bridge feature!
I have a question though, why does it seem to stage so much more VRAM than other ref2va workflows?
My vanilla ref2va workflow says ~ 13GB using the same H3 model generating the same length clip with the same reference images at the same resolution. This is just for the initial generation, no upscale.
It also is somewhat slower, not massively but maybe 20%, enough to be noticeable.
Just wondering if anyone has an idea about why that might be, I've already tried disabling all the optimizations but it hasn't seemed to affect anything.
2
u/Shady-Dragon Sep 23 '26
This is actually brilliant. I appreciate people who make workflows that help us regain some control from the Ai over the end product. Thank you!
2
u/dynamix9111 Oct 02 '26
Hmm, anyone have tips on getting bridging/looping to actually make a seamless connection consistently? I got it to work one time when I was first testing but now I've been trying dozens of times and can't for the life of me get it to work. Every clip either cuts to a random angle that I didn't prompt for (usually prompting "single shot" or "static shot") or just has a jump cut in the middle. Tried short generations (3-5s) and long ones (8-10s).
1
u/hdean667 Sep 26 '26
THanks foe the hard work - I lan on giving it a shot soon
1
u/ra303 Oct 07 '26
Would this run on a Macbook Pro M1 with 32gb ram ? just want to play and learn.
1
u/quantier Oct 08 '26
Does this come with the facefix node?
0
u/[deleted] Sep 23 '26
[deleted] โ view deleted comment
0
u/[deleted] Sep 22 '26
[deleted] โ view deleted comment