This is an efficient subprocess pipe based module to extract all the frames of a video to a numpy array.
This has 3 functionalities:
- Get the resolution of the video
- Get the number of frames in a video
- Get all the frames in the video as a numpy array
Requirements: ffmpeg callable from terminal.
Usage:
import video2frames
video_stack = video2frames.read_video(VID_PATH)