Last active
July 11, 2024 01:39
-
-
Save Akira-Hayasaka/e83ba454ae1e9ecaa9c655badbe3148b to your computer and use it in GitHub Desktop.
create 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 -i a.mp4 -vf "fps=10,scale=1280:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif | |
normal | |
ffmpeg -i input.mov -r 10 -vf scale=640:-1 -f gif output.gif | |
mid | |
ffmpeg -i input.mov -filter_complex "[0:v] fps=10,scale=640:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" output-palette.gif | |
high | |
ffmpeg -i input.mov -filter_complex "[0:v] fps=10,scale=w=640:h=-1,split [a][b];[a] palettegen=stats_mode=single [p];[b][p] paletteuse=new=1" output-multiple-palette.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment