[FFmpeg-devel] [PATCH] Screen frame grabbing for Win32 platform (bump)

Josh Harris qt at tateu.net
Thu Jul 21 08:13:50 CEST 2011


On 7/19/2011 2:44 AM, Christophe Gisquet wrote:
> Of the various factors for not continuing working on this, the 2 main
> reasons were:
> - I lost some work in progress; the best improvement thus lost was to
> always take the application window rather than its thumbnail (for
> Windows versions newer or equal to Vista)
> - This way of screen grabbing is *very* slow (I think I measured up to
> 100ms for the whole desktop)
>
> I'm still not planning to resume investigations.
>
That's too bad.  I'm of the opinion that something is better than
nothing.  Using your patch (slightly modified), if I capture my full
desktop (single monitor of a dual monitor setup, 2 Xeon x5550
processors, 16GB ram, Windows 7 x64 Pro, nVidia GPU, I forget which one
at the moment) at 1920x1200 to a huffyuv avi, ffmpeg is reporting a
frame rate of about 27fps, although when I open the file, there are
clearly some frames missing so I would guess it's probably something
closer to about 20fps of throughput.

I looked at some code on codeproject.com for capturing using DirectX and
wasn't very impressed, the code was from 2006 though so maybe that had
something to do with it.

I already regularly compile my own ffmpeg binaries because of one or two
other missing features and/or unfixed bugs so it's not really a big deal
to me to add this patch into my build system.

Thanks for it, by the way.


More information about the ffmpeg-devel mailing list