A batch script for auto generating gif files by FFmpeg.exe on Windows
Bash script from: http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
This repo is a ported version on Windows.
- Microsoft Windows
- FFmpeg (https://ffmpeg.org/download.html#build-windows)
- Put the
FFmpeg.exeandGIFConverter.cmdfile in the same folder. - Drag & drop you video file (FFmpeg supported, such as avi, mp4, 3gp, etc.) onto the batch file.
- Wait for generating the GIF. The gif output file will be created in the same folder as video source.
- Input
C:\sample\video.mp4 - Output
C:\sample\video.gif
- Input
- You could edit the batch file to modify/add any settings or parameters as you wish.
- Time Range of the video clip: start from
00:00:00, period is30seconds. - Gif FPS:
15 - Image scale/resize:
width=320, height=auto - Max number of colors for Gif palette:
256 - Gif dither:
none
- fps=15
- resolution: width=128px, height=auto
- dither: none
- duration: 7.5s
- size: 541KB
