Nodes/comfyui-dreambait-nodes/Load Media (img, vid or dir)
ComfyUI Node

Load Media (img, vid or dir)

Loads media from various sources with advanced options for sequence handling. Key Features: - Supports images, directories, videos, archives (zip/tar/7z), and URLs - Smart sorting options including visual similarity-based ordering - Seamless loop creation with loop_first_frame

By drmbt·Created 2 years ago·Updated 6 months ago· 6
Load Media (img, vid or dir)
    • image
    • mask
    • WIDTH
    • HEIGHT
    • COUNT
    • FILE_NAME
    • FILE_PATH
    • PARENT_DIRECTORY
    • FPS
    • AUDIO
    • PROMPT
    • METADATA_RAW
    path
    resize_images_to_firsttrue
    image_load_cap0
    start_index0
    start_index_use_seedfalse
    seed0
    error_after_last_framefalse
    skip_n0
    sortNone
    reverse_orderfalse
    loop_first_framefalse
    force_rate0
    Categoryimage

    Inputs (12)

    NameTypeDefaultDescription
    pathSTRINGPath to media file(s). Can be an image, directory of images, video file, zip/tar archive, URL, or wildcard pattern for images (e.g. *.png).
    resize_images_to_firstBOOLEANtrueResize all images to match the dimensions of the first image in the sequence.
    image_load_capINT0Maximum number of images to load. 0 means load all images.
    start_indexINT0Index of the first image to load from the sequence.
    start_index_use_seedBOOLEANfalseUse the seed value as the start_index for random or sequential operations.
    seedINT0Seed value for random operations and optionally start_index if start_index_use_seed is enabled.
    error_after_last_frameBOOLEANfalseIf True, raise an error when start_index exceeds frame count. If False, wrap around using modulo.
    skip_nINT0Skip N frames between each loaded frame. 0 means load consecutive frames.
    sortCOMBONoneMethod to sort multiple images: None, alphabetical, by date, visual similarity, or random.
    reverse_orderBOOLEANfalseReverse the order of loaded images after sorting.
    loop_first_frameBOOLEANfalseAppend the first frame to the end of the sequence to create seamless loops.
    force_rateFLOAT00–60

    Outputs (12)

    NameTypeDescription
    imageIMAGE
    maskMASK
    WIDTHINT
    HEIGHTINT
    COUNTINT
    FILE_NAMESTRING
    FILE_PATHSTRING
    PARENT_DIRECTORYSTRING
    FPSFLOAT
    AUDIOAUDIO
    PROMPTSTRING
    METADATA_RAWMETADATA_RAW