参考
Created
March 21, 2019 07:52
-
-
Save Kaiyuan/4e45639128567882f6a9f00aae299015 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set filelink=%1 | |
set filecolor=%1.png | |
ffmpeg -i %filelink% -r 24 -vf fps=24,scale=240:-1:flags=lanczos,palettegen -y %filecolor% && ffmpeg -v warning -i %filelink% -i %filecolor% -r 4 -lavfi fps=24,scale=240:-1:flags=lanczos[x];[x][1:v]paletteuse -y %filelink%.gif && del /F /S /Q %filecolor% | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment