Nodes/ComfyUI-RotoTools/Load Video Batch (Folders)
ComfyUI Node

Load Video Batch (Folders)

Loads one video per run from one or more folders of folders, for queueing hundreds of clips in one go.

By dipto8103·Created 9 days ago·Updated 3 days ago· 0
Load Video Batch (Folders)
    • video
    • zip_name
    • video_path
    • index
    • total
    • zip_folder
    • shot_label
    ◄batch_folder►
    ◄index0►
    ◄skip_if_zip_existstrue►
    ◄output_folder►
    ◄extensionsmp4,mov,mkv,avi,webm,m4v►
    ◄recursivetrue►
    ◄excluded►
    Categoryimage/video

    Inputs (7)

    NameTypeDefaultDescription
    batch_folderSTRINGFolders and/or single video files, one per line or comma separated (x\ep93, x\ep94, D:\clips\a.mp4). Use 'Add folders' on the preview, drop videos onto the node, or paste Explorer's Copy as path (Ctrl+Shift+C). Every video inside the folders and their sub-folders is found automatically.
    indexINT00–999999Only used when skip_if_zip_exists is off: which video to load (0 = first). With skip_if_zip_exists on (default), every run simply takes the next video that has no zip yet.
    skip_if_zip_existsBOOLEANtrueOn (default): every run takes the next video that has no zip yet; done and excluded videos are passed over. Off: the video at 'index' is processed even if its zip exists.
    output_folderSTRINGWhere everything is saved. A folder named after each input folder is made inside it (output\ep93\shot5.zip). Connect zip_folder to the TGA saver's output_folder.
    extensionsSTRINGmp4,mov,mkv,avi,webm,m4vComma separated video extensions.
    recursiveBOOLEANtrueLook inside sub-folders of sub-folders too.
    excludedoptSTRINGVideos left out of the batch, one path per line.

    Outputs (7)

    NameTypeDescription
    videoVIDEOThe video for this run.
    zip_nameSTRINGVideo file name without extension (shot5).
    video_pathSTRINGFull path of the video.
    indexINTIndex of this video (0 = first).
    totalINTNumber of videos found.
    zip_folderSTRINGOutput folder for this video's input folder (output\ep93). Connect to the saver's output_folder.
    shot_labelSTRINGWhere the shot comes from + its zip name, unique in the batch: 'ep93 / shot6', 'ep93 (y) / shot6', 'single / shot6'. Connect to Roto Review's name.