I would like to take an image and add it to the start of a gif file.
image should be displayed for 2 seconds then the gif will play.
no looping is needed.
Edit 1:
I've also been looking at this: https://github.com/jtlapp/gifwrap
Edit 2:
I want to merge the files together, creating a new gif, which has the image and original gif.
CodePudding user response:
Make a countdown timer, where you have a integer seconds which you keep track on. Whenever seconds gets above 2 seconds, then display the gif.
CodePudding user response:
Something like this
ffmpeg -loop 1 -i image.png -t 2 tmp.gif
ffmpeg -i tmp.gif -f mpegts out0.ts
ffmpeg -i input.gif -f mpegts out1.ts
ffmpeg -i "concat:out0.ts|out1.ts" -loop -1 result.gif