Nodes/ComfyUI-BatchFolderTools/Load Video From Folder (Batch)
ComfyUI Node

Load Video From Folder (Batch)

Loads one video at a time from a folder, extracting frames as an IMAGE batch. Enable skip_captioned to resume an interrupted batch — already-captioned videos are skipped with zero GPU cost.

By hodgemann·Created 5 months ago·Updated 5 months ago· 2
Load Video From Folder (Batch)
    • FRAMES
    • folder_path
    • filename_stem
    • filename_full
    • current_index
    • total_videos
    • frame_count
    • fps
    • duration_seconds
    folder_path
    frame_modefirst_frame
    frame_count16
    start_frame0
    end_frame-1
    modesequential
    index0
    sort_byalphabetical
    reset_counterfalse
    skip_captionedfalse
    Category📂 BatchFolder

    Inputs (10)

    NameTypeDefaultDescription
    folder_pathSTRINGAbsolute path to video folder. Supports /mnt/ WSL paths, Linux, macOS, Windows, network shares.
    frame_modeCOMBOfirst_frameWhat to extract: first_frame, last_frame, all_frames, evenly_spaced, or frame_range.
    frame_countINT161–9999Number of frames to extract. Only used in evenly_spaced mode.
    start_frameINT00–9999999First frame index. Only used in frame_range mode.
    end_frameINT-1-1–9999999Last frame index (-1 = end of video). Only used in frame_range mode.
    modeCOMBOsequentialsequential: auto-advances each execution. manual: uses the index widget.
    indexINT00–9999999Video index (0-based). Only used in manual mode.
    sort_byCOMBOalphabeticalHow to sort the files before indexing.
    reset_counterBOOLEANfalseReset the sequential counter back to 0.
    skip_captionedBOOLEANfalseSkip videos that already have a caption file. Checks for .txt/.caption/.cap next to the video. Use this to resume an interrupted batch.

    Outputs (9)

    NameTypeDescription
    FRAMESIMAGE
    folder_pathSTRING
    filename_stemSTRING
    filename_fullSTRING
    current_indexINT
    total_videosINT
    frame_countINT
    fpsFLOAT
    duration_secondsFLOAT