If it's from live video, you can't. GIF is a horrible format for a continuous spectrum of colors; it's meant to be used for simple cartoon graphics that have very few colors (like logos and banners for webpages or small graphics).
These are the kind of graphics animated gifs are meant to be used for:
Small images with few colors and only a few frames rendered.