File size: 832 Bytes
ddb7519 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# Video frame extractor
## Usage
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.
## Arguments
### --vid_dir
Required directory path for input video files.
### --out_dir
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.
### --format
The format for image files saved to disk. Defaults to `png`, or optionally `jpg`.
### --interval
The number of seconds between frame captures. Defaults to 10 seconds.
|