Skip to content

This project downloads videos from YouTube and extracts frames from the video using the ffmpeg library.

Notifications You must be signed in to change notification settings

AhmedGaber1010/Video-Frame-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Video Frame Extractor

Description

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.

Features

  • Download videos from YouTube
  • Extract video metadata using ffmpeg
  • Split video into frames at a specified frame rate
  • Save frames into organized folders

Requirements

  • Python 3.x
  • pytube
  • ffmpeg-python
  • ffmpeg installed on your system

Setup

  1. Clone the repository:

    git clone https://github.com/username/Video-Frame-Extractor.git
  2. Navigate to the project directory:

    cd Video-Frame-Extractor
  3. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate | venv\Scripts\activate 
  4. Install the required packages:

    pip install -r requirements.txt
  5. Run the script:

    python main.py

Logging

Logs are stored in logs/video_processing.log.

Output

Extracted frames are saved in folder1, folder2, folder3, and folder4.

About

This project downloads videos from YouTube and extracts frames from the video using the ffmpeg library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages