Nodes/ComfyUI Handy Nodes/Large Video Chunker
ComfyUI Node

Large Video Chunker

Helps avoid memory issues with large videos. Meant to be run within FOR LOOP START/END. index = current loop counter. Take an large video file an process a chunk at a time. Use chunk_seconds to define chunk size, use max_duration (seconds) to define how much of video to process.

By trashkollector·Created about a year ago·Updated 15 days ago· 4
Large Video Chunker
    • number_chunks
    • chunkOfImages
    • chunkOfAudio
    • fps
    • chunk_start_frame
    • filename_prefix
    ◄path_vid_file►
    ◄chunk_seconds10►
    ◄index0►
    ◄max_duration0►
    CategoryTKNodes/video

    Inputs (4)

    NameTypeDefaultDescription
    path_vid_fileSTRINGPath+filename to video file
    chunk_secondsINT101–3600Chunk size for video to ease memory requirements
    indexINT00–100000LOOP index
    max_durationINT00–86400Optional : 0=chunk entire file, or set value to chunk smaller amount

    Outputs (6)

    NameTypeDescription
    number_chunksINTTotal Chunks calculated
    chunkOfImagesIMAGEchunked video
    chunkOfAudioAUDIOchunked audio
    fpsFLOATFrame rate of the source video.
    chunk_start_frameIMAGEFirst frame of this chunk as a single-image batch.
    filename_prefixSTRING—