Enable window capture for amd/intel. Properly check if h264/hevc is supported on amd/intel before using codec.