Place video files into the top level of a directory.
Execute python scripts/extract_video_frames.py --vid_dir path/to/videos
to iterate over all files, extract frames at regular intervals, and save full resolution frame images to disk.
This tool supports a wide variety of input video containers and codecs (via OpenCV), and exports jpg or png files.
Required directory path for input video files.
Optional directory path in which to store extracted frame images. Defaults to a directory named 'output' that will be created inside the specified videos directory.
The format for image files saved to disk. Defaults to png
, or optionally jpg
.
The number of seconds between frame captures. Defaults to 10 seconds.