| Crates.io | vid2gif |
| lib.rs | vid2gif |
| version | 0.1.0 |
| created_at | 2025-07-16 18:40:12.985345+00 |
| updated_at | 2025-07-16 18:40:12.985345+00 |
| description | A CLI tool for converting videos to GIFs using ffmpeg |
| homepage | https://github.com/delorenj/vid2gif |
| repository | https://github.com/delorenj/vid2gif |
| max_upload_size | |
| id | 1756241 |
| size | 247,299 |
A fast and efficient CLI tool for converting videos to GIFs using ffmpeg.
Ubuntu/Debian:
sudo apt update && sudo apt install ffmpeg
macOS:
brew install ffmpeg
Windows: Download from ffmpeg.org or use chocolatey:
choco install ffmpeg
git clone <this-repo>
cd vid2gif
cargo build --release
sudo cp target/release/vid2gif /usr/local/bin/
cargo install --path .
vid2gif --input input.webm --output output.gif [OPTIONS]
--input, -i <FILE>: Input video file (required)--output, -o <FILE>: Output GIF file (required)--speed, -s <FLOAT>: Speed multiplier (default: 1.0)
0.5 = half speed (slow motion)1.0 = normal speed2.0 = double speed (fast forward)--loop: Enable infinite looping for the GIFBasic conversion:
vid2gif --input screencast.webm --output screencast.gif
Slow motion with looping:
vid2gif --input action.mp4 --output action.gif --speed 0.5 --loop
Fast forward:
vid2gif --input tutorial.webm --output tutorial.gif --speed 2.0
Full example:
vid2gif --loop --speed 1.5 --input "Screencast From 2025-07-15 14-38-16.webm" --output "screencast.gif"
The tool uses ffmpeg with optimized settings for GIF conversion:
The tool provides clear error messages for common issues:
Conversion speed depends on:
Typical conversion times:
MIT License - see LICENSE file for details.