I used to do the same, but I've had MacOS's default software crash with long-ish (about an hour) content. I switch to Open Broadcaster Software[1] after that; free and open source, and very well made. The learning curve isn't that steep, either, if you're just doing regular screen/audio capture.
For terminal based things I've been using `asciinema`. There are various options to play/render such recordings, such as to an interactive SVG. SVGs are lot smaller than GIFs in file size, and are even scalable.
Even better is ttyrec + tty-player for full self-hosting without a third party intervening. You get interactive playback controls and scroll buffer access while paused.
Then I transform the video into a gif using https://github.com/mathieudutour/dotfiles/blob/master/bin/mo...
Hope that helps!