Gifs: Difference between revisions
From charlesreid1
No edit summary |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
<pre> | <pre> | ||
ffmpeg -t 2.5 -i 2muchcoffee4me-996049204148453376-20180514_082650-gif1.mp4 -filter_complex "[0:v] scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" 2muchcoffee4me.gif | ffmpeg -t 2.5 -i 2muchcoffee4me-996049204148453376-20180514_082650-gif1.mp4 \ | ||
-filter_complex "[0:v] scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" \ | |||
2muchcoffee4me.gif | |||
</pre> | </pre> | ||
makes the color palettes look nice. | makes the color palettes look nice. | ||
Also see Giphy Engineering post on using ffmpeg with gifs: https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/ | |||
Latest revision as of 00:25, 14 September 2018
ffmpeg
You can use ffmpeg to convert videos to gifs. Here's a hairball of an ffmpeg command:
ffmpeg -t 2.5 -i 2muchcoffee4me-996049204148453376-20180514_082650-gif1.mp4 \
-filter_complex "[0:v] scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" \
2muchcoffee4me.gif
makes the color palettes look nice.
Also see Giphy Engineering post on using ffmpeg with gifs: https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/