Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 1
    This set of commands also works with avconv
    – raphael
    Commented Dec 9, 2015 at 2:00
  • 2
    The gif appears to be running at 2x the speed of the source video?
    – Titan
    Commented Oct 10, 2016 at 13:28
  • 1
    @Titan believe it's the -r 10 in the first command and the -delay 5 in the second. I changed the delay to 10 also and it seems to play normally now. Commented Jan 8, 2017 at 4:28
  • 3
    You can also avoid intermediate image files by using the split filter in ffmpeg. No need to pipe anything at all: ffmpeg -ss 30 -t 3 -i "input.flv fps=10,scale=320:-1:flags=lanczos,split[x][z];[z]palettegen[y];[x][y]paletteuse" output.gif
    – Ajedi32
    Commented Jan 8, 2017 at 23:26
  • 1
    Is there a way to maintain the scale? For example, my video file is 904:774. How do I do it without setting scale=320:-1? Is there a way to automate it without exploding the size? Commented Sep 7, 2018 at 7:08