📚 Course contents
AI & Computer Vision, lesson 5 of 52
Video Basics: Frames, FPS, Reading & Saving Video
Introduction
Every match replay, every VAR clip and every highlight reel is the same thing underneath: a stack of still pictures. Today you'll open video files frame by frame, record your own webcam to a file with the time stamped on every frame, and make a slow-motion copy, and find out why it looks jerky.
By the end of this lesson you'll be able to:
- Explain that video is a stack of still frames shown quickly, and say what FPS and resolution mean
- Read a video file frame by frame with
cv2.VideoCapture - Read a video's FPS, frame count and size from its properties
- Save frames to a new file with
cv2.VideoWriter, with the right codec and frame size - Put a timestamp on every frame
- Explain how slowing a clip down differs from recording at a higher frame rate

