Script for exporting frames from video. Script accept path to video file or folder with video files.
- git clone this repo
python3 -m venv venv./venv/bin/pip3 install -r requirements.txt
- Single file:
python3 video_to_frames.py --video_path file.mp4 - Single file in folder:
python3 video_to_frames.py --video_path folder/file.mp4 - All files in folder:
python3 video_to_frames.py --video_path folder-with-videos-inside
Other arguments:
--skip_first- how much frames to skip--skip_first 5- will take only every fifth frame
--rotate- need to rotate frame imageNone- no rotation0- clockwise1- counterclockwise
- MIT
- NeuroCore Team, 2020