Capturing video of Mac window
Just use Quicktime Player. File->New Screen Recording. You can select a portion of the screen, but spacebar doesn't work to select the whole window, you have to drag a frame around the window manually. You can trim the video afterwards, if you selected an area too big though. If you want to google, use "quicktime record window".