Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg creating gif from images, how to prevent loop?

Tags:

ffmpeg

gif

I'm creating gifs from a small group of images. Currently the gif loops by default. I've been trying variations of -loop in the ffmpeg command, but the gif still loops. What's the right way to do this?

like image 607
Geuis Avatar asked Jul 24 '17 22:07

Geuis


People also ask

How do you stop a GIF from looping?

Open the Animated gif in Photoshop. Go to the Window tab and select timeline(if the timeline is not already open). At the bottom of the timeline panel, you will find an option, which says "Forever". Change that to "Once".

How do I set my GIF to play on loop?

Click Animation from the menu at the top. Click Edit GIF Animation. Click the drop-down menu next to Looping and choose how many times you want the GIF to loop. Click Apply.


1 Answers

Basic syntax is

ffmpeg -i images%d {-other-options} -loop -1 out.gif
like image 169
Gyan Avatar answered Sep 20 '22 04:09

Gyan