
lnk files (which you need to modify in case you use them).Īnd by the way, you don’t really have to use it with Send To menu as I described before, you can just drag and drop your video files over the. To make your work even more easier I share my own presets to download. You can also make a few versions of this script for various Gif settings. If you noticed the fps=15 value is set to 15, you change it of course to your preference, just do it in both FFmpeg command lines.

If you need to encode just a piece of your source video, you can add to command parameters something like -ss 12:23 -t 35 where -ss is start time and -t is duration If you need more info then change verbose level -v command from -v warning to -v info. This script is almost quiet that’s why I added the echo comments to be typed during the conversion. You can remove PAUSE in the end to avoid the batch command window staying opened after the encoding, but in this case it may blink too fast to be read. If you don’t have FFmpeg installed, download it now. IF EXIST !argVec!_palette.png DEL /s !argVec!_palette.png > nulĭo not forget to replace the path to FFmpeg if its installed into a different folder in your system. “c:\Program Files\ffmpeg\bin\ffmpeg.exe” -v warning -i !argVec! -i !argVec!_palette.png -filter_complex “fps=15,scale=320:-1:flags=lanczos paletteuse” -y !argVec!_hqgif.gif “c:\Program Files\ffmpeg\bin\ffmpeg.exe” -v warning -i !argVec! -vf fps=15,scale=320:-1:flags=lanczos,palettegen -y !argVec!_palette.png lnk file instead if you want to customise the icon and name of the new Send To menu OFFĮCHO bat file and place into C:\Users\*USERNAME*\AppData\Roaming\Microsoft\Windows\SendTo folder. This version supports multiple files encoding. The output file will be saved to the same folder your source comes from. First one scans the source and creates a colour palette to shrink your video into 256 colour range and the second pass generates the GIF itself.

To achieve the best possible GIF quality this script works in 2 passes. I have a new very useful ready-to-roll addition to it, now for encoding whatever you want into high quality GIFs. You must remember my FFmpeg automation for windows post.
