I'm layering a gif on top of pngs to make a gif. The gif layer has a single transparent frame at the end that holds for 3 seconds, however in the final gif, that transparent layer's time gets ignored and it gets the same amount of time as the other frames, which passes quickly.
Is there an ffmpeg command that forces the output gif to use the frame length of all the input gifs?
Current command:
```
ffmpeg -i background.png -i "assets/face.png" -i "assets/moving_layer.gif" -filter_complex "[0][1]overlay=format=auto[i1];[i1][2]overlay=format=auto,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse=dither=bayer: bayer_scale=5,scale=400:-1:flags=neighbor " -loop 0 output/my_output.gif
```
Here's the "assets/moving_layer.gif", you can see the last frame is transparent. This should hold for several seconds (which it does on the input gif).
[Attachment 71220 - Click to enlarge]
How do I force the final output gif to hold the frames for the same length of time as the input gif?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
I don't know about ffmpeg's abilities to edit animated GIFs in detail; I prefer JASC Animation Shop 3 (companion of JASC Paint Shop Pro 9) when editing MNG and GIF. And I am sure that Animation Shop supports both editing the duration of single frames and a quite detailed optimization of GIFs while saving.
Similar Threads
-
Upscale a GIF with no dithering FFMPEG
By Mugunga in forum Video ConversionReplies: 6Last Post: 28th Apr 2023, 13:14 -
What Does It Mean When GIF Only Plays Under Google Chrome?
By pone44 in forum Video ConversionReplies: 5Last Post: 8th Jul 2021, 05:43 -
How to convert -- Animated Gif's to Mpeg?
By cornemuse in forum Video ConversionReplies: 5Last Post: 13th Jul 2020, 09:56 -
gif animation youtube
By racer-x in forum TestReplies: 216Last Post: 8th Mar 2020, 15:56 -
convert mp4 to gif
By muddy7 in forum Video ConversionReplies: 14Last Post: 24th Dec 2019, 09:24