This project provides a pipeline for downloading YouTube videos, splitting them into equal parts, extracting frames, and performing various operations on the frames, such as annotating frame numbers and selecting random frames for further analysis.
- Download Videos from YouTube: Utilizes the
pytubefix
library to download videos directly from YouTube. - Split Videos into Equal Parts: The downloaded video is split into equal-length segments (4 segments by default).
- Extract Frames: All frames from each segment are extracted.
- Organize Frames: Each segment's frames are stored in a separate folder.
- Annotate Frames: Frame numbers are written directly onto each image using the
cv2
library. - Random Frame Selection: Selects 4 random frames from each folder for further processing or analysis.
- Clone the repository:
git clone https://github.com/arabymo/Video-Processing-Pipeline.git cd Video-Processing-Pipeline
- Install the required dependencies:
pip install -r requirements.txt