[FFmpeg-user] missing a selected frame

Moritz Barsnick barsnick at gmx.net
Fri Jul 19 14:03:07 EEST 2019


On Fri, Jul 19, 2019 at 12:11:15 +0200, Ulf Zibis wrote:
> Wouldn't it be comfortable to allow a syntax like
> "select='eq(t\,10.16\,10.2\,10.24)'" to select a collection of frames?

That's what Stephance suggested:

> So my advice is to add a 3rd digit to your time values and to replace, for
> instance,  eq(t\,47.96) by something like between(47.963\,t-0.002\,t+0.002).

Alternatively:
  select='between(t\,10.16\,10.24)'

> Additionally allowing the syntax from
> https://ffmpeg.org/ffmpeg-utils.html#Time-duration for vf select(...)
> would be nice, so one could write "select='eq(t\,1:23)'" instead
> "select='eq(t\,83)'".

Probably you need another operator, such as timefromstring():
  select='eq(t\,timefromstring(1:23))'

(Perhaps need to replace ":" with "\:", I don't remember.)

I'm not sure whether expressions actually work with string values,
though.

> -Ulf

Moritz


More information about the ffmpeg-user mailing list