I am trying to capture video from XPlane, a popular flight simulator. I'm running on Windows.
Normally, I can capture individual windows using gdigrab
, but when I use it on an XPlane window like so...
ffmpeg -f gdigrab -framerate 30 -i "X-System" -b:v 300K capture.mp4
...I get a video file that's the right dimensions but is all black. I imagine this may have something to do with how XPlane talks directly to the GPU. I should add that if I capture the entire desktop like so...
ffmpeg -f gdigrab -framerate 30 -i desktop -b:v 300K capture.mp4
...I get everything including the simulator window, but naturally with unrelated windows in the capture, including windows sitting on top of the simulator window.
Is there a way for gdigrab
to capture video this GPU-intensive window alone? Is there a different tool I can use?