On Linux you can just use "SimpleScreenRecorder". It allows recording video of a single window (with audio from mic). I use it at work to create demos. My video demos are better than most others' because the video does not contain the whole screen (unlike many other demos) and my videos are accompanied by audio narration so demo can be watched independently later. Mac users often ask me how I create my demo videos.