Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.26 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.26 KB

GIFtube

Youtube to GIF Converter

Bash script to convert a YouTube video to a high-quality GIF file with a specified resolution, frame rate, start time, and duration. It utilizes yt-dlp, ffmpeg, and gifsicle to accomplish this task. This script is based on a previous version by fushime2 with updated and new libraries, optimization and some other quality-of-life improvements added.

alt text

Dependencies

  • yt-dlp (for downloading YouTube videos)
  • ffmpeg (for video processing and GIF generation)
  • gifsicle (for optimizing the generated GIF)

The script will attempt to automatically install these dependencies if they are not already present on your system. It only supports automatic installation on Ubuntu/Debian and macOS; on other operating systems, you will need to install the dependencies manually.

Usage

  1. Save the script
  2. Run the script with ./make_gif.sh
  3. Follow the onscreen prompts

The script will then download the video, generate a color palette, convert the specified video clip to a GIF using the selected resolution and FPS, and optimize the GIF file for better compression.

License

This script is released under the MIT License.