[FFmpeg-trac] #9919(avdevice:new): modify gdigrab to use windows Graphics Capture Api

FFmpeg trac at avcodec.org
Sat Sep 10 12:51:04 EEST 2022


#9919: modify gdigrab to use windows Graphics Capture Api
----------------------------------+---------------------------------------
             Reporter:  MB SOFT   |                     Type:  enhancement
               Status:  new       |                 Priority:  normal
            Component:  avdevice  |                  Version:  unspecified
             Keywords:  gdigrab   |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 This is a feature request.

 Could you please modify Gdigrab to use WindowsGraphicsCapture API?

 [https://blogs.windows.com/windowsdeveloper/2019/09/16/new-ways-to-do-
 screen-capture/]

 Advantages:
 1) capture any window (including hardware accelerated window)
 2) capture any graphics in the window (including transparent childs)
 3) capture window outside the visible area
 4) minimal cpu load even with high res and rates

 Ex:  here [​https://github.com/mmozeiko/wcap] there are free sources of
 the tool wcap that use windows graphics capture api. compared to gdigrab
 it has 3 times less cpu load.
 Could someone use that code and adapt gdigrab?

 [​https://github.com/mmozeiko/wcap/blob/main/wcap_capture.c]
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9919>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list