Files
ffmpeg/doc
Rafael Henrique Gonçalves de OliveiraandTimo Rothenpieler 9627f97678 avfilter/vsrc_gfxcapture: add dup_frames option
Windows Graphics Capture only delivers a frame when the captured content
changes, so a static source makes gfxcapture output nothing at all. An
fps filter after it cannot help, since it has no later frame to
duplicate up to, and anything muxed alongside stalls as well.

Add a dup_frames option, like ddagrab has. When no new frame arrived
within one 1/max_framerate interval, output a new reference to the last
frame, or a black frame before the source delivered its first one.
Repeats are stamped with their deadline in the QPC clock, the same clock
as SystemRelativeTime, and the next deadline counts from the previous
one, so timer overshoot shows up neither in the timestamps nor in the
rate. A captured frame timestamped at or before the last output is
bumped to keep timestamps increasing.

The new option is on by default, since the current behaviour is arguably
surprising and clashes with how a lot of the filter chain and the
fftools work.

Signed-off-by: Rafael Henrique Gonçalves de Oliveira <rafaelh9six@gmail.com>
Co-authored-by: Timo Rothenpieler <timo@rothenpieler.org>
2026-10-24 20:55:29 +00:00
..
2023-03-01 21:59:10 +01:00
2026-03-20 22:01:43 +01:00
2026-01-18 03:33:04 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2026-05-22 08:20:13 -05:00
2017-02-03 15:03:44 +01:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2024-03-18 17:59:19 +01:00
2026-07-13 18:57:37 +09:00
2019-02-10 16:46:56 +01:00
2016-05-04 18:16:21 +02:00
2016-10-03 00:16:27 +01:00
2026-09-12 23:52:20 +00:00
2025-08-03 13:48:47 +02:00
2021-06-18 18:58:25 +02:00