For a while now; I have been looking for a way to record the screen on macOS, but only of a single window (e.g. any other windows blocking it will not be recorded).
There should be a way to do this, since the
screencapture command on Terminal is able to take screenshots of specific windows (see this answer from AskDifferent). I attempted to use that command to quickly take screenshots, which could be turned into a video; but the framerate is less than 1 fps (I need at least 30, if not 60 fps). Apparently this can be done on Windows using ffmpeg, but I can't figure out how to do it on macOS.
Does anyone know of either a terminal command, Swift code, or even a full application that is capable of doing this?