A simple and powerful CLI to convert .mp4 / .mov videos into .gif — fast, customizable, and fun.
- ✅ Convert single or multiple video files
- 📂 Process entire folders (with optional recursion)
- 🎚️ Control FPS, width, start time, duration
- 🔁 Scale proportionally with
--scale - 🧪 Dry-run mode (preview conversion commands)
- 🖼️ Auto open converted GIFs
- 📋 Copy GIF to clipboard (macOS/Linux)
git clone https://github.com/devflorez/video-to-gif-cli.git
cd video-to-gif-cli
npm install -g .Now you can use
v2gifglobally in your terminal!
v2gif <file|folder...> [options]v2gif ./video.mp4v2gif ./videos --output ./gifsv2gif ./videos --recursive --start 5 --duration 10 --scale 0.5 --fps 12 --output ./gifsv2gif ./videos --dry-run| Option | Description | Default |
|---|---|---|
-o, --output |
Output folder for GIFs | ./gifs |
--fps |
Frames per second | 10 |
--width |
Output width in pixels (ignored if --scale is used) |
320 |
--scale |
Scale factor (e.g. 0.5 = 50% size) |
null |
--start |
Start time in seconds | 0 |
--duration |
Duration from start point (in seconds) | null |
--open |
Open the resulting GIF automatically | false |
--clipboard |
Copy resulting GIF to clipboard (macOS/Linux only) | false |
--recursive |
Search subdirectories when folders are passed | false |
--dry-run |
Show conversion details without running ffmpeg |
false |
- Node.js (v18+)
- ffmpeg installed and available in your terminal
To check:
ffmpeg -version
MIT © Devflorez