[FFmpeg-user] How to filter time dependent

Michael Koch astroelectronic at t-online.de
Thu Apr 22 14:01:50 EEST 2021


Am 22.04.2021 um 12:50 schrieb Ulf Zibis:
> Hi,
>
> I want to filter a video from pts 0 to 1999 with filter A, then from 
> 2000 to 2199 with filter B, from 2200 with filter A and finally the 
> whole stream with filter C.
>
> Can one please give me an example for a working command line?
>

untested:
ffmpeg -i input.mp4 -lavfi 
split[a][b];[a]filter_A[c];[b]filter_B[d];[c][d]select=bitor(between(t,0,1999),between(t,2200,10000)),filter_C 
out.mp4

Michael



More information about the ffmpeg-user mailing list