Created
May 22, 2020 00:14
-
-
Save the-spanish-guy/50e6dc0213615978fb3b0eeae0b6020d to your computer and use it in GitHub Desktop.
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 -i input.flv -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -loop 0 - output.gif | |
//ou | |
ffmpeg -i gif.avi -r 60 -vf scale = 1024×720 -1 my-gif.gif | |
//mais eficiente | |
ffmpeg -y -i video.mp4 -vf palettegen palette.png | |
ffmpeg -y -i video.mp4 -i palette.png -filter_complex paletteuse -r 10 animation.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment