I use OBS to record videos and GifCam to record gifs. For gif cam you'll want to set the FPS of the recorded gif to 33fps (default is 10, kind of choppy), and for OBS you'll want to maybe play with the settings as well (adjust the bitrate, resolution, fps, etc)