Creating a gif with images from Octocam


#1

Hi! I’m trying to create a gif of images captured by an Octocam. Is there a simple way to do this – something along the lines of using mencoder as described here: https://www.raspberrypi.org/documentation/usage/camera/raspicam/timelapse.md (I’m a beginner to Python). Thanks!


#2

avconv - the tool used in the guide you linked - will almost certainly have a gif output -vcodec. Swapping libx264 with gif might work.

Alternatively you can sudo apt install imagemagickand use:

convert -delay 100 -loop 0 *.jpg timelapse.gif

Where 100 is the time, in milliseconds, between frames worked out by doing 1000 / desired framerate


#3

Thanks! Used imagemagick and played around with the time.