[FFmpeg-devel] [PATCH] avfilter: add skipblend filter

Matthias Troffaes matthias.troffaes at gmail.com
Thu Nov 1 16:00:15 EET 2018

Dear Paul,

On Thu, Nov 1, 2018 at 11:21 AM Matthias Troffaes
<matthias.troffaes at gmail.com> wrote:
> Would you consider accepting a patch that added an integer "cutoff"
> option to tmix, for the purpose of setting all weights for frames
> beyond "cutoff" to 0? The reason for requesting this is that in some
> workflows, one is blending together a lot of frames at once, and
> specifying a vector of, say, 100 ones followed by a zero, when
> blending together, say, 200 frames, whilst possible, is rather
> tedious; for instance "tmix=frames=200:cutoff=100" (weights are 1 by
> default so this should then work as expected).

I found a way of doing this differently, as I now found that tmix
doesn't actually step frames, unlike skipblend. For history's sake,
the way to get skipblend behaviour is to do something like
"tmix=frames=100,framestep=150" for instance assuming you want to
blend 100 frames, skip 50, and so on. It is *much* slower compared to
skipblend by quite a large factor, as tmix does a lot of redundant
computations, but it works.

Kind regards,

More information about the ffmpeg-devel mailing list