GifCreator.mp4
This is a simple Python script that allows you to convert YouTube videos into animated GIFs. It uses the PyTube library to download YouTube videos, extracts frames from the video, and then creates a GIF from those frames. The script also includes improvements to ensure that frames are processed and organized correctly.
Before using this script, make sure you have the following Python libraries installed:
You can install them using pip
:
pip install -r requirements.txt
- Clone this repository:
git clone https://github.com/your-username/your-repository.git
cd your-repository
- Run the youtube_to_gif.py script:
python youtube_to_gif.py
-
Follow the prompts to enter the video URL, the directory to save videos, the directory to save frames, and the GIF name.
-
The generated GIF will be saved in the specified directory.
This project is licensed under the MIT License - see the LICENSE file for more details.