I recently started using ffmpeg to convert small videos I make into gifs. However, I'm noticing that all gifs I make have a pattern background of some kind. It's not too noticeable of a difference between the video and the gif, but you can see it clearly in the difference between the video preview and the gif preview:
Original video on youtube
Gif in imgur album, along with a thumbnail of the gif and the video
The command I send to ffmpeg to convert:
ffmpeg -i "video path" -pix_fmt rgb24 "output file path"
I've tried it with and without the -pix_fmt rgb24. Any ideas what else it could be?