Skip to content

A batch script for auto generating gif files by FFmpeg.exe on Windows

License

Notifications You must be signed in to change notification settings

celeron533/GIFConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GIFConverter

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.

Prerequisite

How to Use

  1. Put the FFmpeg.exe and GIFConverter.cmd file in the same folder.
  2. Drag & drop you video file (FFmpeg supported, such as avi, mp4, 3gp, etc.) onto the batch file.
  3. 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

Settings

  • You could edit the batch file to modify/add any settings or parameters as you wish.

Default settings (may change in the future)

  • Time Range of the video clip: start from 00:00:00, period is 30 seconds.
  • Gif FPS: 15
  • Image scale/resize: width=320, height=auto
  • Max number of colors for Gif palette: 256
  • Gif dither: none

Sample

  • fps=15
  • resolution: width=128px, height=auto
  • dither: none
  • duration: 7.5s
  • size: 541KB

Sample gif - Evangelion

About

A batch script for auto generating gif files by FFmpeg.exe on Windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors