- pip install -r requirements.txt
- python split_video.py
- press Enter to exit
- usage: split_video.py [-h] -vp VIDEO_PATH [-bn BASE_NAME] [-sp SAVE_PATH] [-nf NUMBER_OF_FRAMES] [-f IMAGE_FORMAT]
[-s SOURCE] [-ixs [IMGS_X_SECOND [IMGS_X_SECOND ...]]]
-h, --help show this help message and exit
-vp VIDEO_PATH, --video_path VIDEO_PATH
<Required> Path to the video file
-bn BASE_NAME, --base_name BASE_NAME
Base name of the frames (e.g. frame_
-sp SAVE_PATH, --save_path SAVE_PATH
Path to the save frames
-nf NUMBER_OF_FRAMES, --number_of_frames NUMBER_OF_FRAMES
Max amount of frames to be extracted from webcam
-f IMAGE_FORMAT, --image_format IMAGE_FORMAT
output image format (jpg, png, etc.
-s SOURCE, --source SOURCE
source of the video ("file" or "webcam" )
-ixs [IMGS_X_SECOND [IMGS_X_SECOND ...]], --imgs_x_second [IMGS_X_SECOND [IMGS_X_SECOND ...]]
frames to be extracted from all frames in one second (e.g. 1 , 7, 28)
if a number below 1 is given it will divide fps of the video by that number
and get 1 image per that interval (e.g "0.5") if fps is 30 it will get 1 image every 60 frames