Created
July 20, 2017 04:36
-
-
Save RhinoLu/93dc463d037d2d7c5887b38c933ab801 to your computer and use it in GitHub Desktop.
ffmpeg convert video to Gif
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
./ffmpeg -y -i source.mov -vf fps=10,scale=480:-1:flags=lanczos,palettegen palette.png | |
./ffmpeg -i source.mov -i palette.png -filter_complex "fps=10,scale=480:-1:flags=lanczos[x];[x][1:v]paletteuse" ok.gif | |
fps : 每秒幾張 | |
scale : 等比例縮放至寬度480px | |
懶人 | |
https://ezgif.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment