Skip to main content

HunyuanVideo Encode Keyframes To Cond

KJNodes/videomodels
HunyuanVideoEncodeKeyframesToCond

Example

JSON Example
{
  "class_type": "HunyuanVideoEncodeKeyframesToCond",
  "inputs": {
    "model": [
      "node_id",
      0
    ],
    "positive": [
      "node_id",
      0
    ],
    "vae": [
      "node_id",
      0
    ],
    "start_frame": [
      "node_id",
      0
    ],
    "end_frame": [
      "node_id",
      0
    ],
    "num_frames": 33,
    "tile_size": 512,
    "overlap": 64,
    "temporal_size": 64,
    "temporal_overlap": 8
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
modelMODELrequired--
positiveCONDITIONINGrequired--
vaeVAErequired--
start_frameIMAGErequired--
end_frameIMAGErequired--
num_framesINTrequiredmin: 2, max: 4096, step: 133
tile_sizeINTrequiredmin: 64, max: 4096, step: 64512
overlapINTrequiredmin: 0, max: 4096, step: 3264
temporal_size?INTrequiredmin: 8, max: 4096, step: 464
temporal_overlap?INTrequiredmin: 4, max: 4096, step: 48
negativeCONDITIONINGoptional--

Outputs

IndexNameTypeIs ListConnection Reference
0modelMODELNo["{node_id}", 0]
1positiveCONDITIONINGNo["{node_id}", 1]
2negativeCONDITIONINGNo["{node_id}", 2]
3latentLATENTNo["{node_id}", 3]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this HunyuanVideoEncodeKeyframesToCond node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • model (MODEL): ["5", 0]
  • positive (CONDITIONING): ["5", 1]
  • negative (CONDITIONING): ["5", 2]
Was this page helpful?