From Prompt to MP4: Every Stage in a Minimal Graph

From Prompt to MP4: Every Stage in a Minimal Graph

Published on

0

views

This article breaks down a minimal ComfyUI graph into five essential stages for Wan2.2 video generation: model loading, prompt encoding, sampling, VAE decode, and video assembly. By stripping away non-essential helper nodes and tracking every variable, the author provides a practical walkthrough to isolate failure modes and ensure fully reproducible results on consumer hardware.

Most Wan2.2 workflow screenshots are dense.
Dozens of nodes, overlapping wires, group boxes that hide more than they reveal. When something breaks, the density becomes the enemy.

I rebuilt my reference graph from zero until only the stages that are strictly required remained. Then I traced a single prompt all the way to a finished MP4, naming every stage and what can go wrong inside it. This post is that walkthrough. It is the map I now use whenever a new graph appears on my screen or whenever my own baseline starts behaving differently.

If you can’t reproduce it, it’s not a workflow. Understanding the path from prompt to file is the minimum requirement.

Documentary photo of a secondhand RTX 3090 graphics card on a workbench with repair tools under a desk lamp.

The Five Stages That Actually Matter

Every practical Wan2.2 video graph I have used, no matter how decorated, still performs the same five jobs. I read and build graphs by locating these stages in order.

  1. Model Loading

  2. Prompt Encoding

  3. Sampling / Generation

  4. VAE Decode

  5. Video Assembly and Save

Everything else is either a helper, an enhancer, or a distraction. Until these five are clear and stable, the rest of the graph is optional.

Stage 1: Model Loading

This is where the diffusion model, text encoder(s), and VAE enter the system.

What must happen

  • Correct files are resolved

  • Precision is known (fp16, quantized, etc.)

  • No silent fallback to a different file with a similar name

Common failure modes I have hit

  • Loader picks an older or quantized file because of name collision

  • Custom node version skew causes the loader to accept the file but hand broken tensors downstream

  • VAE is loaded implicitly and differs from the one recorded in the notes

What I record
Exact filenames, precision, and, when practical, hashes. If the loader node can display the resolved path, I keep that visible.

Stage 2: Prompt Encoding

Text becomes conditioning.

What must happen

  • Positive prompt is encoded

  • Negative prompt is encoded

  • The conditioning that actually reaches the sampler is known

Common failure modes

  • Hidden prompt-template or expansion nodes alter the text without obvious UI feedback

  • Multiple conditioning paths exist and the wrong one is wired to the sampler

  • Weighting or scheduling nodes are present but only partially active

What I do
For baseline work I keep a single positive and single negative path. Any clever prompt processing is added later and tested as its own variable.

Stage 3: Sampling / Generation

This is the core diffusion loop that produces the latent video.

Critical controls I always surface

  • Seed

  • Steps

  • Sampler name

  • Scheduler

  • CFG scale

  • Frame count

  • Width × height

Common failure modes

  • Frame count hidden inside a helper node

  • Seed overridden by a randomize toggle or external seed node

  • Steps pushed high enough to improve stills while damaging temporal consistency (already documented in a previous failure report)

What I record
Every one of the controls above, every run. If a setting is not written down, it did not happen.

Stage 4: VAE Decode

Latents become pixels.

Why this stage gets its own section
I have lost full evenings to problems that lived entirely here. The same latents decoded with different VAE files or different decode options can produce soft, drifting, or color-shifted video even when the sampling stage was clean.

Common failure modes

  • Wrong VAE file resolved

  • Decode settings that allocate large temporary buffers and push a 24 GB card over the edge

  • Progressive softening that only appears across longer sequences

What I do
Keep the VAE loader explicit. When quality drops, I re-decode the same latents with a second known VAE before I touch the sampler again.

Stage 5: Video Assembly and Save

Frames become a playable file.

What must happen

  • Correct frame rate

  • Frames written in order

  • Output path and format known

What I deliberately keep out of the minimal graph
Upscalers, frame interpolation, watermarks, social-media crops, automatic ffmpeg filters. Those belong in a post-process graph. The minimal path’s job is to hand me a clean, reproducible clip I can judge and measure.

The Minimal Path in Practice

When I open any new Wan2.2 workflow I do not start by admiring the organization. I do this:

  1. Find the model loaders and write down the files.

  2. Trace the prompt text to the sampler and write down the final positive and negative strings.

  3. Click the sampler node and record seed, steps, sampler, scheduler, CFG, frame count, resolution.

  4. Identify the VAE and the decode settings.

  5. Find the save node and note frame rate and any hidden processing.

Only after that map is clear do I allow myself to look at enhancement nodes or convenience helpers.

Why Minimal Graphs Are Easier to Trust

A minimal graph has fewer places for silent behavior to hide. When the output changes, the list of possible causes is short. When I add a node later, I can attribute the change to that node instead of guessing which of thirty wires is responsible.

The minimal graph is also the version I use for memory diagnosis. If the lean path already sits near the 24 GB ceiling, I know that any extra nodes will require offloading, quantization, or both.

Practical Checklist Before You Queue

  • Model filenames and precision recorded

  • Exact prompt text recorded

  • Seed, steps, sampler, scheduler, CFG, frame count, resolution recorded

  • VAE filename recorded

  • Frame rate and output path known

  • No unrecorded randomize toggles active

If any item on that list is missing, the run is not yet reproducible.

Documentary photo of an open notebook with handwritten minimal graph pre-queue checklist and parameter records on a desk.

Closing

From prompt to MP4 there are only five stages that must work. Everything else is optional decoration or deferred work. When I keep the path minimal and explicit, failures become diagnosable instead of mystical.

The graph is not magic. It is a sequence of transformations. Naming those transformations is the first step toward controlling them.

Run the test. Save the settings. Show the failure.

The settings are part of the result.

Last updated:

Share:

Leave a comment

Related Articles