Some of the animations I export to animated gif with FFmpeg have long pauses where the frames are identical. Is there a way for FFmpeg to detect this and encode them as a single frame with a longer pause period? In other words, combine identical frames. I currently use
-vf palettegen=stats_mode=full
-f gif -lavfi paletteuse=diff_mode=rectangle:dither=none -loop -1
The file sizes are quite large as a result. Optimizing them with ezgif makes them a lot smaller by combining the frames.