Nodes/IAMCCS-nodes/Segment Planner Linked (total generation frames)
ComfyUI Node

Segment Planner Linked (total generation frames)

Segment Planner, but the total length is frames you already know

By IAMCCS·Created 11 months ago·Updated 4 days ago· 113
Segment Planner Linked (total generation frames)
    • total_frames
    • unique_segment_frames
    • first_segment_raw_frames
    • continuation_raw_frames
    • estimated_segments
    • continuation_loops
    • last_segment_unique_frames
    • report
    • segment_index_out
    • current_segment_raw_frames
    • current_segment_unique_frames
    • current_segment_start_frames
    • current_segment_end_frames
    • current_remaining_frames_after
    • current_segment_start_s
    • current_segment_end_s
    • current_segment_report
    • fps_out
    • recommended_overlap_frames
    • recommended_audio_left_context_s
    • recommended_extension_preset
    • effective_planning_mode
    • planning_profile_report
    total_generation_frames720
    fps24.00
    segment_duration_s10.00
    planning_mode_inmanual_segment_seconds
    segment_preset_in10sec
    overlap_frames_in9
    ltx_round_modeup
    segment_index0
    ltx_round_mode_in

    LTX-2 long-form video is chunked: you render segments, carry a bridge between them, and the quality of the result lives or dies on whether your segment math is right. The generic IAMCCS_SegmentPlanner works in seconds and duration; IAMCCS_SegmentPlannerFramesLinked is the variant for the case where the authoritative total is a frame count - because your source video or your contract is N frames, and everything downstream (chunk scheduling, bridge caches, the extension module) thinks in frames.

    What it computes

    It's a pure-math node - no model loads, no sampling, instant. You give it a few numbers and it returns the full segment plan:

    • total_generation_frames - your master length in frames (default 720).
    • fps - to convert frames ↔ seconds.
    • segment_duration_s - the nominal length of one generation segment (default 10s).
    • overlap_frames_in - frames shared between adjacent segments for continuity (LTX default 9).
    • ltx_round_mode - up / nearest / down, for how segment lengths round to LTX's 8n+1 frame constraint.
    • segment_index - which segment you're planning right now.

    Outputs are the whole plan spelled out as INTs you can wire straight into the sampling chain: total_frames, unique_segment_frames, first_segment_raw_frames, continuation_raw_frames, estimated_segments, continuation_loops, last_segment_unique_frames, plus a report string.

    The "Linked" in the name is the key difference from the base planner: several inputs (total_generation_frames, segment_duration_s, the planning mode, preset, overlap, and round mode) are forceInput, so they come from upstream nodes instead of being hand-edited widgets. Build one plan source, fan it out to every segment, and you can't get the numbers out of sync. It also accepts an override ltx_round_mode_in STRING input, so a controller can change rounding at runtime.

    Why the LTX rounding matters

    LTX latents don't map 1:1 to frames - the VAE compresses time, so a generated clip comes back at 8n+1 (or similar) frames rather than the exact count you asked for. This planner rounds segment lengths up or down and reports what each segment will actually produce, so your overlap and continuation math is done against real numbers. If your segments have been coming back a few frames short, this is the node that names the discrepancy instead of hiding it.

    Where it fits

    It's the LTX-2 side of the IAMCCS extension toolset - the category is IAMCCS/LTX-2, and it pairs with the LTX-2 extension module and the segment queue loop. It also inherits from the base IAMCCS_SegmentPlanner, so it shares the planner math and the audio-mode options for audio-enabled LTX workflows (there's an IAMCCS_AudioSegmentAutoPlanner sibling for audio-driven segments).

    Ships in IAMCCS-nodes: ComfyUI Manager → search "IAMCCS", or git clone https://github.com/IAMCCS/IAMCCS-nodes.git into custom_nodes, restart. No dependencies beyond the pack and a current ComfyUI with LTX-2 support.

    CategoryIAMCCS/LTX-2

    Inputs (9)

    NameTypeDefaultDescription
    total_generation_framesINT7201–10000000
    fpsFLOAT24.000.001–240
    segment_duration_sFLOAT10.000.01–3600
    planning_mode_inSTRINGmanual_segment_seconds
    segment_preset_inSTRING10sec
    overlap_frames_inINT90–4096
    ltx_round_modeCOMBOup3 options: up, nearest, down
    segment_indexINT00–100000
    ltx_round_mode_inoptSTRING

    Outputs (23)

    NameTypeDescription
    total_framesINT
    unique_segment_framesINT
    first_segment_raw_framesINT
    continuation_raw_framesINT
    estimated_segmentsINT
    continuation_loopsINT
    last_segment_unique_framesINT
    reportSTRING
    segment_index_outINT
    current_segment_raw_framesINT
    current_segment_unique_framesINT
    current_segment_start_framesINT
    current_segment_end_framesINT
    current_remaining_frames_afterINT
    current_segment_start_sFLOAT
    current_segment_end_sFLOAT
    current_segment_reportSTRING
    fps_outFLOAT
    recommended_overlap_framesINT
    recommended_audio_left_context_sFLOAT
    recommended_extension_presetSTRING
    effective_planning_modeSTRING
    planning_profile_reportSTRING