Project Category: Individual Project (Personal Productivity Tool)
Convert MP4 videos to optimized GIFs with exact size and speed constraints. Automatically scales resolution and adjusts frame rates to meet target file sizes (1-50MB). Perfect for social media, presentations, and web content.
Specify target size (1-50MB) - tool automatically optimizes to meet constraint
0.1x to 2.0x playback speed control for dramatic or time-lapse effects
Automatically reduces resolution to fit size while maintaining quality
Adjusts FPS dynamically based on target size and video length
Warns if target size is unrealistic for video duration
Process multiple videos with same settings
| Parameter | Range | Default | Description |
|---|---|---|---|
| Target Size | 1 - 50 MB | 10 MB | Maximum GIF file size |
| Speed | 0.1x - 2.0x | 1.0x | Playback speed multiplier |
| Resolution | Auto-scaled | Original | Reduced automatically if needed |
| FPS | 5 - 30 fps | 15 fps | Frames per second (auto-adjusted) |
mp4togif.bat "path\to\video.mp4"
# Basic conversion (10MB, 1.0x speed)
py converter.py "video.mp4"
# Custom size and speed
py converter.py "video.mp4" --size 5 --speed 1.5
# Slow motion
py converter.py "video.mp4" --size 20 --speed 0.5
py converter.py "clip.mp4" --size 10 --speed 1.0
# Result: 480p @ 15fps, perfect for social platforms
py converter.py "demo.mp4" --size 50 --speed 1.0
# Result: 720p @ 24fps, excellent quality for slides
py converter.py "preview.mp4" --size 2 --speed 1.5
# Result: 360p @ 10fps, fast-loading preview
py converter.py "action.mp4" --size 30 --speed 0.5
# Result: Half-speed playback, maintains quality
Video_to_GIF_Converter/
extracted_gifs/
video_name_10MB_1.0x.gif
video_name_5MB_1.5x.gif
...
C:\ffmpeg\bin\ffmpeg.exe)C:\ffmpeg\bin\ffmpeg.exeTraveler...