Opened 13 months ago

Last modified 4 months ago

#7718 new defect

gdigrab windows10 Black or white screen

Reported by: Seven78 Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: gdigrab
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

On Windows 10 to display a specific window using Gdigrab , some window are entierely embpty or black .

ffplay -f gdigrab -i title=Calculatrice
ffplay version 4.1 Copyright (c) 2003-2018 the FFmpeg developers

built with gcc 8.2.1 (GCC) 20181017
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100

[gdigrab @ 000001dee9b27e00] Found window Calculatrice, capturing 320x512x32 at (0,0)
Input #0, gdigrab, from 'title=Calculatrice': 0KB sq= 0B f=0/0

Duration: N/A, start: 1549358690.531063, bitrate: 157142 kb/s

Stream #0:0: Video: bmp, bgr0, 320x512, 157142 kb/s, 29.97 fps, 30 tbr, 1000k tbn, 1000k tbc

1549359715.25 M-V: 0.001 fd= 89 aq= 0KB vq=15363KB sq= 0B f=3/3

ffplay -f gdigrab -i title=Calculatrice
ffplay version N-93077-g075fd5ba45 Copyright (c) 2003-2019 the FFmpeg developers

built with gcc 8.2.1 (GCC) 20181201
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 26.100 / 56. 26.100
libavcodec 58. 46.100 / 58. 46.100
libavformat 58. 26.100 / 58. 26.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 48.100 / 7. 48.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100

[gdigrab @ 000001dc7a367d80] Found window Calculatrice, capturing 320x512x32 at (0,0)
Input #0, gdigrab, from 'title=Calculatrice': 0KB sq= 0B f=0/0

Duration: N/A, start: 1549359556.672644, bitrate: 157142 kb/s

Stream #0:0: Video: bmp, bgr0, 320x512, 157142 kb/s, 29.97 fps, 29.92 tbr, 1000k tbn, 1000k tbc

1549359753.25 M-V: -0.019 fd= 3 aq= 0KB vq= 4481KB sq= 0B f=0/0

https://ibb.co/1b1z4VR

Change History (2)

comment:1 Changed 13 months ago by oromit

  • Priority changed from important to normal

I would guess that gdigrab can't capture windows that use hardware acceleration to render themselves.
It would seem odd that calc.exe uses the GPU, but it wouldn't surprise me either.

comment:2 Changed 4 months ago by Balling

Well, calc.exe does use GPU as (I think) any UWP app. As can be seen in GPU tray, which can be activated in Nvidia control panel (from the top menu).

Last edited 4 months ago by Balling (previous) (diff)
Note: See TracTickets for help on using tickets.