[FFmpeg-user] How to filter time dependent

Michael Koch astroelectronic at t-online.de
Fri Apr 23 19:15:01 EEST 2021

Am 23.04.2021 um 15:58 schrieb Ulf Zibis:
> Am 23.04.21 um 08:07 schrieb Michael Koch:
>> The "between" function is including at both ends of the interval.
> Thanks for the info.
> Oh what a pitty ... imagine I set the upper border of the lower range 
> to 10:23.59, the lower border of the upper range to 10:23.60 and there 
> is a frame at 10:23.595. Then this frame would not be catched by both 
> ranges.

untested command line, second try with streamselect filter:

ffmpeg -i input.mp4 -lavfi 

The expression for "map" is 0 for t<=1000, 1 for t>1000 and 2 for t>2000.
If you want a "greater or equal" expression, use "gte" instead of "gt".


More information about the ffmpeg-user mailing list