[FFmpeg-devel] FFmpeg command to trim lavfi ignores start

Aziz Berkay Yesilyurt abyesilyurt at gmail.com
Wed Jan 11 19:52:51 EET 2023


Hi there,

I have a simple command to generate a video clip using lavfi and trim it
using the trim filter.

ffmpeg -f lavfi -i color=blue at 1:640x480:d=60,format=rgba
-filter_complex "[0]trim=start=4.0:end=5.0[s0]" -map "[s0]" -y
trim.mp4


I expect that the output video should be 1 second long, since the
start is 4 and the end is 5, but it is 5 seconds.

Modifying the end parameter changes the duration, but modifying the
start parameter has no effect.


Could someone explain to me what is going on?


Thanks,

Aziz


More information about the ffmpeg-devel mailing list