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

Christophe Gisquet christophe.gisquet at gmail.com
Mon Dec 2 17:36:58 CET 2013


Hi,

2013/12/2 Calvin Walton <calvin.walton at kepstin.ca>:
> +    if (!strncmp(filename, "title=", 6)) {
> +        name = filename + 6;
> +        hwnd = FindWindow(NULL, name);
> +        if (!hwnd) {
> +            av_log(s1, AV_LOG_ERROR,
> +                   "Can't find window '%s', aborting.\n", name);
> +            ret = AVERROR(EIO);
> +            goto error;
> +        }

You probably weren't affected for some reason, but I remember having
issues with the window thumbnails from the taskbar being captured
instead of the actual window. I don't remember how I solved this
(checking window size or class maybe?)

Also, this is awfully slow if I remember correctly. I don't know what
the expected method would be nowadays (ie not a 15yo one).

Best regards,
-- 
Christophe


More information about the ffmpeg-devel mailing list