(what I'd really like is a screencast version of `scrot - s`—something I can invoke from the command line and target a defined rectangle to record. But I don't think that really exists)
@codesections You can, with great difficulty, integrate ffmpeg into an app so that it can record itself.
I did this for a few games. If the game also had demo recording, I could then record perfect videos without dropping any frames.
@codesections I've had great success with Peek (https://github.com/phw/peek), also available from AUR: https://aur.archlinux.org/packages/peek-git/. It can do the "record a defined rectangle" thing, supports webm and gif output too (I mostly used webm, no idea how well the gif output works, but webm->gif is fairly easy with ffmpeg).
@codesections Peek. It records GIF, WebM, or MP4 and works on X and Wayland too.
There are native packages for various distros and even a Flatpak of it on Flathub:
Fosstodon is a Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.