Nodes/ComfyUI_StarNodes/⭐ Star Video Loader (Low RAM)
ComfyUI Node

⭐ Star Video Loader (Low RAM)

Load only a window of a video (start_frame + frame_count) so even very long videos fit in RAM. Optionally caches decoded frames on disk for fast re-runs. Chain windows via the next_start_frame output. See web/docs/StarVideoLoaderLowRAM.md

By Starnodes2024·Created 2 years ago·Updated 7 days ago· 103
⭐ Star Video Loader (Low RAM)
    • images
    • audio
    • fps
    • frames
    • total_frames
    • next_start_frame
    • info
    video
    start_frame0
    frame_count81
    force_rate0.00
    select_every_kth1
    load_audiotrue
    cache_to_diskfalse
    Category⭐StarNodes/Video

    Inputs (7)

    NameTypeDefaultDescription
    videoCOMBO0 options:
    start_frameINT00–100000000First frame of the window, counted in the output frame sequence (after force_rate / every-kth). Feed next_start_frame back in here to walk through the video in chunks.
    frame_countINT811–1000000How many frames to load into memory. This is the ONLY part of the video that uses RAM - pick what fits (81 frames of 1080p is roughly 500 MB).
    force_rateFLOAT0.000–240Resample to this fps. 0 = keep the video's original frame rate.
    select_every_kthINT11–1000Keep only every k-th frame (1 = keep all). Also divides the output fps.
    load_audioBOOLEANtrueExtract the audio matching the loaded frame window.
    cache_to_diskBOOLEANfalseDecode the video ONCE into a raw frame cache inside the ComfyUI temp folder. Later runs (any window) read straight from disk without decoding again - great for repeated runs on the same long video. The cache is invalidated automatically when the file or the fps settings change.

    Outputs (7)

    NameTypeDescription
    imagesIMAGE
    audioAUDIO
    fpsFLOAT
    framesINT
    total_framesINT
    next_start_frameINT
    infoSTRING