I'm using the following code to generate a gif using ffmpeg:
src="input.flv"
dest="output.gif"
palette="/tmp/palette.png"
ffmpeg -i $src -vf palettegen -y $palette
ffmpeg -i $src -i $palette -lavfi paletteuse -y $dest
The gif that is produced is 'cumulative'. How can I change it so that the gif produced is 'replace' (where each image is independent of the previous)?
I realize this would result in a gif with a larger file size.