[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
split=3[a][b][c];[a]filter_A[d];[b]filter_B[e];[c]filter_C[f];[d][e][f]streamselect=inputs=3:map='gt(t,1000)+gt(t,2000)',filter_D
out.mp4
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".
Michael
More information about the ffmpeg-user
mailing list