1.2 KiB
1.2 KiB
FrameExtractor
Extract frames from a video path using evenly spaced, random, or start/middle/end sampling so you can caption individual frames or feed them into other analysis nodes.
Inputs
video_path– absolute path from MediaSelection or another node.num_frames– number of frames to save (1–20).extraction_method– Evenly Spaced, Random, or Start/Middle/End.- Optional:
seedfor random mode,start_time/end_timewindow, andoutput_format(pngorjpg).
Outputs
frame_paths– comma-separated list of saved frame files.frame_timestamps– comma-separated timestamps (seconds) for each frame.frame_info– human-readable summary of extraction settings/results.frames_directory– folder containing the exported frames (useful for follow-up tooling).
Usage Tips
- Pair with MediaSelection’s
media_pathoutput to extract batches from trimmed clips. - Random mode honors the provided
seed, so re-running with the same value reproduces identical frame sets. - The
frames_directorylives in ComfyUI’s temp folder; clean it up when you are done with experimentation.