[FFmpeg-devel] [PATCH] Add Win32 GDI-based screen grabbing

Stefano Sabatini stefasab at gmail.com
Sat Nov 30 02:05:52 CET 2013


On date Friday 2013-11-29 18:49:33 -0500, Calvin Walton encoded:
> Based on original code by Chrisotphe Gisquet in 2010, updated to work
> with current ffmpeg APIs.
> 
> Supports grabbing a single window or an area of the screen, including
> support for multiple monitors (Windows does funky stuff with negative
> coordinates here).
> 
> I've moved most of the configuration to AVOptions; the input file name
> is now only the string "desktop", or "title=<windowname>" to select a
> single window. The AVOptions are the same as x11grab where possible.
> 
> Code has been added to support a "show_region" mode, like x11grab, which
> will draw a rectangle on the screen around the area being captured.
> 
> Signed-off-by: Calvin Walton <calvin.walton at kepstin.ca>
> ---
>  Changelog                |   1 +
>  configure                |   4 +
>  doc/general.texi         |   1 +
>  libavdevice/Makefile     |   1 +
>  libavdevice/alldevices.c |   1 +
>  libavdevice/gdigrab.c    | 623 +++++++++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 631 insertions(+)
>  create mode 100644 libavdevice/gdigrab.c

+10 karma points if you document the device in doc/indevs.texi.

(I'll try to review the patch tomorrow)
-- 
FFmpeg = Free & Fundamental Meaningless Pitiless EnGine


More information about the ffmpeg-devel mailing list