The Video Frame Extractor is a Python project designed to automate the process of downloading a YouTube video, extracting detailed video information, and splitting the video into individual frames. Each frame is saved into separate folders at a specified frame rate. This project utilizes pytube
for downloading videos and ffmpeg
for processing and extracting frames.
- Download videos from YouTube
- Extract video metadata using
ffmpeg
- Split video into frames at a specified frame rate
- Save frames into organized folders
- Python 3.x
pytube
ffmpeg-python
ffmpeg
installed on your system
-
Clone the repository:
git clone https://github.com/username/Video-Frame-Extractor.git
-
Navigate to the project directory:
cd Video-Frame-Extractor
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate | venv\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
-
Run the script:
python main.py
Logs are stored in logs/video_processing.log
.
Extracted frames are saved in folder1
, folder2
, folder3
, and folder4
.