Per application screen recording

  audio-recording, python, video-recording, windows

Is there any program in Windows, or any way in a programming language (say Python) to record the audio and video of a single window?

I’m not talking about recording a partial area of the screen, I really want to track the specific process behind the window I want to record. This way, for instance, the recording process could work if the window is in background mode.

Source: Windows Questions