FFmpeg Can't Capture Window Rendered with Secondary GPU
For capturing (NVIDIA GPU rendered) chrome window, GPU compositing must be disabled via --disable-gpu-compositing. Maybe you can also disable it in your application.