Skip to content

Commit

Permalink
Ease the usage of video2gif.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
vinjn committed Aug 12, 2018
1 parent f9d0a80 commit f45fe97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/video2gif.bat
@@ -1,5 +1,7 @@
REM video2gif /path/to/video/file

set palette=palette.png
set filters=fps=15,scale=320:-1:flags=lanczos

ffmpeg -v warning -i %1 -vf %filters%,palettegen -y %palette%
ffmpeg -v warning -i %1 -i %palette% -lavfi %filters%" [x]; [x][1:v] paletteuse" -y %2
ffmpeg -v warning -i %1 -i %palette% -lavfi %filters%" [x]; [x][1:v] paletteuse" -y %1.gif

0 comments on commit f45fe97

Please sign in to comment.