A simple command-line utility to convert MOV videos to GIF format without dealing with complex ffmpeg commands directly.
- Go 1.x installed on your system
ffmpeginstalled on your system (required for video processing)
- Install ffmpeg first (if not already installed):
# For macOS (using Homebrew)
brew install ffmpeg
# For Linux (using apt)
sudo apt-get install ffmpeg
# For Windows (using Chocolatey)
choco install ffmpeg- Clone this repository And install the mov2gif utility:
git clone https://github.com/Lazhari/mov2gif.git
cd mov2gif
go install .mov2gif <input.mov> <output.gif> [fps] [width]input.mov: Path to your input MOV fileoutput.gif: Desired output GIF file pathfps: (Optional) Frames per second for the output GIF (default: 10)width: (Optional) Width of the output GIF in pixels (default: 480)
This utility simplifies the process of converting MOV files to GIF format by:
- Generating an optimized color palette for better GIF quality
- Converting the video using the generated palette
- Automatically handling proper scaling and frame rate The tool uses ffmpeg under the hood but provides a simpler interface for quick conversions.
- The height of the output GIF is automatically calculated to maintain the aspect ratio
- The tool uses the lanczos scaling algorithm for better quality
- A temporary palette file is created during conversion and automatically cleaned up