ComfyUI Node

Frame Extractor

Extracts a configurable number of frames from a source video (evenly spaced, random, or start/middle/end) and outputs their file paths, timestamps, summary info, and the temp directory containing the images.

By sammykumar·Created 11 months ago·Updated 7 months ago· 5
Frame Extractor
    • frame_paths
    • frame_timestamps
    • frame_info
    • frames_directory
    video_path
    num_frames3
    extraction_methodEvenly Spaced
    seed0
    start_time0.0
    end_time0.0
    output_formatpng
    CategorySwiss Army Knife 🔪/Utils

    Inputs (7)

    NameTypeDefaultDescription
    video_pathSTRINGPath to video file (from Media Selection node)
    num_framesINT31–20Number of frames to extract
    extraction_methodCOMBOEvenly SpacedMethod for selecting which frames to extract
    seedoptINT00–18446744073709550000Seed for random extraction (used when extraction_method is 'Random')
    start_timeoptFLOAT0.00–1000Start time in seconds for frame extraction window (0 = start of video)
    end_timeoptFLOAT0.00–1000End time in seconds for frame extraction window (0 = end of video)
    output_formatoptCOMBOpngOutput image format for extracted frames

    Outputs (4)

    NameTypeDescription
    frame_pathsSTRING
    frame_timestampsSTRING
    frame_infoSTRING
    frames_directorySTRING