[FFmpeg-trac] #11542(ffmpeg:new): gdigrab sometimes fails to capture specific windows on some machines
FFmpeg
trac at avcodec.org
Sat Apr 12 15:10:07 EEST 2025
#11542: gdigrab sometimes fails to capture specific windows on some machines
-------------------------------------+-------------------------------------
Reporter: malaawar | Owner: (none)
Type: defect | Status: new
Priority: important | Component: ffmpeg
Version: git-master | Resolution:
Keywords: gdigrab | Blocked By:
Windows |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by MB SOFT):
Replying to [comment:11 malaawar]:
> Interesting, but it is able to capture the application's screen from
some other laptops i tested on. Do you by any chance know of other good
open source alternatives?
yes you can do it with gstreamer
https://gstreamer.freedesktop.org/documentation/d3d11/d3d11screencapturesrc.html
?gi-language=c#d3d11screencapturesrc
this is a pipeline that i use everyday to capture a window and encode it
in an h265 mkv file:
{{{
gst-launch-1.0.exe -e --gst-debug=3 d3d11screencapturesrc capture-api=1
window-handle=1117566 window-capture-mode=1 !
video/x-raw(memory:D3D11Memory),framerate=30/1 ! d3d11convert ! queue !
mfh265enc bitrate=416 quality-vs-speed=100 low-latency=true ! h265parse !
queue ! matroskamux name=mux streamable=true offset-to-zero=true ! queue !
filesink location="D:\\90Giorni\\2025-04-12_0000.mkv"
}}}
hope to see windows graphics capture api implemented also in ffmpeg one
day
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11542#comment:13>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list