0

I can create an animated gif using the commands below.

ffmpeg -i wrist_0001.png -vf palettegen=16 palette.png

ffmpeg -i wrist_%04d.png -i palette.png -filter_complex "fps=20,scale=720:-1:flags=lanczos[x];[x][1:v]paletteuse" logo.gif

What I'm trying to know how to do is:

  1. Create another animated gif using just the first 20 frames and the animation loops endlessly (no pausing at the end of the animation).
  2. Create another animated gif using just the first 20 frames where the animation plays then pauses at the end for 3 seconds then continues. (endlessly) Example: (play animation - pause 3 seconds - play animation - pause 3 seconds - play animation - pause 3 seconds...)

Note: I'm trying to avoid having to type in wrist_0001.png wrist_0002.png...is there away to do wrist_0001.png to wrist_0020.png?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.