[FFmpeg-user] How to filter time dependent
Ulf.Zibis at CoSoCo.de
Sat Apr 24 00:19:16 EEST 2021
Am 23.04.21 um 08:31 schrieb Gyan Doshi:
> On this topic generally, see https://superuser.com/q/1632998/
Much thanks for this hint. I was successful with this approach:
ffmpeg -i 'Stille Tage in Clichy.mpg' -vf "split=3[a][b][c];[a]trim=0:2888.36,setpts=PTS-STARTPTS,crop=352:496:0:36[a];[b]trim=2888.36:3293.96,setpts=PTS-STARTPTS,crop=352:496:0:42[b];[c]trim=3293.96,setpts=PTS-STARTPTS,crop=352:496:0:38[c];[a][b][c]concat=n=3:v=1:a=0",scale=iw:ih/2,hqdn3d=2:1.5:12 -preset slow -movflags +faststart 'Stille Tage in Clichy_c_3_scale_1_2_hqdn3d_2_1_12_slow.mp4'
The advantage of "trim" over "between(...)" is, that the upper border is exclusive (so no worry about missing frames) and it is also stated, that it accepts duration time syntax from https://ffmpeg.org/ffmpeg-utils.html#time-duration-syntax . But "trim=0‘12:03:45’ doesn't work here, as colons are ambiguously used as separators for the parameters. Does anyone know, how to effectively escape the colons?
More information about the ffmpeg-user