OBS (https://obsproject.com/) works really well for me for capturing to local files, and can capture a sub-window of the desktop (or a portion of a window) rather than either the entire desktop or a single window. It also spits out encoded files, so it's not sucking up terabytes of disk space.
Connect With Us